Hello there,

>
> I'm developing a software tool to adapt PDF documents.
>
> The idea is to copy all visible elements (text, images, etc.) from a source 
> document to a new document (destination) with a different page height than 
> the original one.
>

You might want to take a look at chapter 14.11.2 "Page Boundaries" in
the PDF specification, which discusses the layout box model. Perhaps
it would suffice if you simply resize the MediaBox, and/or define
CropBox. PDFBox provides you a nice API for that (eg.
org.apache.pdfbox.pdmodel.PDPage#setMediaBox(PDRectangle)).


VR

Reply via email to