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

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

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            pmolchanov@idsk.com Pavel Molchanov

            Dates

              Created:
              Updated:

              Slack

                Issue deployment