Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.3
-
None
Description
Trunk seems ok
PDF is from PDFBOX-783
public static void main( String[] args ) throws IOException { PDDocument doc = PDDocument.load(new File("A02Gj780LZ.pdf")); COSDictionary x = doc.getPage(0).getResources().getCOSObject(); read(x); doc.close(); } private static void read(COSBase b) { if (b instanceof COSObject) { read(((COSObject) b).getObject()); } else if (b instanceof COSDictionary) { for (COSBase x : ((COSDictionary) b).getValues()) { read(x); } } else if (b instanceof COSName) { if(((COSName) b).getName().charAt(0) > 256) throw new RuntimeException(((COSName) b).getName()); } }