Re: XML_FO2PDF

From: Date: Fri, 13 Dec 2002 16:25:27 +0000
Subject: Re: XML_FO2PDF
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11615@lists.php.net to get a copy of this message
Hi Arnaud I wrote it and I use it. on linux and it works for me as it is. though i'm using fop 0.20.1 lemme check, what linux does at the moment with this code. Unfortunately you have to wait until at least monday, since i'm moving my flat (or better said the content of it) this weekend... chregu On Fri, 13 Dec 2002, LIMBOURG Arnaud wrote: > Hello, > > I started playing around with the FO2PDF class. > > Running it as such did not give any result, it kept saying > > Warning: java.lang.NoSuchMethodException: setparserfeatures in > c:\xxx\pear\XML\fo2pdf.php on line 180 > FOP ERROR: setparserfeatures in c:\xxx\pear\XML\fo2pdf.php:190 > > Reading the code comments I saw the following > > * according to the documentation, the following lines should be > enough, > * to do, what we want. but it didn't work. Yes, it did, but it > produced > * approx. 10 pdf-files for each run... > * > * $options = new > Java("org.apache.fop.apps.CommandLineOptions",$options); > * $starter = $options->getStarter(); > * $starter->run(); > * > * Therefore i took the code from > org/apache/fop/apps/CommandLineStarter.java > * converted it to php-code and it works now... if anyone has a > better solution > * please inform me ;) > > Just for the hell of it I used this code and it works great, it did not > generate 10 files, just one. I guess they fixed things in later FOP > versions. > > I'm using J2RE 1.4.1 and FOP 0.20.4 under NT4. (i saw that a first RC of > 0.20.5 is just out, the release will occur in the next weeks). > > My question is, would that be ok if i replace the incriminated code with > this, since it appears to work (did not test it on linux though) ?? > > BTW, anybody using this class out there ? > > Arnaud > -- nam...christian stocker adr...bremgartnerstr. 66, ch-8003 zurich pho...+41 1 451 6021 www...http://phant.ch/chregu mob...+41 76 561 8860 ema...chregu@phant.ch wor...+41 1 240 5670 gpg...0x5CE1DECB

« previous php.pear.dev (#11615) next »