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

Eric Lim updated FOP-2676:
--------------------------
    Description: 
For example:
<fo:basic-link external-destination="file:///C:/temp/simple%20report.docx" 
text-decoration="underline">simple report</fo:basic-link>

Fails to find the correct target because the PDF link is
<< /Type /Filespec /F (/C:/temp/simple%20report.docx) >>

It should be
<< /Type /Filespec /F (C:/temp/simple report.docx) >>

Note that there is no slash in front of C: and %20 is now a space.

  was:
For example:
<fo:basic-link external-destination="file:///C:/temp/simple%20report.docx" 
text-decoration="underline">simple report</fo:basic-link>

Fails to find the correct target because the PDF link is
<< /Type /Filespec /F (/C:/temp/simple%20report.docx) >>

It should be
<< /Type /Filespec /F (C:/temp/simple report.docx) >>


> [PATCH] basic-link external-destination does not work for file URI with 
> spaces.
> -------------------------------------------------------------------------------
>
>                 Key: FOP-2676
>                 URL: https://issues.apache.org/jira/browse/FOP-2676
>             Project: FOP
>          Issue Type: Bug
>          Components: renderer/pdf
>    Affects Versions: trunk, 2.1
>            Reporter: Eric Lim
>         Attachments: PDFFactory.java.patch, external_link_uri.fo, 
> original.pdf, patched.pdf
>
>
> For example:
> <fo:basic-link external-destination="file:///C:/temp/simple%20report.docx" 
> text-decoration="underline">simple report</fo:basic-link>
> Fails to find the correct target because the PDF link is
> << /Type /Filespec /F (/C:/temp/simple%20report.docx) >>
> It should be
> << /Type /Filespec /F (C:/temp/simple report.docx) >>
> Note that there is no slash in front of C: and %20 is now a space.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to