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

All forums · Statistics · Search ·

Two Pilots forum / For software developers / Landscape Mode with HTML2PDF Add-on (
Author Message
# Posted: 31 Mar 2008 11:41

Hi Stanislav,

How to display an HTML page or an HTML string in the landscape mode with the correct re-scaling/re-sizing? I can now display an html string in the landscape mode with this command

PDF.PDFPAGE_Orientation = PDFCreatorPilot3Lib.TxPDFPageOrientation.poPageLan dscape

but the html content is still displayed in the portrait format with the right side of the PDF page BLANK in the lacdscape page.

Our dll versions: HTML2PDF Add-on ( and PDFCreatorPilot3.dll (3.9.953.0)


# Posted: 2 Apr 2008 04:42 · Edited by: mvf

Thank you, I'll inform developers about this problem.

Max Filimonov

# Posted: 2 Apr 2008 23:12

Here is a solution.
Use MinimalWidth property of HTML2PDF Addon to set needed width before loading HTML file or string.

Win32 example:

HDC hdc = GetDC(GetDesktopWindow());
float coeff = GetDeviceCaps(hdc, LOGPIXELSY) / (float)m_PDF->Resolution;
m_HTML->MinimalWidth = (int)(m_PDF->PageWidth * coeff);

This will set needed minimal page width for HTML2PDF Addon.

Max Filimonov



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


Page top