Two Pilots™    Home  |  Navigation  |  Site Map  |  Products  |  Download  |  Prices  |  For Partners  |  Support


All forums · Statistics · Search ·

Two Pilots forum / For software developers / PDF file do not retain formatting from HTML file
Author Message
ITee
Member
# Posted: 18 Sep 2008 14:18


I have word document with HTML Encoding. These are saved as .DOC After conveersion the PDF files does not resolve correctly the Margins and Page Break settings from the original file

I want if these documents are converted to PDF should retain the pagebreaks, pagelength,width as from the original file.


My Code goes as follows:-


Set oPDF = CreateObject("PDFCreatorPilot3.PDFDocument3")

With oPDF
.StartEngine EMAIL, PDFPWORD
.FileName = r_sOutputFilename
.BeginDoc
End With

' HTML add-in
Set oHTML = CreateObject("HTML2PDFAddOn.HTML2PDF2")

With oHTML
.StartHTMLEngine USER, PWORD
.ConnectToPDFLibrary oPDF
.LoadHTMLFile sInputFileName
.AutoAdjustContentWidth = True
.ConvertAll
.DisconnectFromPDFLibrary
End With

Set oHTML = Nothing

oPDF.EndDoc

Set oPDF = Nothing

mvf
Member
# Posted: 28 Sep 2008 22:26


Unfortunately HTML2PDF Addon do not fully support HTML documents saved by MS Office. Such documents contain many objects that are not in HTML standard.

Anonymous
# Posted: 4 Feb 2009 04:43


I am facing the similar problem. I addition my MSWord templates have Header as welll as footer and this is not being resolved. Is there any way out?


I am using the licensed version of HTML2PDF Addon.

 

 

Powered by miniBB 2.0 RC7 © 2001-2004 Page creation time (sec.): 0.013

 

Page top