Correct. You will need to explicitly write an XSL that generates FO that reacts to the CSS you have in your html. This is a hell of a lot of work.
Here are your options: 1 OpenSource: Use Konqueror(KHTML) or Mozilla and write a simple wrapper to load your HTML and then print it. You might be able to do this in KDE with just simple scripting using the DCOP protocol to make Konqy do all the loading and printing from a shell script (MY choice) 2. Microsoftian: Use the Embedded IE and Delphi or VB or C# or whatever and automate it using the COM methods exposed on the object. regards, Bruce. -----Original Message----- From: Asim Raja [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 11:08 AM To: '[EMAIL PROTECTED]' Subject: RE: does cocoon support css Hi everyone, Thank you for your useful comments and putting up with a newbie question. Our requirement is that we have to do it programmatically. Feed a URL and get a PDF. I've looked into HTMLDoc (which is based on iText) but it doesn't support CSS files in its latest version. Please correct me if I'm wrong but I think that unless style specified by the CSS are explicitly inserted by the developer in the Formatting Object document (Step 2 below), they will not be picked up by the XSL transformer. I would appreciate if anyone can confirm this. ------------------------------ (1) use an html generator to create XHTML from the html document(s) (2) send this xhtml --> XSL Transformer to create the formatting objects document (3) use the pdf serializer to create the PDF ------------------------------ Regards, Asim Raja -----Original Message----- From: McDonald, Bruce [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 10:34 AM To: [EMAIL PROTECTED] Subject: RE: does cocoon support css Another way: Download latest openoffice and it supports PDF printing directly. -----Original Message----- From: McDonald, Bruce Sent: Friday, November 07, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: RE: does cocoon support css Not possible (AFAIK). Cocoon generates a PDF from an XML document which is transformed using XSL:FO. What you want to do is best accomplished using Adobe Acrobat Distiller or one of a number of open source projects. I am able to "print" to a PDF file on my Linux (KDE) Desktop. -----Original Message----- From: Asim Raja [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 10:21 AM To: [EMAIL PROTECTED] Subject: does cocoon support css Hi, I'm interested in using use Cocoon to convert an html page to a PDF file. I would like to feed the URL of the page and get the PDF. I would like to know if CSS used by the webpage would be supported by the HTMLGenerator and the PDF Serializer? Thank you in advance for your help! Asim Raja --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
