Closed rbrito closed 1 year ago
Thank you for reporting this! I can reproduce the issue, I get the same error message.
This is a bug in pdfsizeopt. The /Metadata 15 0 R
entry triggers it within 16 obj << ... >>
. It should be ignored by Type1CParser.
Fixed in 6d16c5bae46b58d4165fbf43e5417cee72ae5ff4. The fix changes which entries are passed to Type1CParser. Since only the stream was relevant, only /Length
, /Filter
and /DecodeParms
are passed now; /Metadata
isn't.
Dear @pts,
There is a book that was just recently released from Springer as an open book and trying to run pdfsizeopt on it (your version, no modifications, your supported ghostscript version etc.), there are problems when optimizing the fonts:
I'm attaching the files in question here (the PS files had to be compressed or github wouldn't allow me to attach them).
2020Book.pdf psotmp.3359.conv.parse.tmp.ps.gz psotmp.3359.conv.parsedata.tmp.ps.gz
I can work around the problem by telling pdfsizeopt to not optimize the fonts (but that, of course, is not a real fix):
It would be great if you could help with this situation.
Thanks,
Rogério Brito.