Page 1 of 1
"Remove PieceInfo" action not removing PieceInfo!
Posted: Wed Apr 23, 2025 6:55 pm
by thepkglab_greg
I'm using a modified version of the standard "Minimize File Size 3.0" action list (my ultimate goal here is to squeeze an artwork file preview to under 20MB for email attachments - the image is being flattened and rasterized with downsampling).
I've checked the box to remove PieceInfo under the "Remove Metadata" action, but this action list still sometimes outputs very large files that have hundreds of megs of PieceInfo intact (according to Acrobat's audit space tool). These files are not locked for editing, certified, or any other kind of permission restriction. Why is this PieceInfo not being deleted?
Re: "Remove PieceInfo" action not removing PieceInfo!
Posted: Wed Apr 23, 2025 7:16 pm
by loicaigon
By default, PDF uses incremental updates. So if you simply save the PDF, chances are high that size is indeed not affected because previous state will be preserved. Save document as new file to have the PDF starting on a "blank" page.
See page52 here:
https://opensource.adobe.com/dc-acrobat ... 0_2008.pdf
Re: "Remove PieceInfo" action not removing PieceInfo!
Posted: Wed Apr 23, 2025 8:04 pm
by thepkglab_greg
loicaigon wrote: ↑Wed Apr 23, 2025 7:16 pm
Save document as new file to have the PDF starting on a "blank" page.
Thanks for the reply, but I'm not sure if this is the issue - I just tried Save As (and also Save as other → Reduced size PDF) in Acrobat, and the output file was the same size in both cases.
Re: "Remove PieceInfo" action not removing PieceInfo!
Posted: Wed Apr 23, 2025 8:12 pm
by loicaigon
Can you share the file?
You can send at loica (at) endocus (dot) com
Re: "Remove PieceInfo" action not removing PieceInfo!
Posted: Wed Apr 23, 2025 9:07 pm
by magnussandstrom
thepkglab_greg wrote: ↑Wed Apr 23, 2025 6:55 pm
..is being flattened and rasterized..
Just a heads up, to "flatten and rasterize" objects often increases the file size.
Re: "Remove PieceInfo" action not removing PieceInfo!
Posted: Wed Apr 23, 2025 11:25 pm
by thepkglab_greg
magnussandstrom wrote: ↑Wed Apr 23, 2025 9:07 pm
Just a heads up, to "flatten and rasterize" objects often increases the file size.
Unfortunately in this case, it really seems to be the PieceInfo that's the problem:

Re: "Remove PieceInfo" action not removing PieceInfo!
Posted: Thu Apr 24, 2025 10:39 am
by freddyp
I have just run a "Remove metadata" with the "PieceInfo" box checked on a file of 1.6MB and it went down to 261KB.
The "Minimize file size 3.0" does not remove PieceInfo: the "Remove metadata" Action in that Action List does not have the "PieceInfo" box checked (@Loïc: it probably should). You have spotted that correctly and changed that. Well done. However, you cannot change a default Action List, so it got saved in the Local section. Please double check that you were using the correct version of the Action List.
Re: "Remove PieceInfo" action not removing PieceInfo!
Posted: Thu Apr 24, 2025 12:33 pm
by loicaigon
Hello,
We investigated and understood why this doesn't apply to some files like the one you sent me. I will ask that we take this into consideration for an upcoming release.
Loic