You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by "Roeder, Andreas" <An...@firstdata.de> on 2010/02/01 11:13:05 UTC
How to find out page format?
Hello,
How can I find out the page format of a PDF, e.g. DINA4?
Best Regards,
Andreas
Re: How to find out page format?
Posted by "Erik Scholtz, ArgonSoft GmbH" <es...@argonsoft.de>.
Andreas,
the format of a PDF-page is handled in the PDpage-object. The javadoc
gives an overview on the methodes provided by pdfbox:
http://www.pdfbox.org/javadoc/org/pdfbox/pdmodel/PDPage.html
Have a look at:
findCropBox()
findMediaBox()
getBleedBox()
getCropBox()
These methods return a PDRectangle, which gives you the size of the
PDpage you're dealing with.
BR
Erik,
Roeder, Andreas wrote:
> Hello,
>
> How can I find out the page format of a PDF, e.g. DINA4?
>
> Best Regards,
>
> Andreas
>