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

Eric Lim updated FOP-2676:
--------------------------
    Attachment: fop-2676.patch

Improved patch with test

Changes:
1. Targets now accepts file paths or URIs.
2. Windows network paths now works
3. Non-ascii file paths now works
4. Launch actions now accepts newWindow option
5. Absolute file paths uses Launch action
6. Relative file paths uses URI action unless file scheme is specified.  
Reason: PDF maybe viewed from a web browser, where launch actions are not 
supported probably because of security reasons.
7. Relative PDF files with page number or destination no longer works with 
Acrobat Reader unless file scheme is specified.
    Bad:
        foo.pdf#page=3
    Good:
        file:foo.pdf#page=3













> [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: external_link_uri.fo, fop-2676.patch, 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