simon steiner commented on FOP-2338:

fop 2 has fo extension:
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; 
    <fo:simple-page-master master-name="simple" page-height="27.9cm" 
      <fo:region-body />
      <pdf:dictionary key="ViewerPreferences">
        <pdf:name key="PrintScaling">None</pdf:name>
  <fo:page-sequence master-reference="simple">
    <fo:flow flow-name="xsl-region-body">
      <fo:block>page 1</fo:block>


> Edit PDF metadata
> -----------------
>                 Key: FOP-2338
>                 URL: https://issues.apache.org/jira/browse/FOP-2338
>             Project: FOP
>          Issue Type: Improvement
>            Reporter: Peter Hopfgartner
>            Priority: Minor
>              Labels: metadata,, print, scaling
> There are some use cases, where the metadata can have a significant impact on 
> the usability of a created PDF.
> As an example, for technical drawings it is generally more advisable to hint 
> the PDF viewer not to scale the content in order to respect printer margins, 
> since this changes the scale of the drawing.
> Such a hint can be specified in the meta data.
> e.g.:  
> http://stackoverflow.com/questions/4725711/set-pdf-to-print-with-no-scaling
> http://api.itextpdf.com/itext/com/itextpdf/text/pdf/interfaces/PdfViewerPreferences.html#addViewerPreference(com.itextpdf.text.pdf.PdfName,%20com.itextpdf.text.pdf.PdfObject)

This message was sent by Atlassian JIRA

Reply via email to