Also, check out FOP as part of the Apache Project.
We use it for our project here and it works great. Free too!
-Original Message-
From: IZAGA,IGNACIO (HP-Germany,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 14 November 2001 11:18 PM
To: 'Struts Users Mailing List'
Subject: RE: ActionServlet return a pdf document
hi,
i think that htmldoc is free of charge
http://www.easysw.com/htmldoc/faq0004.html
you could also use Html2pdf_asp
http://128.146.118.49/pdfsamples/asp_readme.htm
-Original Message-
From: Chughtai, Imran [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 14. November 2001 12:56
To: 'Struts Users Mailing List'
Subject: RE: ActionServlet return a pdf document
I'm looking for an HTML to PDF tool that I can run Server-side from a
Servlet. It needs to take an HTML page and create a PDF.
I checked out HTMLDOC but I don't think the command line version is free.
Are there any others available for free?
-Original Message-
From: IZAGA,IGNACIO (HP-Germany,ex1) [mailto:[EMAIL PROTECTED]]
Sent: 14 November 2001 12:01
To: '[EMAIL PROTECTED]'
Subject: ActionServlet return a pdf document
Hi,
I am trying to generate a PDF document on the fly based on dynamic html
generation comming from BroadVision.
I am using a tool called HTMLDOC that can use as input parameter a html file
or a URL.
If i used this tool directly from the command line,
htmldoc URL -f result.pdf
then, the pdf generation is fine, includig images.
But if i called this via an action, and i get the ouput of the tool and send
it to the response, the pdf result is not displayed if i used the image tag
in the HTML.
This is the java code for my action :
Process process;
Runtime runtime;
java.io.InputStream input;
byte buffer []; // Buffer for output data
int bytes; // Number of bytes
command = the called to my tool with the options and the URL :
/opt/htmldoc http://www.myfile.jsp
runtime = Runtime.getRuntime();
try
{
process = runtime.exec(command);
input = process.getInputStream();
buffer = new byte[8192];
while ((bytes = input.read(buffer)) 0)
outputStream.write(buffer, 0, bytes);
return (process.waitFor());
Any idea or suggestion ???
Thanks in advance
Regards,
ignacio
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]