It is the first file that makes the trouble, when trying to merge it
with itself. This doesn't happen with the second one.
According to PDFDebugger, there is a resource recursion. Either that or
a PDFBox bug.
Tilman
Am 16.12.2014 um 20:26 schrieb Marc Davis:
Hello,
I am using pdfbox-app-1.8.8.jar to merge this file
<https://www.dropbox.com/s/tfhpiac1n7evkf1/mark%20dinges.pdf?dl=0> with this file
<https://www.dropbox.com/s/08xappgyx391q4u/diels%202.pdf?dl=0>.
I am getting the following result:
Exception in thread "main" java.lang.StackOverflowError
at
java.util.LinkedHashMap$LinkedHashIterator.<init>(LinkedHashMap.java:366)
at
java.util.LinkedHashMap$LinkedHashIterator.<init>(LinkedHashMap.java:366)
at java.util.LinkedHashMap$EntryIterator.<init>(LinkedHashMap.java:412)
at java.util.LinkedHashMap$EntryIterator.<init>(LinkedHashMap.java:412)
at java.util.LinkedHashMap.newEntryIterator(LinkedHashMap.java:419)
at java.util.HashMap$EntrySet.iterator(HashMap.java:1082)
at
org.apache.pdfbox.pdfwriter.COSWriter.visitFromDictionary(COSWriter.java:1016)
at
org.apache.pdfbox.pdfwriter.COSWriter.visitFromDictionary(COSWriter.java:1043)
and whole series of the last line. Any suggestions? I think the last file may
be problematic.
Thanks,
Marc