forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Crossley (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FOR-1013) absolute URLs in PDF
Date Wed, 20 Jun 2007 03:22:25 GMT

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

David Crossley commented on FOR-1013:
-------------------------------------

The patch is incomplete.

See the comments at:
 Re: Stop PDF Summary...
 http://www.mail-archive.com/user@forrest.apache.org/msg02794.html

New skin parameters need to be added to the default skinconf and XSL and new DTD. Search the
code for another parameter (e.g. "disable-copyright-footer") to see how it is handled.

I gather that you must have disabled skinconf validation in forrest.properties file.

> 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
>         Attachments: pdf-absolute-url.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.


Mime
View raw message