Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.7
-
None
Description
PDActionURI.getURI() function returns bad result for the first link annotation in the attached document business.pdf (this doc works fine in Acrobat Reader).
We are using PdfBox 2.0.5
//.. //Iterates by all annotations on the first page of doc, searches for first annotation of type PDAnnotationLink //.. PDAnnotationLink link = (PDAnnotationLink) annotation; PDAction action = link.getAction(); //this would return buggy result: http://組匶替綎.com/ String badURI = ((PDActionURI) action).getURI(); //although, here fine result is returned: http://経営承継.com/ String goodURI = new String(((COSString)action.getCOSObject().getDictionaryObject("URI")).getBytes());
Attachments
Attachments
Issue Links
- breaks
-
PDFBOX-3946 NPE in PDActionURI.getURI() if URI doesn't exist
- Closed
-
PDFBOX-3958 UTF-16 (BE) URI improperly decoded
- Closed