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
# 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
.FileName = r_sOutputFilename
End With

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

With oHTML
.ConnectToPDFLibrary oPDF
.LoadHTMLFile sInputFileName
.AutoAdjustContentWidth = True
End With

Set oHTML = Nothing


Set oPDF = Nothing

# 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.

# 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