hi all, i had already posted a query regarding how to print the contents,but in vain no reply, can anybody tell me is there any class so as to create a pdf file and methods used to write into the pdf file. IOStreams,do create a pdf file,but me not able to open the pdf file. I saw a PdfWriter class,but not in sun specifications so anyone plz help me how to create and write to a pdf file. thanx in advance.
Another related option is to use the FOP from Apache. It is the same code that Cocoon uses to generate PDF output. But if you do not need all of the functionality of Cocoon, using just FOP might be a solution. There is a release candidate for FOP available at the apache site, http://xml.apache.org/dist/fop for download. I have been using it for a project that really does not require all of Cocoon. HTH, Joe
Hi! That class that you say (PdfWriter) is a part of a tool called StyleReport. StyleReport is a reporter tool that can generate PDF, excel or HTML files. It isn�t part of sun classes. You must by the StileReport in the next link: http://www.inetsoftcorp.com
Also there's gnujpdf (formerly retepPDF) on sourceforge.net. It mimics the Java printing subsystem. It does OK for lightweight printing requirements, though intense graphics may be beyond it. BTW There's a pitfall in printing PDF's. If you don't set the Content-length header to the size of the generated PDF, some versions of Netscape won't be able to display it properly. Unfortunately, since the size of a PDF isn't easy to determine in advance, this has forced me to write the PDF to a temporary file just to get its length, output the HTTP headers, then spool out the temp file to the HTTP output stream.
An IDE is no substitute for an Intelligent Developer.