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 when I installed 1.4.2_16. It does not appear in 1.5.0_10 
(or later) and 6.0_03.

Just to explain what this has to do with the PDF growing to over 100KB:

There's a fallback built in that loads the JDK's default sRGB color
profile if the one bundled with FOP cannot be loaded for some (ha!)
reason. The sRGB profile Sun bundles is about 100KB in size while ours
is only about 5KB.

Jeremias Maerki



On 20.11.2007 10:50:24 Laurent Balthasar wrote:
> 
> 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 yesterday...
> 
> Laurent
> 
> 
> Jeremias Maerki-2 wrote:
> > 
> > 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 RGB). (~2.5KB)
> > 
> > As Jonathan mentioned, the size is likely to be because of embedded
> > fonts but I'm not sure not embedding the font is the right way. If you
> > send the PDF to me I can tell you what's in it (only if you want).
> > 
> > Jeremias Maerki
> > 
> > 
> > 
> > On 20.11.2007 09:59:08 Laurent Balthasar wrote:
> >> 
> >> 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 inside the pdf one object streamed is
> >> much bigger but I have no idea what kind of element it could be (font,
> >> color
> >> profile, ...)
> >> 
> >> Anybody knows what could be the origin of the problems? Generated Pdf
> >> works
> >> fine but it's really a waste of space, especially when sending emails
> >> with
> >> pdf attached).
> >> 
> >> Thanks for any help!
> >> 
> >> Laurent
> >> 
> >> 
> >> -- 
> >> View this message in context:
> >> http://www.nabble.com/Empty-pdf-more-than-100k--tf4842011.html#a13853054
> >> Sent from the FOP - Users mailing list archive at Nabble.com.
> >> 
> >> 
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> http://www.nabble.com/file/p13853729/simple.pdf simple.pdf 
> -- 
> View this message in context: 
> http://www.nabble.com/Empty-pdf-more-than-100k--tf4842011.html#a13853729
> Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to