Hi All,

I'm bulding and Application with JSP, Javabeans and
Firebird.

This application has to work under linux and windows
enviroment and now everything goes OK.

I'm using i-text to generate PDF report from the
aplication, but I'm having some problems.

In My Local Machine, I'm working with Windows 98 and
Apache Tomcat 4.1.

To create the PDF I'm using this line:

PdfWriter.getInstance(document, new
FileOutputStream("TestPDF.pdf"));
This generate the PDF on this path "C:\WINDOWS\Men�
Inicio\Programas\Apache Tomcat 4.1"
I Cannot use a absolute path like 
PdfWriter.getInstance(document, new
FileOutputStream("C:\\TestPDF.pdf"));

Because it is not going to work under linux (The web
server is under linux and it is using Apache Tomcat as
well).

What I want to do is to set the path to make it work
under Windows and linux with any change of code.
I want to put the resulting files under the
Application path: e.g.
http://127.0.0.1:8080/aldia/Reports/TestPDF.pdf to
allow the user to donwload from the server and not
generate them locally on the client machine.

Other Question, How can generate the files on the
client machine if the application is ruunning on a web
server with Apache Tomcat?

Thanks in advance.

Nairo Granados

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to