[jira] [Updated] (PDFBOX-3519) COSName is not ascii
[ https://issues.apache.org/jira/browse/PDFBOX-3519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andreas Lehmkühler updated PDFBOX-3519: --- Fix Version/s: 2.0.6 > COSName is not ascii > > > Key: PDFBOX-3519 > URL: https://issues.apache.org/jira/browse/PDFBOX-3519 > Project: PDFBox > Issue Type: Bug > Components: Parsing >Affects Versions: 2.0.3 >Reporter: simon steiner >Assignee: Andreas Lehmkühler >Priority: Minor > Fix For: 2.0.6, 3.0.0 > > Attachments: COSNameAcrobat.png > > > Trunk seems ok > PDF is from PDFBOX-783 > {code} > 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()); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-3519) COSName is not ascii
[ https://issues.apache.org/jira/browse/PDFBOX-3519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andreas Lehmkühler updated PDFBOX-3519: --- Fix Version/s: (was: 2.1.0) 3.0.0 > COSName is not ascii > > > Key: PDFBOX-3519 > URL: https://issues.apache.org/jira/browse/PDFBOX-3519 > Project: PDFBox > Issue Type: Bug > Components: Parsing >Affects Versions: 2.0.3 >Reporter: simon steiner >Priority: Minor > Fix For: 3.0.0 > > Attachments: COSNameAcrobat.png > > > Trunk seems ok > PDF is from PDFBOX-783 > {code} > 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()); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-3519) COSName is not ascii
[ https://issues.apache.org/jira/browse/PDFBOX-3519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maruan Sahyoun updated PDFBOX-3519: --- Fix Version/s: 2.1.0 > COSName is not ascii > > > Key: PDFBOX-3519 > URL: https://issues.apache.org/jira/browse/PDFBOX-3519 > Project: PDFBox > Issue Type: Bug > Components: Parsing >Affects Versions: 2.0.3 >Reporter: simon steiner >Priority: Minor > Fix For: 2.1.0 > > Attachments: COSNameAcrobat.png > > > Trunk seems ok > PDF is from PDFBOX-783 > {code} > 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()); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-3519) COSName is not ascii
[ https://issues.apache.org/jira/browse/PDFBOX-3519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maruan Sahyoun updated PDFBOX-3519: --- Priority: Minor (was: Major) > COSName is not ascii > > > Key: PDFBOX-3519 > URL: https://issues.apache.org/jira/browse/PDFBOX-3519 > Project: PDFBox > Issue Type: Bug > Components: Parsing >Affects Versions: 2.0.3 >Reporter: simon steiner >Priority: Minor > Attachments: COSNameAcrobat.png > > > Trunk seems ok > PDF is from PDFBOX-783 > {code} > 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()); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-3519) COSName is not ascii
[ https://issues.apache.org/jira/browse/PDFBOX-3519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maruan Sahyoun updated PDFBOX-3519: --- Attachment: COSNameAcrobat.png It could also be read as {code} .l.r-¾’© {code} which is inline with what Adobe Acrobat is showing [^COSNameAcrobat.png] > COSName is not ascii > > > Key: PDFBOX-3519 > URL: https://issues.apache.org/jira/browse/PDFBOX-3519 > Project: PDFBox > Issue Type: Bug > Components: Parsing >Affects Versions: 2.0.3 >Reporter: simon steiner > Attachments: COSNameAcrobat.png > > > Trunk seems ok > PDF is from PDFBOX-783 > {code} > 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()); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-3519) COSName is not ascii
[ https://issues.apache.org/jira/browse/PDFBOX-3519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] simon steiner updated PDFBOX-3519: -- Description: Trunk seems ok PDF is from PDFBOX-783 {code} 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()); } } {code} was: PDF is from PDFBOX-783 {code} 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()); } } {code} > COSName is not ascii > > > Key: PDFBOX-3519 > URL: https://issues.apache.org/jira/browse/PDFBOX-3519 > Project: PDFBox > Issue Type: Bug > Components: Parsing >Affects Versions: 2.0.3 >Reporter: simon steiner > > Trunk seems ok > PDF is from PDFBOX-783 > {code} > 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()); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-3519) COSName is not ascii
[ https://issues.apache.org/jira/browse/PDFBOX-3519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] simon steiner updated PDFBOX-3519: -- Description: PDF is from PDFBOX-783 {code} 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()); } } {code} was: PDF is from PDFBOX-783 {code} 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) > 127) throw new RuntimeException(((COSName) b).getName()); } } {code} > COSName is not ascii > > > Key: PDFBOX-3519 > URL: https://issues.apache.org/jira/browse/PDFBOX-3519 > Project: PDFBox > Issue Type: Bug > Components: Parsing >Affects Versions: 2.0.3 >Reporter: simon steiner > > PDF is from PDFBOX-783 > {code} > 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()); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-3519) COSName is not ascii
[ https://issues.apache.org/jira/browse/PDFBOX-3519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] simon steiner updated PDFBOX-3519: -- Summary: COSName is not ascii (was: COSName is nonascii) > COSName is not ascii > > > Key: PDFBOX-3519 > URL: https://issues.apache.org/jira/browse/PDFBOX-3519 > Project: PDFBox > Issue Type: Bug > Components: Parsing >Affects Versions: 2.0.3 >Reporter: simon steiner > > PDF is from PDFBOX-783 > {code} > 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) > 127) > throw new RuntimeException(((COSName) b).getName()); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org