You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Roberto Bonsignori <bo...@caribel.it> on 2008/06/06 13:46:27 UTC

from Fop-0.20.1 to fop-0.94

Hi,
I'm migrating from Fop-0.20.1 to fop-0.94.
With the old version I use the following code for rendering the PDF
document:

try {
	ByteArrayOutputStream out = new ByteArrayOutputStream();
	InputSource file = new InputSource(new ByteArrayInputStream(byteArrayRes));
	Driver driver = new Driver(file, out);
	driver.run();
	content = out.toByteArray();
	this.fileGenerated = content;
}catch (FOPException fe){
...

Unfortunatly the class org.apache.fop.apps.Driver is no more used in new
version.
Can you help me in finding a new way for rendering the PDF document?

best regards

Roberto Bonsignori

e-mail:  r.bonsignori@caribel.it
mobile:  +39 348 3416914
ufficio: +39 050 983933
fax:     +39 050 3160092


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: from Fop-0.20.1 to fop-0.94

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Please read:
http://xmlgraphics.apache.org/fop/0.94/upgrading.html
and
http://xmlgraphics.apache.org/fop/0.94/embedding.html

FOP's API has changed and your code needs to be adjusted.

On 06.06.2008 13:46:27 Roberto Bonsignori wrote:
> Hi,
> I'm migrating from Fop-0.20.1 to fop-0.94.
> With the old version I use the following code for rendering the PDF
> document:
> 
> try {
> 	ByteArrayOutputStream out = new ByteArrayOutputStream();
> 	InputSource file = new InputSource(new ByteArrayInputStream(byteArrayRes));
> 	Driver driver = new Driver(file, out);
> 	driver.run();
> 	content = out.toByteArray();
> 	this.fileGenerated = content;
> }catch (FOPException fe){
> ...
> 
> Unfortunatly the class org.apache.fop.apps.Driver is no more used in new
> version.
> Can you help me in finding a new way for rendering the PDF document?
> 
> best regards
> 
> Roberto Bonsignori
> 
> e-mail:  r.bonsignori@caribel.it
> mobile:  +39 348 3416914
> ufficio: +39 050 983933
> fax:     +39 050 3160092


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org