HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Html/CSS rendering issue › Re: Re: Html/CSS rendering issue
December 17, 2009 at 16:42
#27675
Please take into account: with the absolute coordinates you position the table in HTML document, not on a PDF page. After PD4ML rendered the HTML it maps it to the chosen page format. HTML-to-PDF scale is calculated like that:
scale = (pageFormat.width – insets.left – insets.right) / htmlWidth
If your table does not fit the first page, that means the scale is too big. Try to reduce it by increasing of htmlWidth rendering parameter (pd4ml.setHtmlWidth()) in small steps until the table is placed as expected on the PDF page.