andreas, that was a good idea, but it is not supported
I changed
driver.setRenderer(Driver.RENDER_PDF);
to
driver.setRenderer(Driver.RENDER_PRINT);
but get a exception thrown from Driver class
java.lang.IllegalArgumentException: Use renderer form of setRenderer() for
PRINT
at org.apache.fop.apps.Driver.setRenderer(Driver.java:353)
at ExampleXML2PDF.convertXML2PDF(ExampleXML2PDF.java:105)
at ExampleXML2PDF.main(ExampleXML2PDF.java:157)
I don't think there is a way to print from the current jvm
(without using the runtime.exec()) :-(
-----Original Message-----
From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED]
Sent: Monday, February 16, 2004 12:20 PM
To: [EMAIL PROTECTED]
Subject: RE: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically
> -----Original Message-----
> From: Glen Mazza [mailto:[EMAIL PROTECTED]
>
>
> 2. Or, for a very simple Java program, click the "This example"
> link here:
> http://xml.apache.org/fop/embedding.html#ExampleXML2PDF
>
Say, I was about to point Robert there too, but first wanted to check a bit
more on how he would have to adapt the example for Print output...
Do you know off the top of your head (correct expression?) whether he could
just replace the setRenderer()? (I was under the impression that Print & AWT
were the two exceptions in this case; might be mistaken)
TIA
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]