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 Rick Roen <Ri...@LakeValleySeed.com> on 2006/06/01 23:27:25 UTC

200K increase for xml -> pdf when using images

FOP 0.92b

Saxon 8

Barcode4j

 

 

I am doing an xml + xslt -> pdf via the command line using Saxon8 to
transform.

 

When I produce the final pdf with no images the file size is approximately
25K

 

When I add two postnet bar codes, each of which are 1K png files, the pdf
goes to about 225K.

 

Why does it grow so large?

 

I think I have read there is some problem if I were to use Barcode4j to
produce an SVG file and put this in my transformation with 0.92, but does
someone know if this would cause the same increase in file size?

 

TIA

 

Rick


RE: 200K increase for xml -> pdf when using images

Posted by Rick Roen <Ri...@LakeValleySeed.com>.
Thanks Jeremias and Joerg,

I downloaded the latest (you're right, it's not all that hard) and the
resulting pdf is now 27K, not 225K!)

Rick

-----Original Message-----
From: Jeremias Maerki [mailto:dev@jeremias-maerki.ch] 
Sent: Friday, June 02, 2006 12:27 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: 200K increase for xml -> pdf when using images

Joerg is right. It's the color profile bug. I don't even have to look at
the barcode image because it doesn't matter if there's a color profile
attached. FOP 0.92beta will add one anyway due to the bug.

Compiling FOP Trunk is very simple:
- Install a Subversion client
- Install Apache Ant
- Check out FOP
- Run "ant" from the FOP's home directory

All neatly described on the website:
http://xmlgraphics.apache.org/fop/trunk/compiling.html
http://xmlgraphics.apache.org/repo.html




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


Re: 200K increase for xml -> pdf when using images

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Joerg is right. It's the color profile bug. I don't even have to look at
the barcode image because it doesn't matter if there's a color profile
attached. FOP 0.92beta will add one anyway due to the bug.

Compiling FOP Trunk is very simple:
- Install a Subversion client
- Install Apache Ant
- Check out FOP
- Run "ant" from the FOP's home directory

All neatly described on the website:
http://xmlgraphics.apache.org/fop/trunk/compiling.html
http://xmlgraphics.apache.org/repo.html

On 02.06.2006 00:39:15 Rick Roen wrote:
> I've attached a sample of a png file for the postnet barcode.
> 
> I'm a complete java novice and last time I tried to compile the latest
> version I spent hours and got nothing since I don't know the basics.
> 
> Can you check from the attachment to see if it has a color profile?
> 
> Rick
> 
> -----Original Message-----
> From: J.Pietschmann [mailto:j3322ptm@yahoo.de] 
> Sent: Thursday, June 01, 2006 4:27 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: 200K increase for xml -> pdf when using images
> 
> Rick Roen wrote:
> > When I add two postnet bar codes, each of which are 1K png files, the pdf
> > goes to about 225K.
> > 
> > Why does it grow so large?
> 
> Wild guess: there was a problem with embedding large color profiles
> into the PDF if the original pictures didn't contain a color profile.
> The problem has been fixed in SVN. Could you grab a recent snapshot
> and check whether the problem persists?


Jeremias Maerki


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


RE: 200K increase for xml -> pdf when using images

Posted by Rick Roen <Ri...@LakeValleySeed.com>.
I've attached a sample of a png file for the postnet barcode.

I'm a complete java novice and last time I tried to compile the latest
version I spent hours and got nothing since I don't know the basics.

Can you check from the attachment to see if it has a color profile?

Rick

-----Original Message-----
From: J.Pietschmann [mailto:j3322ptm@yahoo.de] 
Sent: Thursday, June 01, 2006 4:27 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: 200K increase for xml -> pdf when using images

Rick Roen wrote:
> When I add two postnet bar codes, each of which are 1K png files, the pdf
> goes to about 225K.
> 
> Why does it grow so large?

Wild guess: there was a problem with embedding large color profiles
into the PDF if the original pictures didn't contain a color profile.
The problem has been fixed in SVN. Could you grab a recent snapshot
and check whether the problem persists?

J.Pietschmann

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


Re: 200K increase for xml -> pdf when using images

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Rick Roen wrote:
> When I add two postnet bar codes, each of which are 1K png files, the pdf
> goes to about 225K.
> 
> Why does it grow so large?

Wild guess: there was a problem with embedding large color profiles
into the PDF if the original pictures didn't contain a color profile.
The problem has been fixed in SVN. Could you grab a recent snapshot
and check whether the problem persists?

J.Pietschmann

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