|
Removing XMP before distilling
Message-ID:<gjt540$o0v$1@news.lrz-muenchen.de>
Subject:Removing XMP before distilling
Date:Mon, 5 Jan 2009 15:22:54 +0100
Hello,
In order to reduce the file size of a 100MB PDF containing tons of
Illustrator eps I thought about removing XMP data before distilling.
The ps is generated by Latex' dvips, and the following crude awk script
is used to remove the XMP data of the AI eps
BEGIN {printit=1};
/BeginClientInjection: PageSetup End/ {printit=0};
/BeginClientInjection: PageTrailer Start/ {printit=0};
printit==1 {print};
/EndClientInjection: PageSetup End/ {printit=1};
/EndClientInjection: PageTrailer Start/ {printit=1};
As an example the original ps is on
<http://www.hft.ei.tum.de/mz/overhead.ps>
the resulting Distiller 8.1 generated pdf with and without the XMP data
are on
<http://www.hft.ei.tum.de/mz/overhead_with_xmp.pdf>
<http://www.hft.ei.tum.de/mz/overhead_no_xmp.pdf>
Acrobat Pro 8 reports for the two versions
category with_xmp no_xmp
---------------------------------------
content 1775 1754
fonts 2483 2482
structure 17 0
overhead 57389 4805
ext graph mem 121 121
total 61785 9162
Do I have to expect unwanted side effects?
Best,
Michael
Message-ID:<gjt540$o0v$1@news.lrz-muenchen.de>
Subject:Removing XMP before distilling
Date:Mon, 5 Jan 2009 15:22:54 +0100
Hello,
In order to reduce the file size of a 100MB PDF containing tons of
Illustrator eps I thought about removing XMP data before distilling.
The ps is generated by Latex' dvips, and the following crude awk script
is used to remove the XMP data of the AI eps
BEGIN {printit=1};
/BeginClientInjection: PageSetup End/ {printit=0};
/BeginClientInjection: PageTrailer Start/ {printit=0};
printit==1 {print};
/EndClientInjection: PageSetup End/ {printit=1};
/EndClientInjection: PageTrailer Start/ {printit=1};
As an example the original ps is on
<http://www.hft.ei.tum.de/mz/overhead.ps>
the resulting Distiller 8.1 generated pdf with and without the XMP data
are on
<http://www.hft.ei.tum.de/mz/overhead_with_xmp.pdf>
<http://www.hft.ei.tum.de/mz/overhead_no_xmp.pdf>
Acrobat Pro 8 reports for the two versions
category with_xmp no_xmp
---------------------------------------
content 1775 1754
fonts 2483 2482
structure 17 0
overhead 57389 4805
ext graph mem 121 121
total 61785 9162
Do I have to expect unwanted side effects?
Best,
Michael
|