PD4ML v4 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

#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]