Re: Special characters in AWT preview and PDF renderers

2010-09-07 Thread Antti Karanta
On Mon, 30 Aug 2010 18:31:18 +0300, Pascal Sancho wrote: '#' indicates that the glyph is not available in any font used by FOP. Note that SVG uses the fonts installed in the system, while FOP needs ?? I think you mean the AWT renderer gets its fonts from the os and the pdf renderer ne

Special characters in AWT preview and PDF renderers

2010-08-16 Thread Antti Karanta
Hi! I have an SVG image with greek symbols, e.g. HEEL φ This renders fine in FOP AWT preview, but as # in PDF. The pdf is fine, too, if I change (in the SVG) the first line above to: i.e. remove the font references. I know the different renderers handle fo

Re: AW: AW: AW: GC overhead limit exceeded on a 64-bit jvm

2010-06-14 Thread Antti Karanta
On Mon, 14 Jun 2010 16:47:11 +0300, Georg Datterl wrote: The ant task has to start a java VM, too. You just have to find out, where the VM is started and set the switch there. In case you don't want to dig into ant or fop startup scripts, a quick and dirty solution is to set the envi

Re: AW: AW: GC overhead limit exceeded on a 64-bit jvm

2010-06-14 Thread Antti Karanta
On Mon, 14 Jun 2010 13:21:13 +0300, Georg Datterl wrote: Anyway, I used -Xincgc and had no more problems with the exception. That did the trick for me, too. Thanks a lot for your help! ::Antti:: - To unsubscr

Re: AW: GC overhead limit exceeded on a 64-bit jvm

2010-06-14 Thread Antti Karanta
On Mon, 14 Jun 2010 13:04:05 +0300, Georg Datterl wrote: Let's blame java: http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html#par_gc.oom Thanks for the link. I already knew what this exception results from but what baffles me is that how the runtime profile can be so

GC overhead limit exceeded on a 64-bit jvm

2010-06-14 Thread Antti Karanta
Hi! I am facing a strange memory problem with FOP 0.95. I have a rather large xsl-fo file (size 10 574 859 bytes) containing references to 1062 svg images and resulting in a 683 page pdf. What is strange is that FOP renders this fine on a 32-bit jvm, but fails

Re: Problem w/ svg image size in pdf

2008-12-05 Thread Antti Karanta
On Fri, 05 Dec 2008 12:46:56 +0200, Jeremias Maerki <[EMAIL PROTECTED]> wrote: Please see here: http://xmlgraphics.apache.org/fop/faq.html#pdf-print-contortion Thanks! I somehow missed that. Combination of setting scaling => none in the print settings and using ps driver instead of pc

Problem w/ svg image size in pdf

2008-12-05 Thread Antti Karanta
Hi! When I use fop to directly print a document containing an svg image, the image is produced w/ correct size on paper. However, if I produce pdf and then print it w/ adobe acrobat reader, the image is sligtly (ratio about 14/15) smaller than the original. This

Re: fo:external-graphic w/ # in file name

2008-12-03 Thread Antti Karanta
On Wed, 03 Dec 2008 09:23:25 +0200, Jeremias Maerki <[EMAIL PROTECTED]> wrote: "#" in a URI has a special meaning. It's used as separator for the URI fragment. You have to escape that character using %23 (if I've looked that up correctly). url(file:/C:/Temp/test123/m2%231_1.svg) Thanks! Th

fo:external-graphic w/ # in file name

2008-12-02 Thread Antti Karanta
Hi! I noticed that if I have # in the file name of an external graphics file, fop is unable to find it. If I rename the file (and change the .fo file accordingly) it works. Here's what I have: src="url(file:/C:/Temp/test123/m2#1_1.svg)" width="au

Re: Fop Progress Output

2008-06-19 Thread Antti Karanta
On Thu, 19 Jun 2008 11:30:56 +0300, Andreas Delmelle <[EMAIL PROTECTED]> wrote: OTOH, /if/ one knows in advance how many pages a document is supposed to generate, then with the new event-mechanism, it would be possible to catch the new-page events, and derive a percentage from there.

Re: Print preview default zoom

2008-06-11 Thread Antti Karanta
On Wed, 11 Jun 2008 15:24:26 +0300, Jeremias Maerki <[EMAIL PROTECTED]> wrote: thanks for the report. This is a bug, or rather: was. ;-) Can you please verify that my fix [1] improves the situation? It seems to work correctly now. Thanks! -Antti-

Print preview default zoom

2008-06-09 Thread Antti Karanta
Hi! I had a problem that svg images were rasterized w/ too low a resolution when printed. This was easy enough to solve - I set the target resolution to high enough value via an FOUserAgent object: userAgent.setTargetResolution( 280f ) ; However, this seems

Re: Picture update problem

2008-06-06 Thread Antti Karanta
On Fri, 06 Jun 2008 12:40:27 +0300, Andreas Delmelle <[EMAIL PROTECTED]> wrote: The cache can be reached via ImageManager.getCache() or, more complete, from the FOP-side: FopFactory.getImageManager().getCache().clearCache(); Thanks! This solved my problem. It is unfortunate that the wh

Picture update problem

2008-06-06 Thread Antti Karanta
Hi! I have an issue that I think is due to FOP caching images. The situation is this: * FOP is embedded in our software. I create a single FopFactory and create a new FOP instance via it for each render. * I render a pdf with fo that references some svg image files. I

Re: Strange printing problem

2008-06-05 Thread Antti Karanta
On Thu, 29 May 2008 12:35:51 +0300, Jeremias Maerki <[EMAIL PROTECTED]> wrote: In addition to Andreas' comments: This problem has come up here a number of times now (See archives). I tried googling for the problem before asking on the list, but found nothing. I guess I didn't come up w/ t

Strange printing problem

2008-05-26 Thread Antti Karanta
Hi! When I print w/ fop using the print renderer, everything is fine when using a HP LaserJet 4350 dtn, but a lot of the content is lost when using HP LaserJet P3005dn. In a document containing some text and 5 svg pics, none of the text and only 3 of 5 images (every

Re: Problem using Lucida Console font

2008-05-07 Thread Antti Karanta
On Wed, 07 May 2008 11:30:32 +0300, Jeremias Maerki <[EMAIL PROTECTED]> wrote: Worked fine for me with and without additional quotes in 0.95beta (same setup as yours except I used Sun JVM 1.5.0_14). Are you sure that your config file gets used? Turns out I had messed up my PATH and was u

Problem using Lucida Console font

2008-05-07 Thread Antti Karanta
Hi! My adventures with fonts continue. Now I run into trouble trying to use Lucida Console (in pdf). What I have is this: space-before.maximum="1.2em" space-after.minimum="0.8em" space-after.optimum="1em" space-after.maximum="1.2em" hyphenate="false" wrap-optio

Italic Tahoma

2008-05-06 Thread Antti Karanta
Hi! I tried using fo:inline element to produce italic text using Tahoma font. It did not work. Here's what I did: italics FOP said: 6.5.2008 13:08:31 org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Tahoma,italic,400' not found. Substituting with

Controlling FOP printing

2008-02-25 Thread Antti Karanta
Hi! When printing w/ FOP, how do I pop up a printing dialog to allow the user to select the printer to print to? Now the print seems to go to the default printer, no questions asked. I found this related bug report: http://issues.apache.org/bugzilla/show_bug.cgi?id=316