You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Adrian O'Faoilean (JIRA)" <ji...@apache.org> on 2011/03/25 10:53:05 UTC
[jira] [Created] (PDFBOX-989) Scale Pdf: Fit to Printable Area
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: 1.4.0, 0.7.3
Environment: Windows XP
Reporter: Adrian O'Faoilean
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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira