This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

XSL-FO hyperlinks in PDF

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
You've gotta fight it! Don't give in! Read this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!