You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2017/09/17 09:58:00 UTC
[jira] [Resolved] (PDFBOX-3913) Japanese URI improperly encoded
[ https://issues.apache.org/jira/browse/PDFBOX-3913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr resolved PDFBOX-3913.
-------------------------------------
Resolution: Fixed
Assignee: Tilman Hausherr
Fix Version/s: 3.0.0
2.0.8
> Japanese URI improperly encoded
> -------------------------------
>
> 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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org