RE: Mac Font problem

2007-11-20 Thread Raphael Parree
Andreas, That solved it for now... tx. When I have time I will try to find out the cause... Ch., -Original Message- From: Andreas L Delmelle [mailto:[EMAIL PROTECTED] Sent: 20 November 2007 08:13 To: fop-users@xmlgraphics.apache.org Subject: Re: Mac Font problem On Nov 20, 2007, at

Re: how to embed svg to fop?

2007-11-20 Thread Andreas L Delmelle
On Nov 20, 2007, at 09:10, m_dieu wrote: Hi snip / And my attempt to include this into a fop looks like this: fo:block fo:instream-foreign-object svg:svg width=170mm height=130mm xmlns:xlink=http://www.w3.org/2000/svg; ^^ You might want to bind the SVG

how to embed svg to fop?

2007-11-20 Thread m_dieu
Hi everybody, I'm tring to involve a generated svg into a fop-document. but i still get an error. The svg is created by JFreeChart like this: JFreeChart chart = ChartFactory.createPieChart( getChartTitle(), // chart title dataset,

Re: Empty pdf more than 100k?

2007-11-20 Thread Laurent Balthasar
I tried to check with acrobat reader and compare the properties, but didn't see any differences. I have attached a file containing the one generated pdf from the examples\fo\basic\simple.pdf What size do you have for the same example? Anyway, thanks for your answers, coz I was getting mad

Re: how to embed svg to fop?

2007-11-20 Thread m_dieu
thanks for the hint...i'll try this out... Andreas L Delmelle wrote: On Nov 20, 2007, at 09:10, m_dieu wrote: Hi snip / And my attempt to include this into a fop looks like this: fo:block fo:instream-foreign-object svg:svg width=170mm height=130mm

Empty pdf more than 100k?

2007-11-20 Thread Laurent Balthasar
Hello, we were using fop 0.20 and decided to migrate to the latest fop 0.94. Everything were fine except some code that needed to be adjusted. After some tests, we discover that all generated pdf have a much bigger size. From 6k with fop 0.20 it is now 112k?! After some investigations it seems

RE: Empty pdf more than 100k?

2007-11-20 Thread Winterflood, Jonathan
Hi, Could the fonts be getting embedded in the pdf in .94? I believe acrobat can tell you whether a font is embedded. (Other tools probably will also) HTH, Jonathan -Message d'origine- De : Laurent Balthasar [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 novembre 2007 09:59 À :

Re: Empty pdf more than 100k?

2007-11-20 Thread Jeremias Maerki
That the PDFs are a little bigger is to be expected. Hello world in FO: FOP 0.20.5: 2KB FOP 0.94: 5KB The increase is due to: - additional XMP metadata (~0.6KB) - embedded sRGB profile to make sure that the color space is the same as is defined by XSL-FO (0.20.5 wrongly used device-specific

Re: Loadind Fonts as Resource in 0.94 or Trunk

2007-11-20 Thread Jeremias Maerki
Do you have more details what exactly doesn't work (exceptions, stacktraces)? Plugging in a custom URIResolver should still work like before. Jeremias Maerki On 19.11.2007 12:13:00 Dmitri Ilyin wrote: Hi, The Font Loading has changed singnificant in the version 0.94. I have some

Re: Check response in fo:external-graphic

2007-11-20 Thread Jeremias Maerki
No, but you can use a private URIResolver (which you set on the FopFactory instance). In the code of that URIResolver you can react on HTTP responses yourself as you see fit. http://xmlgraphics.apache.org/fop/0.94/embedding.html#fop-factory Jeremias Maerki On 19.11.2007 14:37:59 m_dieu wrote:

Re: Loadind Fonts as Resource in 0.94 or Trunk

2007-11-20 Thread Dmitri Ilyin
i put this font registration part in my fop.xconf file. font metrics-url=fop/arial.xml kerning=yes embed-url=fop/arial.ttf font-triplet name=Arial style=normal weight=normal/ font-triplet name=ArialMT style=normal weight=normal/ /font The file fop/arial.xml is

Re: Empty pdf more than 100k?

2007-11-20 Thread Jeremias Maerki
I take it you're using a Sun JVM prior to 1.4.2_16. There seems to be a bug in earlier version where a Class.getResourceAsStream(String) returns null if the filename contains a space character. I didn't notice this problem before but I was able to reproduce it on Sun JDK 1.4.2_13. It disappeared

Re: Loadind Fonts as Resource in 0.94 or Trunk

2007-11-20 Thread Jeremias Maerki
Found the bug and fixed it in FOP Trunk: http://svn.apache.org/viewvc?rev=596724view=rev Thanks for spotting that. Jeremias Maerki On 20.11.2007 15:34:46 Dmitri Ilyin wrote: i put this font registration part in my fop.xconf file. font metrics-url=fop/arial.xml kerning=yes

Re: font problem ugrading from 0.93 to 0.94

2007-11-20 Thread Jeremias Maerki
Please try again with the latest FOP Trunk. I suspect your problem is fixed with my latest change, too. http://svn.apache.org/viewvc?rev=596724view=rev Jeremias Maerki On 15.11.2007 11:31:33 Alexander Lohse wrote: Hi, I am having trouble upgrading from 0.93 to 0.94. Is there any

Re: Empty pdf more than 100k?

2007-11-20 Thread Laurent Balthasar
I was using jdk 1.2.4_13 and just installed jdk 1.2.4_16. the previous example simple.fo is now 5014 bytes! So it is definitely what you said earlier regarding the jvm version. Is there a way to force the profile to be the small one? I can change my jvm locally but I'm not sure I can do the

Re: Loadind Fonts as Resource in 0.94 or Trunk

2007-11-20 Thread Dmitri Ilyin
thank you, thats perfect now :) 2007/11/20, Jeremias Maerki [EMAIL PROTECTED]: Found the bug and fixed it in FOP Trunk: http://svn.apache.org/viewvc?rev=596724view=rev Thanks for spotting that. Jeremias Maerki On 20.11.2007 15:34:46 Dmitri Ilyin wrote: i put this font registration

Re: Mac Font problem

2007-11-20 Thread Andreas L Delmelle
On Nov 20, 2007, at 09:05, Raphael Parree wrote: Andreas, That solved it for now... tx. When I have time I will try to find out the cause... FWIW, and to whom it may concern: the limitation, I think, is caused by the following in org.apache.fop.fonts.TTFFile line 225 and following ===