HTML to full page on the PDF

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Converter for .NET (v1)  /  HTML to full page on the PDF

DynamicPDF Converter for .NET (v1) Forum

 Apr 05 2018 9:22 AM
I am working with the HTML to PDF converter.   I was wondering how do I get the converter to push the HTML to full page? It looks like  when i use the ConversionOptions class  i can pass width and height?  But i need to make the HTML page full page. 
 Apr 05 2018 4:19 PM
Posted by a ceTe Software moderator
Hello,

The DynamicPDF Converter API by default adds margins to the PDF page with value 50.  If you would like to fill the PDF page with HTML content without margins, you will need to use an HtmlConversionOptions object with desired width/height and set the margin values to zero. You can refer to the documentation on members of HtmlConversionOptions class here.

Thanks,
ceTe Software Support Team.
 Apr 06 2018 4:55 PM
My other question is how do i get the height and width  to fill up the entire PDF?  I can't seem to find the correct height and width settings without having too much white space?   on my web page it fills up the browser? but when it prints to PDF it does not seem to line up more so for the width setting?

 Apr 09 2018 4:51 PM
Posted by a ceTe Software moderator
Hello,

Please send an email to support@cete.com with the following information.

1. Output PDF.
2. Code used to generate the output PDF.
3. System details (OS name, version, 32-bit or 64-bit)
4. Version of Internet Explorer present on the machine where Converter is installed.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 11:11 AM.