[ 
https://issues.apache.org/jira/browse/FOP-2338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15066467#comment-15066467
 ] 

simon steiner commented on FOP-2338:
------------------------------------

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

{code}

> 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
(v6.3.4#6332)

Reply via email to