https://issues.apache.org/bugzilla/show_bug.cgi?id=47745

           Summary: External links in form "url(<link>)" don't resolved
                    correctly in rtf export
           Product: Fop
           Version: all
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: major
          Priority: P2
         Component: rtf
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: pmolcha...@idsk.com


--- Comment #0 from Pavel Molchanov <pmolcha...@idsk.com> 2009-08-26 12:47:24 
PDT ---
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.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to