Details
-
Bug
-
Status: Open
-
Resolution: Unresolved
-
2.5
-
None
-
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.