pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Retter <adam.ret...@googlemail.com>
Subject Insert Cover Page (2.0.0)
Date Mon, 12 Oct 2015 20:03:27 GMT
Hey there,

I want to add a cover page to a PDF, i.e. add a new *first* page to an
existing PDF.

I managed this with 1.8.0 by manipulating the page nodes via
PDPage#setParent, however I can't figure out how to do this with
2.0.0-SNAPSHOT.

Can anyone tell me how to insert a new page at index 0 for an existing PDF?
Perhaps subsequently adding an example to
https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/
could help others?

Thanks Adam.

-- 
Adam Retter

skype: adam.retter
tweet: adamretter
http://www.adamretter.org.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message