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 hammo <pa...@gmail.com> on 2007/12/05 13:53:54 UTC

Re: Empty pdf more than 100k?

Hello,

I have the same problem migrating from fop 0.20 to 0.94 - a file generated
using fop 0.20 = 147K, whilst the same  file generated using fop 0.94 =
434K.  Also, I'm using jdk1.5
Because these pdf files are dowloaded from a web app, the increase in file
size will mean the powers that be deciding that we do not migrate to 0.94 at
all.
Any other suggestions/observations since the last posts??

Thanks,
Paul



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#a14171022
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 Abel Braaksma <ab...@xs4all.nl>.
Not sure whether this is applicable or not, but I have used Multivalent 
(http://multivalent.sourceforge.net/) in the past for re-ordering pages 
(from one-up to two-up etc) and often was surprised at the output being 
increasingly smaller, without loss of quality. Often I used it to assess 
whether a certain PDF could be made smaller at all and when the change 
was significant, I sometimes added it to the process.

You can use Multivalent just for decreasing / compacting file size of 
PDF. Test it to see if it works for you. The outcome may be of help for 
the programmers too, to know whether it is possible at all and to what 
level to decrease the size.

Cheers,
-- Abel Braaksma

Jeremias Maerki wrote:
> I haven't done any experiments to prove it, but I suspect it has to do
> with the table border painting. We've improved table border quality a
> lot in 0.94 which causes increased size of the page content. If I take
> one of the pages in between which have a large table the page content
> size is three times as big in 0.94 as in 0.20.5:
> page 13: 0.20.5: 5515 bytes, 0.94: 17012 bytes
>
> I'm surprised at the amount of the increase. But I'm afraid I cannot do
> anything about that for the moment.
>
> On 05.12.2007 15:15:22 hammo wrote:
>   


---------------------------------------------------------------------
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>.
I haven't done any experiments to prove it, but I suspect it has to do
with the table border painting. We've improved table border quality a
lot in 0.94 which causes increased size of the page content. If I take
one of the pages in between which have a large table the page content
size is three times as big in 0.94 as in 0.20.5:
page 13: 0.20.5: 5515 bytes, 0.94: 17012 bytes

I'm surprised at the amount of the increase. But I'm afraid I cannot do
anything about that for the moment.

On 05.12.2007 15:15:22 hammo wrote:
> 
> Here are the two pdf's, before and after..
> 
> Thanks,
> Paul
> 
> 
> Jeremias Maerki-2 wrote:
> > 
> > That's not the same problem. The increase is not ~105KB but almost 300KB.
> > Something else must be wrong. If it were about the color profile, it
> > would be an increase of about 105KB. If you post the two PDFs (before
> > and after) I can better tell what exactly could be going on.
> > 
> > On 05.12.2007 13:53:54 hammo wrote:
> >> 
> >> Hello,
> >> 
> >> I have the same problem migrating from fop 0.20 to 0.94 - a file
> >> generated
> >> using fop 0.20 = 147K, whilst the same  file generated using fop 0.94 =
> >> 434K.  Also, I'm using jdk1.5
> >> Because these pdf files are dowloaded from a web app, the increase in
> >> file
> >> size will mean the powers that be deciding that we do not migrate to 0.94
> >> at
> >> all.
> >> Any other suggestions/observations since the last posts??
> >> 
> >> Thanks,
> >> Paul
> >> 
> >> 
> >> 
> >> 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#a14171022
> >> Sent from the FOP - Users mailing list archive at Nabble.com.
> > 
> > 
> > Jeremias Maerki
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> > 
> > 
> > 
> http://www.nabble.com/file/p14172448/before.pdf before.pdf 
> http://www.nabble.com/file/p14172448/after.pdf after.pdf 
> -- 
> View this message in context: http://www.nabble.com/Empty-pdf-more-than-100k--tf4842011.html#a14172448
> 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


Re: Empty pdf more than 100k?

Posted by hammo <pa...@gmail.com>.
Here are the two pdf's, before and after..

Thanks,
Paul


Jeremias Maerki-2 wrote:
> 
> That's not the same problem. The increase is not ~105KB but almost 300KB.
> Something else must be wrong. If it were about the color profile, it
> would be an increase of about 105KB. If you post the two PDFs (before
> and after) I can better tell what exactly could be going on.
> 
> On 05.12.2007 13:53:54 hammo wrote:
>> 
>> Hello,
>> 
>> I have the same problem migrating from fop 0.20 to 0.94 - a file
>> generated
>> using fop 0.20 = 147K, whilst the same  file generated using fop 0.94 =
>> 434K.  Also, I'm using jdk1.5
>> Because these pdf files are dowloaded from a web app, the increase in
>> file
>> size will mean the powers that be deciding that we do not migrate to 0.94
>> at
>> all.
>> Any other suggestions/observations since the last posts??
>> 
>> Thanks,
>> Paul
>> 
>> 
>> 
>> 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#a14171022
>> Sent from the FOP - Users mailing list archive at Nabble.com.
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> 
http://www.nabble.com/file/p14172448/before.pdf before.pdf 
http://www.nabble.com/file/p14172448/after.pdf after.pdf 
-- 
View this message in context: http://www.nabble.com/Empty-pdf-more-than-100k--tf4842011.html#a14172448
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>.
That's not the same problem. The increase is not ~105KB but almost 300KB.
Something else must be wrong. If it were about the color profile, it
would be an increase of about 105KB. If you post the two PDFs (before
and after) I can better tell what exactly could be going on.

On 05.12.2007 13:53:54 hammo wrote:
> 
> Hello,
> 
> I have the same problem migrating from fop 0.20 to 0.94 - a file generated
> using fop 0.20 = 147K, whilst the same  file generated using fop 0.94 =
> 434K.  Also, I'm using jdk1.5
> Because these pdf files are dowloaded from a web app, the increase in file
> size will mean the powers that be deciding that we do not migrate to 0.94 at
> all.
> Any other suggestions/observations since the last posts??
> 
> Thanks,
> Paul
> 
> 
> 
> 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#a14171022
> Sent from the FOP - Users mailing list archive at Nabble.com.


Jeremias Maerki


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