Hi Andreas, I've already thought and read about the FOP embedding this morning, but have not decided to use it. Thank you for the URL and for your help, I will use the FOP2PDF.java instead of the PEAR XML_fop2pdf.php.
rgds, Al --- On Tue, 11/25/08, Andreas Delmelle <[EMAIL PROTECTED]> wrote: From: Andreas Delmelle <[EMAIL PROTECTED]> Subject: Re: FOP to PDF using PHP To: [email protected] Date: Tuesday, November 25, 2008, 10:00 AM On Nov 25, 2008, at 18:32, Andreas Delmelle wrote: > On Nov 25, 2008, at 16:46, Al Dancer wrote: > > Hi > >> it seems that this is a Java issue: >> >> here below is the extract of the fo2pdf.php code where my script exited: >> <snip /> >> So the script could not run : >> $options = @new Java("org.apache.fop.apps.CommandLineOptions", $options) >> >> This may be should to the java mailing list :-( > Sorry for the noise. I just noticed... org.apache.fop.apps.CommandLineOptions does not exist anymore in later versions of FOP. It has been relocated to org.apache.fop.cli.CommandLineOptions. To make up for the irrelevant comment, I'll add a pointer to the Wiki about using the PHP/Java bridge (which I didn't see in the thread yet): http://wiki.apache.org/xmlgraphics-fop/HowTo/PHPJavaBridge This is still for v0.20.5, but I think, if you study the FOP embedding examples[*] closely, the cost for converting it to work for 0.95 would be minimal. [*] http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2PDF.java?view=markup http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2PDF.java?view=markup Downside is that it would add another dependency to your web-app, which may only prove to be really worth something if you also use other Java components. HTH! Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
