Re: FOP with WO error
Re: FOP with WO error
- Subject: Re: FOP with WO error
- From: Fabian Peters <email@hidden>
- Date: Thu, 10 Mar 2005 09:14:35 +0000
Hi Wolfram,
IIRC, there is a problem with contentAsDOMDocument() (in WO 5.2.3?).
Instead of
// parse FO tree
Document document = response.contentAsDOMDocument();
ByteArrayOutputStream out = new ByteArrayOutputStream();
Logger log = new ConsoleLogger ( ConsoleLogger.LEVEL_INFO );
Driver driver = new Driver();
driver.setLogger ( log );
MessageHandler.setScreenLogger ( log );
driver.setRenderer ( Driver.RENDER_PDF );
try
InputSource foInput = new InputSource();
foInput.setEncoding("utf-8");
foInput.setByteStream(new
ByteArrayInputStream(response.content()
.bytes()));
ByteArrayOutputStream out = new ByteArrayOutputStream();
Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO);
Driver driver = new Driver(foInput, out);
driver.setLogger(logger);
MessageHandler.setScreenLogger(logger);
driver.setRenderer(Driver.RENDER_PDF);
hth
Fabian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden