[ 
https://issues.apache.org/jira/browse/PDFBOX-3913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-3913:
------------------------------------
    Comment: was deleted

(was: I deleted my comment from yesterday because I couldn't reproduce it. 
Maybe I gut confused in my test output.)

> Japanese URI improperly decoded
> -------------------------------
>
>                 Key: PDFBOX-3913
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3913
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.7
>            Reporter: Roman
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.8, 3.0.0
>
>         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 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());
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to