For Programmers: Free Programming Magazines  


Home > Archive > PostScript > June 2007 > ps2pdf generated files much bigger then pdfcreator









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ps2pdf generated files much bigger then pdfcreator
amoroder

2007-06-11, 4:13 am

Hello,

we created pdf files of our invoices using ps2pdf. The logo and part
of the text are the same in all pages. When we create the PDF of 200
invoices via ps2pdf it is 11 MB big. When we create it with pdfcreator
it is only 700 KB.

Does anyone know why this huge difference ?

Thanks
Andreas

2007-06-11, 4:13 am

In article <1181543090.341315.253130@k79g2000hse.googlegroups.com>,
amoroder@sb-brixen.it says...
> Hello,
>
> we created pdf files of our invoices using ps2pdf. The logo and part
> of the text are the same in all pages. When we create the PDF of 200
> invoices via ps2pdf it is 11 MB big. When we create it with pdfcreator
> it is only 700 KB.
>
> Does anyone know why this huge difference ?


Without seeing the file I would guess that the logo is being referenced
from each page with the creator output, and included on each page with
the ps2pdf output. I'm sort of assuming the logo is a bitmap graphic.

Identifying items which can be reused is not always easy, though
defining the common are as a form should improve identification.


Ken
amoroder

2007-06-11, 4:13 am


> Without seeing the file I would guess that the logo is being referenced
> from each page with the creator output, and included on each page with
> the ps2pdf output. I'm sort of assuming the logo is a bitmap graphic.
>
> Identifying items which can be reused is not always easy, though
> defining the common are as a form should improve identification.
>
> Ken


Hello,

as I supposed too.
I solved it this way:
now the application does no more print the logo.
The logo is added later via pdftk.

This way the file changed from 19M to 450 KB.

This works in the case we can change the application, but remains a
problem when we can't.


Bye
Andreas

Ross Presser

2007-06-11, 7:06 pm

On Jun 11, 5:11 am, amoroder <amoro...@sb-brixen.it> wrote:
>
>
>
> Hello,
>
> as I supposed too.
> I solved it this way:
> now the application does no more print the logo.
> The logo is added later via pdftk.
>
> This way the file changed from 19M to 450 KB.
>
> This works in the case we can change the application, but remains a
> problem when we can't.
>
> Bye
> Andreas


There is a free (as in beer) java application from MultiValent that
does an excellent job of identifying reusable objects, as well as
other slimming measures:

http://multivalent.sourceforge.net/Tools/index.html

You want the "compress" tool.

Quick running instructions:

Put Multivalent.jar in some convenient directory.
Create this batch file in C:\WINDOWS or some other directory within
your path:

@java -classpath <path_to_multivalent.jar> tool.pdf.Compress %*

Now you can do

pdfCompress BigPdf.pdf

Don Lancaster

2007-06-27, 10:05 pm

amoroder wrote:
> Hello,
>
> we created pdf files of our invoices using ps2pdf. The logo and part
> of the text are the same in all pages. When we create the PDF of 200
> invoices via ps2pdf it is 11 MB big. When we create it with pdfcreator
> it is only 700 KB.
>
> Does anyone know why this huge difference ?
>
> Thanks
> Andreas
>

Print to disk and view the sourcecode.


--
Many thanks,

Don Lancaster voice phone: (928)428-4073
Synergetics 3860 West First Street Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml email: don@tinaja.com

Please visit my GURU's LAIR web site at http://www.tinaja.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com