File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
pdfbox/src/main/java/org/apache/pdfbox/pdmodel Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 2626import org .apache .pdfbox .contentstream .PDContentStream ;
2727import org .apache .pdfbox .contentstream .operator .Operator ;
2828import org .apache .pdfbox .cos .COSBase ;
29- import org .apache .pdfbox .cos .COSDictionary ;
3029import org .apache .pdfbox .cos .COSName ;
3130import org .apache .pdfbox .cos .COSNumber ;
3231import org .apache .pdfbox .cos .COSStream ;
@@ -93,7 +92,7 @@ public PDResources getResources()
9392 // PDFBOX-5294
9493 LOG .warn ("Using resources dictionary found in charproc entry" );
9594 LOG .warn ("This should have been in the font or in the page dictionary" );
96- return new PDResources (( COSDictionary ) charStream .getDictionaryObject (COSName .RESOURCES ));
95+ return new PDResources (charStream .getCOSDictionary (COSName .RESOURCES ));
9796 }
9897 return font .getResources ();
9998 }
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ public COSArray getBackdropColor()
173173 {
174174 if (backdropColor == null )
175175 {
176- backdropColor = ( COSArray ) getCOSObject ().getDictionaryObject (COSName .BC );
176+ backdropColor = getCOSObject ().getCOSArray (COSName .BC );
177177 }
178178 return backdropColor ;
179179 }
You can’t perform that action at this time.
0 commit comments