Home › Forums › PDF24 Creator › General › Merge big files doesn't work or makes blank pages
- This topic has 1 reply, 2 voices, and was last updated 1 year, 5 months ago by visonn.
-
AuthorPosts
-
2024-08-12 at 13:00 #63573raraParticipant
Hi! Thank you for making great tool for mangling PDFs. It have almost everything i need. I'm waiting only for better editing options and it will be ultimate package for me 😉
Besides of that... i have small troubles.
I'm getting errors when merging larger PDF files, not possible to save them at all.
Some of them look like this for a "just join" profile:PDF24 Command Handler
Handle command with action: joinPdfs
Exception in thread "main" java.lang.StackOverflowError
at java.base/java.util.HashMap.hash(Unknown Source)
at java.base/java.util.HashMap.getNode(Unknown Source)
at java.base/java.util.HashMap.get(Unknown Source)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:85)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:128)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:171)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:113)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:171)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:113)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:171)[...]
PDF24 Command Handler
Handle command with action: joinPdfs
Exception in thread "main" java.lang.StackOverflowError
at java.base/java.util.LinkedHashMap.afterNodeInsertion(Unknown Source)
at java.base/java.util.HashMap.putVal(Unknown Source)
at java.base/java.util.HashMap.put(Unknown Source)
at java.base/java.util.HashSet.add(Unknown Source)
at org.apache.pdfbox.util.SmallMap.entrySet(SmallMap.java:383)
at org.apache.pdfbox.cos.COSDictionary.entrySet(COSDictionary.java:1404)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:162)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:113)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:171)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:113)[...]
PDF24 Command Handler
Handle command with action: joinPdfs
Exception in thread "main" java.lang.StackOverflowError
at org.apache.pdfbox.cos.COSString.getString(COSString.java:197)
at org.apache.pdfbox.cos.COSString.equals(COSString.java:250)
at java.base/java.util.HashMap.getNode(Unknown Source)
at java.base/java.util.HashMap.get(Unknown Source)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:85)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:171)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:113)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:171)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:113)
at org.apache.pdfbox.multipdf.PDFCloneUtility.cloneForNewDocument(PDFCloneUtility.java:171)[...]
I think it depends on the size of the document and how much information it contains. I've tested deleting last pages and... found there is a limit of pages where it works. For example, merging 119 pages works, but 120 doesn't. The limit depends on the file.
Operation works fine with the PDF-Xchange Editor for example... but I've found a working solution for the PDF24 Creator:
Merge files in GUI -> swap places of page 1 and 2 -> save to new file -> close and reopen this new saved file (doesn't work if you don't reload the saved file) -> swap places of page 1 and 2 again to get normal order -> save file with successMaybe there is a better solution, automation of this page swapping, etc?
Please help 🙂2024-09-16 at 16:26 #63628visonnParticipantWhat’s worked for me is splitting the PDFs into smaller sections first and then merging them. It’s a bit of a workaround, but it often helps avoid those errors.
-
AuthorPosts
- You must be logged in to reply to this topic.