Hi folks

As promised, here's a patch that rewrites Overlay.java to use PDFBox's content stream processor (PDFStreamEngine) to rewrite the contents stream, instead of using its own home-rolled search-and-replace.

After this patch is applied, the same PDF or multiple PDFs with clashing resource names may be overlaid over a target PDF without error. This is particularly useful in conjunction with the previously posted patch that enables Overlay to position, scale and rotate an overlaid PDF.

The patch is attached on JIRA here: https://issues.apache.org/jira/browse/PDFBOX-1263

It depends on the prior patches:
https://issues.apache.org/jira/browse/PDFBOX-1255 (Overlay.java translate/rotate/scale)
https://issues.apache.org/jira/browse/PDFBOX-1256 (Split PDFStreamEngine)

Please review and consider applying these changes if you approve of them.

--
Craig Ringer

Reply via email to