forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Ohly (JIRA)" <>
Subject [jira] Updated: (FOR-1013) absolute URLs in PDF
Date Thu, 21 Jun 2007 20:27:25 GMT


Patrick Ohly updated FOR-1013:

    Attachment: pdf-dtd-update.patch

David, thanks for pointing out the need to update the DTD. I hadn't actually run "forrest
site" since changing my skinconf.xml, so I wasn't aware of this. It works again now. As both
new config options were already committed here's one patch which fixes the DTD for both options:

Almost completes the work of adding new PDF generation configuration options:
- updates DTD
- updates example skinconf.xml

To keep the patch size small the DTD file is not yet renamed. After applying
the patch, please
- rename the modified file with subversion before committing
- make sure the modified DTD is published on

Other skinconf.xml files in the repository have not been touched. Feel
free to do so. My understanding is that
will continue to host the older revisions so that one is not forced to
update a skinconf.xml unless the new options are to be used.

> absolute URLs in PDF
> --------------------
>                 Key: FOR-1013
>                 URL:
>             Project: Forrest
>          Issue Type: Improvement
>          Components: Plugin: output.pdf
>    Affects Versions: 0.8
>            Reporter: Patrick Ohly
>            Priority: Minor
>         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
> 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></url-prefix>
>   </pdf>

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

View raw message