Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XSL-FO hyperlinks in PDF

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a PDF-document generated with Apache FOP. The PDF document contains a hyperlink. When I open the PDF-document, after generation, in the browser and I click on the hyperlink in the PDF-document. The hyperlink will be opened in the same window as the PDF-document. So I am losing my generated PDF-document, and I need to regerate.
While I am looking in my generated XSL file, I find the following :

<fo:basic-link show-destination="new"><xsl:attribute name="external-destination"><xsl:value-of select="URL"/></xsl:attribute><xsl:value-of select="FR"/></fo:basic-link>


I think normally the link should be opened in a new window?
If someone has a sollution to solve this problem it would be very helpful.

Regards,
Guy
guy.buyle@gial.be
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According to my copy of the FOP 0.20.5 compliance document, it does not support the "show-destination" attribute (an extended XSL property).
I am just using basic-link with external-destination.
Bill
 
Guy A. Buyle
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I save first the generated PDF-document and open this document with the Acrobat Reader. Clicking on the hyperlink opens the link in a new Window. So this works but I can't save the PDF document because I don't known the PC-configuration of my clients. So if I can send a byte stream (my generated PDF doucment) to the Acrobat Reader it should solve the problem but I don't know if this is possible.

Runtime.getRuntime().exec(C:\\Program Files\\Adobe\\Acrobat 6.0\\Reader\\AcroRd32.exe pdfFileStream);

If someone knows the parameters how to do it it would be very helpfully.
Guy
 
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic