HTML to PDF/RTF Java converter and tools › 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 Anonymous January 8, 2016 at 07:43 #29350 @PD4ML wrote: pd4ml.setPageSize() API call takes page dimensions in typographic points as a parameter. [language=java:eh95muk4]public static final int POINTS_PER_INCH = 72; … pd4ml.setPageSize( new java.awt.Dimension(15 * POINTS_PER_INCH, 11 * POINTS_PER_INCH) );[/language:eh95muk4]