Roman created PDFBOX-3913:
-----------------------------

             Summary: Japanese URI improperly encoded
                 Key: PDFBOX-3913
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3913
             Project: PDFBox
          Issue Type: Bug
            Reporter: Roman
         Attachments: business.pdf

*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

{code}
//..
//iterates by all annotations, 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 = 
String(((COSString)action.getCOSObject().getDictionaryObject("URI")).getBytes());

{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to