HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › PD4ML Tips & Tricks › How to define custom page size for HTML to PDF › Re: Re: How to define custom page size for HTML to PDF
December 29, 2015 at 14:42
#29349
pd4ml.setPageSize() API call takes page dimensions in typographic points as a parameter.
[language=java:1cucxovh]public static final int POINTS_PER_INCH = 72;
…
pd4ml.setPageSize( new java.awt.Dimension(15 * POINTS_PER_INCH, 11 * POINTS_PER_INCH) );[/language:1cucxovh]