Re: Something weird - PDF output crashes when using Google map

2008-11-13 Thread gennady
Danke Andreas! I changed from %@ include to jsp:include and it works now. I'm not sure why extra condition causes that crash, but that change fixed the inclusion. -Gennady Andreas Delmelle-2 wrote: On 13 Nov 2008, at 03:56, gennady wrote: Hi This code works fine: snip / But when

Re: SVG Text rendering

2008-11-13 Thread Jeremias Maerki
Martin, you will find that text rendering to PDF has improved a lot since the last Batik release. If you remove the pdf-transcoder.jar from the classpath and instead add FOP 0.95 (including dependencies) [1], you'll get virtually all text rendered as text instead of shapes. Please try it out, and

Re: Something weird - PDF output crashes when using Google map

2008-11-13 Thread Andreas Delmelle
On 13 Nov 2008, at 16:49, gennady wrote: Hi Danke Andreas! I changed from %@ include to jsp:include and it works now. I'm not sure why extra condition causes that crash, but that change fixed the inclusion. That's because [EMAIL PROTECTED] ... is actually like a macro, which is

invalid flag after regular expression

2008-11-13 Thread Sheldon Glickler
First of all, thank you to all who have helped me get this far. I have an xsl and can generate the appropriate xml from the data in the database. When I run the fop command manually, it generates a very nice looking pdf with no errors (other than a font message). I use php code to generate

Re: invalid flag after regular expression

2008-11-13 Thread Andreas Delmelle
On 13 Nov 2008, at 19:38, Sheldon Glickler wrote: Hi snip / I use php code to generate the xml file. This php is invoked via an AJAX call. After the xml file is generated I use the php command exec(the_command_string_for_running_the_php); How is the setup precisely? Since mixing client-

scale image if too large

2008-11-13 Thread Kendall Shaw
Looking at the mailing list archives, it looks like I can't do this, but I thought I'd check. If the image will fit within some size, I don't want to scale the image. If it is too large, I want to scale it to fit. Can it be done, without knowing the dimensions of the image? Kendall

Re: invalid flag after regular expression

2008-11-13 Thread Sheldon Glickler
Andreas Delmelle wrote: On 13 Nov 2008, at 19:38, Sheldon Glickler wrote: Hi snip / I use php code to generate the xml file. This php is invoked via an AJAX call. After the xml file is generated I use the php command exec(the_command_string_for_running_the_php); How is the setup

Re: scale image if too large

2008-11-13 Thread Andreas Delmelle
On 13 Nov 2008, at 20:31, Kendall Shaw wrote: Hi Looking at the mailing list archives, it looks like I can't do this, but I thought I'd check. If the image will fit within some size, I don't want to scale the image. If it is too large, I want to scale it to fit. Can it be done, without

Re: scale image if too large

2008-11-13 Thread Jeremias Maerki
It does work. scale-down-to-fit is supported since FOP 0.95 beta and is exactly what is needed. Basically, you need to do this: fo:external-graphic src=my.jpg inline-progression-dimension.maximum=100% content-width=scale-down-to-fit/ On 13.11.2008 20:39:21 Andreas Delmelle wrote: On 13 Nov

Re: invalid flag after regular expression

2008-11-13 Thread Andreas Delmelle
On 13 Nov 2008, at 20:43, Sheldon Glickler wrote: Hi snip / Now I am left with wondering why the exec command didn't create the pdf -- but that is a different problem. This needs some digging in the server logs, if I guess correctly... (if there is a server log somewhere, where the output

Re: invalid flag after regular expression

2008-11-13 Thread Sheldon Glickler
Andreas Delmelle wrote: On 13 Nov 2008, at 20:43, Sheldon Glickler wrote: Hi snip / Now I am left with wondering why the exec command didn't create the pdf -- but that is a different problem. This needs some digging in the server logs, if I guess correctly... (if there is a server log

Re: scale image if too large

2008-11-13 Thread Kendall Shaw
Yes, it works. Thanks! Jeremias Maerki wrote: It does work. scale-down-to-fit is supported since FOP 0.95 beta and is exactly what is needed. Basically, you need to do this: fo:external-graphic src=my.jpg inline-progression-dimension.maximum=100% content-width=scale-down-to-fit/ On 13.11.2008

Background Image Covers both Region-before and Region-body

2008-11-13 Thread Steffanina, Jeff
Fop-0.95 The current version of the output works perfectly. It consists simply of two parts: 1. a region-before that contains a logo and header text 2. a region-body which contains the detail lines. New change: the user wants a background image to cover BOTH the region-before

Re: SVG Text rendering

2008-11-13 Thread Cameron McCormack
Jeremias Maerki: you will find that text rendering to PDF has improved a lot since the last Batik release. Maybe it’d be a good idea to make another Batik release then (a 1.7.1?). There haven’t been many bug fixes and features since 1.7, but including a PDF transcoder that can keep text as text

Re: Background Image Covers both Region-before and Region-body

2008-11-13 Thread Jeremias Maerki
In the region-before, try a block-container with absolute-position=fixed which allows you to position the block-container relative to the paper edges. You may have to set font-size=0pt and line-height=1.0 to avoid a small vertical padding due to the half-leading trait. On 13.11.2008 23:36:04

Re: SVG Text rendering

2008-11-13 Thread Jeremias Maerki
If we have the energy to do that, of course. Maybe we should also make it a habit in FOP to publish the fop-transcoder.jar with the binary FOP releases. But then, I should have pushed the font and PDF libraries out to Commons ages ago which would allow us to transfer the PDF transcoder to Batik

AW: Background Image Covers both Region-before and Region-body

2008-11-13 Thread Georg Datterl
Hello Jeff, Fop-0.95 The current version of the output works perfectly. It consists simply of two parts: 1. a region-before that contains a logo and header text 2. a region-body which contains the detail lines. New change: the user wants a background image to