Hi,
Am 08.02.2013 15:07, schrieb Balazs Jerk:
Hi,
For my project I use PDFBox to merge and overlay documents and to fill forms.
BTW, thanks for your effort guys.
Merge and fill works perfect, but in overlay I faced some issues:
- no support for COSArray
- if I apply two overlays on a document and they have images with the same name,
the one image overrides the other one
- if the original document has an unusual MediaBox (for example Cognos produces
MediaBox [0 0 612 -792]) the overlay falls outside of the document
To fix the above issues I've created my own overlay implementation.
See attachment.
Instead of merging the contents and resources, it creates a BBox with the
overlay content.
I thought I share it with you so you can reuse some parts if you want.
Thanks for the contribution!!
I added a new command line tool class "OverlayPDF" based on your implementation.
See [1] for further details.
Regards,
Balazs
ps: I'm not on the mailing list, please send any replies to my email address
directly
That's odd, why not, it's free?
Thanks again!
BR
Andreas Lehmkühler
[1] https://issues.apache.org/jira/browse/PDFBOX-1514