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...

;)




      

Reply via email to