Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Bug
-
2.0.1
-
None
-
None
Description
在对一个73页的pdf文件,进行拆分单页pdf文件,再重新进行合并时,内存溢出了
java.lang.OutOfMemoryError: Java heap space
at org.apache.pdfbox.io.ScratchFileBuffer.addPage(ScratchFileBuffer.java:132)
at org.apache.pdfbox.io.ScratchFileBuffer.ensureAvailableBytesInPage(ScratchFileBuffer.java:184)
at org.apache.pdfbox.io.ScratchFileBuffer.write(ScratchFileBuffer.java:236)
at org.apache.pdfbox.io.ScratchFile.createBuffer(ScratchFile.java:423)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:970)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:891)
at org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:259)