Hello all, I give up, since the last version of XML_fo2pdf 5 years old (2003), and is working for FOP 0.2x but not for FOP 0.95.
http://pear.php.net/package/XML_fo2pdf/download Therefore, I will use the FOP 0.2 with older Java (version jdk1.5.0). thanks, Al --- On Tue, 11/25/08, Al Dancer <[EMAIL PROTECTED]> wrote: From: Al Dancer <[EMAIL PROTECTED]> Subject: Re: FOP to PDF using PHP To: [email protected] Date: Tuesday, November 25, 2008, 8:06 AM Hello Luis, thank you, I will try what you said about the object's creation. Al --- On Tue, 11/25/08, Luis Ferro <[EMAIL PROTECTED]> wrote: From: Luis Ferro <[EMAIL PROTECTED]> Subject: Re: FOP to PDF using PHP To: [email protected] Date: Tuesday, November 25, 2008, 7:59 AM There was a sample somewhere (can't find it at the moment) with an example on how to create a pdf with fop in java. Using the bridge you will be able to "transpose" the sample to php and retain the ability to debug everything in php. That was what i did. Doing a line by line transposing you will start to get some "factory" creation errors, but you will get over it with the correct object creation and initialization. Also, remember to create ALL the objects, don't do any "instant" creation line: $xpto = $java->factory_bla( $java->newObject() ); Because the reference to the $java->newObject() will stay to nail you down... Do: $new = $java->newObject(); $xpto = $java->factory_bla( $new ); Not sure if this is of help... but alas... ;)
