AW: [jdom-interest] Hyperlink in PDF
Hirschmann, Bernhard
Bernhard.Hirschmann at t-systems.com
Mon Oct 7 05:36:03 PDT 2002
I just realized that this is the wrong addres for that subject - sorry.
Anyway :) - thanks Eric, that's right, this makes the transformation. But I
can't see how a hyperlink is generated into the PDF document.
To be more concrete: I need to have a link in the PDF, so I can click on it
the Acrobat Reader. As the result, a browser window should appear with the
linked URL. I know that this is possible with PDFs. But is it possible to
make such links in a PDF without the Arcobat Writer/Distiller?
-----Original Message-----
From: Eric Hartmann
Sent: Montag, 7. Oktober 2002 14:28
To: jdom-interest at jdom.org
Subject: RE: [jdom-interest] Hyperlink in PDF
Perhaps, the question is the ability to use FOP and JDom so the answer
is yes :
public static final void generatePDF(org.jdom.Document document,
Templates template, OutputStream out) throws FOPException,
TransformerConfigurationException, SAXException {
TransformerFactory tFactory = TransformerFactory.newInstance();
XMLFilter xmlFilter = ((SAXTransformerFactory)
tFactory).newXMLFilter(template);
xmlFilter.setParent(XMLReaderFactory.createXMLReader());
Driver driver = new Driver();
driver.setRenderer(driver.RENDER_PDF);
driver.setOutputStream(out);
driver.render(xmlFilter, (new
JDOMSource(document)).getInputSource());
driver.reset();
}
Eric
PS. Very sorry Bob, I've just use a Reply and I realize that I send it
twice to you.
-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]
On Behalf Of Hirschmann, Bernhard
Sent: Monday, October 07, 2002 2:07 PM
To: 'bob mcwhirter'
Cc: 'jdom-interest at jdom.org'
Subject: AW: [jdom-interest] Hyperlink in PDF
Hey Bob,
>> In a PDF it is possible to integrate a hyperlink heading the browser
>> to
this
>> URL.
> Yes.
>> Can I do that by using JDOM for gererating a PDF?
> Um, what?
What I want to know is, if it is possible to create a PDF with a FOP
transformation containing a hyperlink?
(Is the question clear now? Otherwise point me to your problem, please.
I hope I can specify the question then.)
Bernhard
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@you
rhost.com
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
More information about the jdom-interest
mailing list