Uploaded image for project: 'Forrest (Retired)'
  1. Forrest (Retired)
  2. FOR-1013

absolute URLs in PDF

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8
    • 0.9
    • Plugin: output.pdf
    • None
    • Normal
    • Patch available

    Description

      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/&lt;/url-prefix>
        </pdf>

      Attachments

        1. pdf-dtd-update.patch
          3 kB
          Patrick Ohly
        2. pdf-absolute-url.patch
          3 kB
          Patrick Ohly

        Activity

          People

            Unassigned Unassigned
            p.ohly Patrick Ohly
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: