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

All forums · Statistics · Search ·

Two Pilots forum / For software developers / Latest version of PDFCreator + HTML2PDF
Author Message
# Posted: 13 Jul 2007 09:24

Latest version of HTML2PDF + PDFCreator do not auto ajust to the content size (ignoring AutoAdjustPageWidth and AutoAdjustContentWidth)

Is there something to do to enable "auto fit" ?

Thank you

# Posted: 15 Jul 2007 22:53

What versions do you use? The latest are: HTML2PDF Addon -, PPDFCreator - 3.06.360.0. Can we see you code/html example please?

# Posted: 16 Jul 2007 04:14

I am using :

PDFCreator : 3.6.360.0
HTML2PDF : 3.4.6

The code is :

PDF.StartEngine ...
PDF.FileName = RecordFileName

' start document generation
' initialize HTML engine

html.StartHTMLEngine ...
html.PageTimeout = "3000"

If FitWidth Then
html.AutoAdjustPageWidth = True
html.AutoAdjustContentWidth = True
End If

html.PreserveLinks = False

html.ConnectToPDFLibrary PDF

html.LoadHTMLString HTMLBuf, Path



Set html = Nothing

Set PDF = Nothing

# Posted: 16 Jul 2007 07:32

I just downloaded latest "public" version of HTML2PDF (3.5.34)

And my page is still "cut" in the middle (ie, no auto fit)

And the link to the "private Folder" gives me the version 3.4.6 of HTML2PDF

Could it be possible to have a download link just for HTML2PDF dll (same for PDFCreator Pilot dll)

Thank you

# Posted: 17 Jul 2007 01:22

Can you write us via online support form. We'll send you proper links.

# Posted: 18 Jul 2007 04:42

I still have the same problem

You can see the problem when converting a large (more than 600px) table.

In previous versions, the PDF size was adapted in order to view all the content of the HTML File. (this was the default behavior)

Did you change this behavior ?

# Posted: 18 Jul 2007 05:07

Did you install new versions?
Can you please download the test (~5 Kb)
This archieve contains HTML with table of 730px width, convertion script example and resulting pdf. Look it please. Comment and uncomment lines
HTML.AutoAdjustPageWidth = True
HTML.AutoAdjustContentWidth = True
and see result.

(It is Visual Basic Script test, you can launch it from command line like that:
cscript.exe test.vbs)
Does this example script produce proper PDF?

# Posted: 18 Jul 2007 09:29

I found the problem :

I was calling
HTML.AutoAdjustContentWidth = True
HTML.LoadHTMLFile "wide_table.html"
so the option wasn't taken into account.

I switched the two instructions, and it worked.

# Posted: 18 Jul 2007 09:44

Very well :)

# Posted: 19 Jul 2007 07:31

In fact, it was not linked to autoajust... instructions :

It seems to be related to the Resolution.

so I adopted this (bad) solution. thread&forum=36&topic=621

I you have a better solution, I'll be happy to know it.

Thank you



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


Page top