Re: Problem with scaling png image file in svg

2004-02-16 Thread Chris Bowditch
Jay Chiu wrote: Chris, I have successfylly solved the problem. I think it is a fop bug. It does look that way. I have just changed 2 lines of PDFGraphics2D.java: line 289: and line 296 FROM: Dimension size = new Dimension(imageInfo.width * ratio, imageInfo.height * 3); and g.fillRect(0, 0,

Re: Problem with scaling png image file in svg

2004-02-16 Thread Jeremias Maerki
It's Batik's job to load images within SVG files. Batik has its own PNG codec built in. FOP currently can't use it. Batik and FOP use different ways to load images. On 16.02.2004 11:15:24 Chris Bowditch wrote: Another thing I found out is that JIMI support is not required for png file in svg.

Re: Rectangle around characters

2004-02-16 Thread Chris Bowditch
Thomas Brechtl wrote: FOP 0.20.5 Hi, I'm searching for some way to put a rectangle around some characters, in the example only EFGH should be in a rectangle. ABCD and IJKL should be in the same line but not in a rectangle. FOP seems not to support the way in the example with fo:inline and

Re: Problem with scaling png image file in svg

2004-02-16 Thread Chris Bowditch
Jeremias Maerki wrote: It's Batik's job to load images within SVG files. Batik has its own PNG codec built in. FOP currently can't use it. Batik and FOP use different ways to load images. Thanks Jeremias - To unsubscribe, e-mail:

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 would

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

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

2004-02-16 Thread Robert . Walker
thanks for the replies, how would ant help me here. I did not explain correctly i think. they have a swing client, the select some criteria thats results in selecting 5 pdfs on the server, I java-ftp them from server to client and store them in tmp dir, then I was going to run FOP -xml 1.xml

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

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

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 snip / 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

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: Rectangle around characters

2004-02-16 Thread J.Pietschmann
Thomas Brechtl wrote: I'm searching for some way to put a rectangle around some characters, in the example only EFGH should be in a rectangle. ABCD and IJKL should be in the same line but not in a rectangle. FOP seems not to support the way in the example with fo:inline and border-attributes. Is

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 thinking

Re: Rectangle around characters

2004-02-16 Thread Thomas Brechtl
FOP 0.20.5 I'm searching for some way to put a rectangle around some characters, in the example only EFGH should be in a rectangle. ABCD and IJKL should be in the same line but not in a rectangle. FOP seems not to support the way in the example with fo:inline and

Re: Rectangle around characters

2004-02-16 Thread Thomas Brechtl
I'm searching for some way to put a rectangle around some characters, in the example only EFGH should be in a rectangle. ABCD and IJKL should be in the same line but not in a rectangle. FOP seems not to support the way in the example with fo:inline and border-attributes. Is there some