PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: How to define custom page size for HTML to PDF
   PostPosted: 23 Dec 2015, 15:01 
How can I define custom page-sze for my report. (15" x 11" Paper size) ?
I develop using rollbase HTML-to-PDF feature.


  Subject: Re: How to define custom page size for HTML to PDF
   PostPosted: 29 Dec 2015, 16:42 
pd4ml.setPageSize() API call takes page dimensions in typographic points as a parameter.

public static final int POINTS_PER_INCH = 72;
...
pd4ml.setPageSize( new java.awt.Dimension(15 * POINTS_PER_INCH, 11 * POINTS_PER_INCH) );


  Subject: Re: How to define custom page size for HTML to PDF
   PostPosted: 08 Jan 2016, 09:43 
PD4ML wrote:
pd4ml.setPageSize() API call takes page dimensions in typographic points as a parameter.

public static final int POINTS_PER_INCH = 72;
...
pd4ml.setPageSize( new java.awt.Dimension(15 * POINTS_PER_INCH, 11 * POINTS_PER_INCH) );



[Reply]     [ 3 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share