running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically

2004-02-16 Thread Robert . Walker
Hi all, in order to do a batch print of pdf files that are on my customers local pc, I would like to run the equivalent of "FOP -xml 1.xml -xsl 2.xsl -print" programmatically, is there another way than resorting to a Runtime.getRuntime().exec("..") this is what I am thinking I have to do, but wo

Re: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically

2004-02-16 Thread Glen Mazza
Two main options are: 1. Use the Apache Ant Task: (if you haven't yet learned Ant, it is time very well spent to do so): http://xml.apache.org/fop/anttask.html 2. Or, for a very simple Java program, click the "This example" link here: http://xml.apache.org/fop/embedding.html#ExampleXML2PDF I s

RE: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically

2004-02-16 Thread Andreas L. Delmelle
> -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

RE: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically

2004-02-16 Thread Robert . Walker
r "FOP -xml 1.xml -xsl 2.xsl -print" and runtime.exec() one of these methods for each pdf i searched and searched and this is all i could find -Original Message- From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 12:20 PM To: [EMAIL PROTECTED] S

RE: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically

2004-02-16 Thread Robert . Walker
ssage- 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] > >

RE: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically

2004-02-16 Thread Andreas L. Delmelle
> -Original Message- > From: [EMAIL PROTECTED] > > andreas, that was a good idea, but it is not supported > driver.setRenderer(Driver.RENDER_PRINT); > > but get a exception thrown from Driver class > > java.lang.IllegalArgumentException: Use renderer form of setRenderer() for > PRINT >

RE: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically

2004-02-16 Thread Andreas L. Delmelle
> -Original Message- > From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] > > ... good news is, you can have a look at FOP's own > fop.apps.PrintStarter to get the idea of how to do it in Java. Hmm. Make that fop.apps.CommandLineStarter as well, to get a more complete picture... Cheers

Re: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically

2004-02-16 Thread Glen Mazza
Andreas L. Delmelle wrote: 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 impr

RE: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically

2004-02-16 Thread Andreas L. Delmelle
> -Original Message- > From: Glen Mazza [mailto:[EMAIL PROTECTED] > > > I didn't see that as an option, because he wanted the PDF output > option. Print uses AWT and has different results. > Argh! Didn't read far enough to get that one... absolutely correct in that case. Cheers, Andreas

Re: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically

2004-02-16 Thread J.Pietschmann
[EMAIL PROTECTED] wrote: Hi all, in order to do a batch print of pdf files that are on my customers local pc, I would like to run the equivalent of "FOP -xml 1.xml -xsl 2.xsl -print" programmatically, is there another way than resorting to a Runtime.getRuntime().exec("..") this is what I am think

RE: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically

2004-02-17 Thread Nicholson, Robb
Title: RE: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically Are you starting with XML/XSL or starting with PDF? If you are generating the PDF's from XML/XSL, I would consider generating PCL or PostScript instead if it is an option for you. I am using FOP right n

RE: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically

2004-02-17 Thread Robert . Walker
thanks all, especially robb for his code snippet, what I did in the interim till i figure a better solution is to create a MyFop class which is basically a org.apache.fop.app.Fop with a constructor (Fop only has main() method) thats takes String myArgs [] = {"-xml", "test.xml",

RE: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically

2004-02-19 Thread Robert . Walker
Title: RE: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically hi all, well I have some advice for anyone using the -print option to print pdf files   seems that do not look the same as when the same xformation is output to a .pdf file and opened with adobe   in my c

RE: running "FOP -xml 1.xml -xsl 2.xsl -print" programmatically

2004-02-20 Thread John Austin
On Thu, 2004-02-19 at 18:04, [EMAIL PROTECTED] wrote: > hi all, well I have some advice for anyone > using the -print option to print pdf files > > seems that do not look the same as when the same xformation is output > to a .pdf file and opened > with adobe > > in my case it did not look all