[ 
https://issues.apache.org/jira/browse/PDFBOX-989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Hewson reopened PDFBOX-989:
--------------------------------

> Scale Pdf: Fit to Printable Area
> --------------------------------
>
>                 Key: PDFBOX-989
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-989
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>    Affects Versions: 0.7.3, 1.4.0
>         Environment: Windows XP
>            Reporter: Adrian O'Faoilean
>             Fix For: 2.0.0
>
>
> Unable to scale Pdf to Fit into page. 
> Setting a margin and an imageable area work fine but the contents of the pdf 
> are not scaled to fit into the printable area. This results in parts of the 
> pdf being cut off and thus the library unusable.
> PageFormat pForm = new PageFormat();
> Paper paper = new Paper();
> paper.setSize(594.936, 841.536);
>  
> double margin = 36; // half inch
> paper.setImageableArea(margin, margin, paper.getWidth() - margin * 2, 
> paper.getHeight()  - margin * 2);
> pForm.setPaper(paper);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to