PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Can I pre-define font sizes in resulting PDF documents?
   PostPosted: 30 May 2009, 22:48 
HTML-to-PDF mapping scale depends on HTML width given in screen pixels and PDF page format width (minus horizontal insets) in typographical points.

htmlToPdfScale = ( pageFormat.width - pageInsets.left - pageInsets.right ) / htmlWidth

The font sizes are scaled correspondingly to the entire document scale in order to keep page layout not broken.

If you need to get a specific font size in your PDF documents, try to achieve that by "playing" with htmlWidth and horizontal PDF page inset parameter values.

For the cases, when exact PDF objects' dimensions are critical there is an API call protectPhysicalUnitDimensions(), which forces PD4ML to respect and to output to PDF sizes/dimensions given in pt, in, cm etc. The conversion mode sacrifices proportions between objects, whose dimensions are given in physical and screen units. It may result page layouts differ from the layouts rendered in web browsers. Use it with care.



[Reply]     [ 1 post ] 

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