Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.17
-
None
-
ubuntu 18.04
Description
I get a ClassCastException to merge documents
java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary cannot be cast to org.apache.pdfbox.cos.COSStream
at org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:707) ~[pdfbox-2.0.17.jar:2.0.17]
at org.apache.pdfbox.multipdf.PDFMergerUtility.legacyMergeDocuments(PDFMergerUtility.java:459) ~[pdfbox-2.0.17.jar:2.0.17]
at org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:346) ~[pdfbox-2.0.17.jar:2.0.17]
Metada for problematic pdf:
Version 1.5 Page Count 1 Encrypted false Ascent null CapHeight null Descent null Flags null FontBBox null FontName null FontWeight null ItalicAngle null StemV null Type null
Fonts
PDType0Font/PDCIDFontType2, PostScript name: EZPGML+¹ÙÅÁü-WinCharSetFFFF-H2 PDType0Font/PDCIDFontType2, PostScript name: FPDSYI+±¼¸²-WinCharSetFFFF-H2 PDType0Font/PDCIDFontType2, PostScript name: UTGYRD+±¼¸²Ã¼-WinCharSetFFFF-H2