views:

181

answers:

2

Hi all. I have successfully generated password protected pdf using xsl fo from apache foundation's fop 0.95 engine. Now the problem comes with the base-link with external-destination specified. Clicking the links work no more. On hover, the link shows the tooltip of the form: "file:///C:/myfolder/some-strange-special-characters". However, this works successfully with the normal unprotected pdf, and on hover shows the following tooltip: "http://www.mysite.com". What should I do?

I use the following command line option to generate password protected pdf from xml using fop 0.95:

fop.bat -u myPassword -xml sample.xml -xsl sample.xsl -pdf sample.pdf

The syntax for placing link is:

<fo:block>
   <fo:base-link external-destination="http://www.mysite.com"&gt;&lt;/fo:base-link&gt;
</fo:block>

Thank you.

+1  A: 

Similar problem : In above code the link works when pdf is not protected one but doesnot work when we generate protected pdf "fop.bat -u password -xml sample.xml -xsl sample.xsl -pdf sample.pdf"

<!--  to add the email link  -->
<fo:basic-link xsl:use-attribute-sets="Url" external-

destination="url('mailto:[email protected]')">
      Contact us by email
</fo:basic-link>
Thunder
+1  A: 

Just looks like a bug in FOP:

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

Matthew Wilson