[jdom-interest] Hyperlink in PDF

Eric Hartmann ehartmann at rhinfo.com
Mon Oct 7 05:27:54 PDT 2002


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




More information about the jdom-interest mailing list