You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Oisín <Oi...@voila.fr> on 2008/02/07 12:53:13 UTC

Re: Empty pdf more than 100k?

Hello!

 after updating to 0.94 I also found an increase of PDF filesize from 3k to
10k. After turning off compression I found out that this is due to the
included color profile. As these files are simple invoices containing some
tables an text in black only, I would like to remove the color profile from
the generated PDFs. With some thousand of thes files generated the amount of
disk space needed adds up considerably.
Thus, how can I avoid the color profile to be included into the PDFs? I'm
using FOP embedded into a Java application but haven't found any hint in the
docs.

Thanks,

Oisín



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


-- 
View this message in context: http://www.nabble.com/Empty-pdf-more-than-100k--tp13853054p15332286.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Empty pdf more than 100k?

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Ok, I've added the necessary option to FOP Trunk:
http://svn.apache.org/viewvc?rev=619417&view=rev

See the XML files in the revision above for documentation.

On 07.02.2008 13:42:26 Jeremias Maerki wrote:
> So far we haven't included an option to skip the inclusion of the sRGB
> profile. That's because XSL-FO defines all RGB colors to be in the sRGB
> color space. If the color profile is not added, the colors are actually
> wrong. If you really just use black, it's obviously unnecessary. But it's
> not unproblematic to add this option since we have to take care that we
> don't accidentally break support for PDF/A. PDF/A requires calibrated
> colors. I'll see what I can do.
> 
> On 07.02.2008 12:53:13 Oisín wrote:
> > 
> > Hello!
> > 
> >  after updating to 0.94 I also found an increase of PDF filesize from 3k to
> > 10k. After turning off compression I found out that this is due to the
> > included color profile. As these files are simple invoices containing some
> > tables an text in black only, I would like to remove the color profile from
> > the generated PDFs. With some thousand of thes files generated the amount of
> > disk space needed adds up considerably.
> > Thus, how can I avoid the color profile to be included into the PDFs? I'm
> > using FOP embedded into a Java application but haven't found any hint in the
> > docs.
> > 
> > Thanks,
> > 
> > Oisín
> > 
> > 
> > 
> > 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
> > 
> > 
> > -- 
> > View this message in context: http://www.nabble.com/Empty-pdf-more-than-100k--tp13853054p15332286.html
> > Sent from the FOP - Users mailing list archive at Nabble.com.
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> > 
> 
> 
> 
> 
> Jeremias Maerki




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Empty pdf more than 100k?

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
So far we haven't included an option to skip the inclusion of the sRGB
profile. That's because XSL-FO defines all RGB colors to be in the sRGB
color space. If the color profile is not added, the colors are actually
wrong. If you really just use black, it's obviously unnecessary. But it's
not unproblematic to add this option since we have to take care that we
don't accidentally break support for PDF/A. PDF/A requires calibrated
colors. I'll see what I can do.

On 07.02.2008 12:53:13 Oisín wrote:
> 
> Hello!
> 
>  after updating to 0.94 I also found an increase of PDF filesize from 3k to
> 10k. After turning off compression I found out that this is due to the
> included color profile. As these files are simple invoices containing some
> tables an text in black only, I would like to remove the color profile from
> the generated PDFs. With some thousand of thes files generated the amount of
> disk space needed adds up considerably.
> Thus, how can I avoid the color profile to be included into the PDFs? I'm
> using FOP embedded into a Java application but haven't found any hint in the
> docs.
> 
> Thanks,
> 
> Oisín
> 
> 
> 
> 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
> 
> 
> -- 
> View this message in context: http://www.nabble.com/Empty-pdf-more-than-100k--tp13853054p15332286.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org