Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1699

[PATCH] External links in form "url(<link>)" are not resolved correctly in rtf export

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 2.5
    • None
    • renderer/rtf
    • Operating System: Windows Vista
      Platform: PC
    • 47745

    Description

      It's a valid form to have

      <fo:basic-link external-destination="url(http://www.mysite.com)" />

      PDF export is working fine and transform link to form: http://www.mysite.com

      RTF doesn't transform links and pass full link url(http://www.mysite.com) to the output. The link appears broken.

      The fix is rather easy. In the file org.apache.fop.render.rtf.RTFHandler.java:

      link.setExternalURL(basicLink.getExternalDestination());

      must be replaced with:

      link.setExternalURL(URISpecification.getURL(basicLink.getExternalDestination()));

      Patch is attached.

      Attachments

        1. RTFHandler-externalURL.patch
          0.9 kB
          Pavel Molchanov

        Activity

          People

            Unassigned Unassigned
            pmolchanov@idsk.com Pavel Molchanov
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: