Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.13, 2.0.8
-
None
Description
ClassCastException: org.apache.pdfbox.cos.COSObject cannot be cast to org.apache.pdfbox.cos.COSNumber
org.apache.pdfbox.util.Matrix.<init>(Matrix.java:60)
org.apache.pdfbox.pdmodel.graphics.pattern.PDAbstractPattern.getMatrix(PDAbstractPattern.java:135)
Solution: replace get() with getObject(). I created the attached file by modifying COSWriter.