This is an archived forum post. The information may be outdated. Contact us if you have any
Need to Fit an HTML file to an A4 pdf paper size.
wrote on 2012-07-30:
I need to fit an HTML file to an A4 paper size. As in the attachments I'm currently using the "test.html" to generate PDF files. My current output is indicated by the "NOT_OK.pdf". I used the following web site do generate the "IS_OK.pdf" pdf file:
I tried to set PageHeight, PageWidth, PdfScalingFactor, PageLayout, PageMode, InitialPdfExactZoom and others properties to distinct values, but nothing seems to work for me, maybe I'm missing something.
Does anyone have any code sample that does the same thing as the sample in web site above ?