You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "David Crossley (JIRA)" <ji...@apache.org> on 2007/06/22 06:32:26 UTC

[jira] Closed: (FOR-1013) absolute URLs in PDF

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

David Crossley closed FOR-1013.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9-dev
         Assignee:     (was: David Crossley)

The DTDs should be working now.

I found that nothing needed to be added to the skinconf pipeline transformations (in particular main/webapp/skins/common/skinconf.xsl) which seem to be only needed if default=true is required or other default settings.

> absolute URLs in PDF
> --------------------
>
>                 Key: FOR-1013
>                 URL: https://issues.apache.org/jira/browse/FOR-1013
>             Project: Forrest
>          Issue Type: Improvement
>          Components: Plugin: output.pdf
>    Affects Versions: 0.8
>            Reporter: Patrick Ohly
>            Priority: Minor
>             Fix For: 0.9-dev
>
>         Attachments: pdf-absolute-url.patch, pdf-dtd-update.patch
>
>
> In case someone else has the same problem: my PDFs generated by Forrest
> contained relative URLs for site-internal links which the PDF viewer
> then couldn't open because it didn't know the start URL. Attached is a
> patch for document-to-fo.xsl which turns relative URLs into absolute
> ones in the PDF. It applies to 0.8 cleanly only after also applying the
> PDF summary patch in https://issues.apache.org/jira/browse/FOR-355#action_12505910
> Otherwise be prepared for a few line offset warnings.
> I enabled this in my skinconf.xml with:
>     ...
>     <!--
>       Normally all links inside a Forrest site are relative. This
>       does not work well in PDFs which are typically viewed outside of
>       the web site. Setting this option adds the given prefix to all
>       relative URLs, both to the link as well as the optional, additional text.
>     -->
>     <url-prefix>http://www.estamos.de/</url-prefix>
>   </pdf>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.