HTML2ANY – WebKit – landscape printing


We're using HTML2ANY in WebKit mode to convert HTML file to PDF.

The PDF output is always in Portrait mode, no matter if the instructions were Landscape.

Can you please clarify if WebKit mode supports Landscape and how we can achieve a Landscape PDF output?


Thanks for your message, you may run following command line to convert your web page to PDF file in Landscape page orientation, the unit is in mm,

html2any.exe -page-width 279 -page-height 216 D:\downloads\_out-paper-size-in-mm.pdf

some more command line examples,

html2any.exe -page-width 215.9 -page-height 279.4 -margin-left 5 -margin-right 5  _papersize_215.9x279.4mm.pdf

html2any.exe -page-width 216 -page-height 279 -margin-left 5 -margin-right 5  _papersize_letter.pdf

html2any.exe -page-width 255 -page-height 365 -margin-left 5 -margin-top 5 -margin-right 5 -margin-bottom 5  _papersize_letter_255x365mm.pdf


VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!