A good example of exporting anything from java to a pdf document is this:
http://www.lowagie.com/iText/
Easy, free, and very well documented:
http://itextdocs.lowagie.com/tutorial/
Dimitris
Thanks a load Tom,
I understand, for this to work I will need to get an instance of OpenOffice
running and listening for requests. I may not be able to do this in my
current requirement as the App is already deployed at dozens of clients and
requiring all of them to install and configure OO will be a nightmare for
support.
Thanks anyway.
P.S. The code snippet is using odt extension for source file. Will it work
with XLS?
Regards,
Tahir
-----Original Message-----
From: Tom Schindl [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 8:05 PM
To: POI Users List
Subject: Re: POI to PDF
Well you can't export to PDF from POI you need to load the file into
e.g. OpenOffice using UNO and let OO do the Job for you. How this can be
done is shown in the codesnippet here:
http://codesnippets.services.openoffice.org/Office/Office.ConvertDocuments.s
nip
Tom
Tahir Akhtar wrote:
Hi,
If I generate an excel sheet using POI, and have an instance of
HSSFWorkbook
on hand, what are my options for generating a PDF file?
Any ideas will be really helpful.
Regards,
Tahir
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/