Péter Szabó

Results 102 comments of Péter Szabó

FYI Specifying `/ReAssignCharacters false /ReEncodeCharacters false` next to `/SubsetFonts false` didn't make a difference, Ghostscript still splits fonts with unencoded glyphs in this case.

With recent advances on *FixFontNameInCff* (e5bd486831572889a4429f7d2aa515fa11cd42e5), generating CFF fonts with more than 256 glyphs is within reach. The plan is the following: 1. Implement *ParseType1CFonts* in pure Python (it only...

FYI pdfsizeopt's Type1CParser doesn't work with Ghostscript 9.25, and it's unlikely that there is a feasible, long-term fix (see bug report https://bugs.ghostscript.com/show_bug.cgi?id=700362 why). Thus replacing it with Type1CParse with a...

Thank you for recommending FontForge as a replacement for Ghostscript. It's probably viable, but it doesn't look like much less work than the other option (i.e. extending the existing Python...

Thank you for suggesting the Python interface of FontForge. It's nice to know what existing font processing software is available. pdfsizeopt uses standard Python modules (e.g. `zlib`) and statically linked...

Thank you for suggesting this feature! It would be nice to have. See my analysis below. The *p1.pdf* file attached to the issue contains a content stream with a large...

pdfsizeopt indeed uses a lot of memory for large PDF files, because it keeps the parsed version of the entire PDF file in memory. It also keeps multiple versions of...

Thank you for bringing up this possible improvement! It would be awesome to pick some low-hanging fruits to make pdfsizeopt (and its dependencies) easier to install and upgrade for its...

It is very unusual for a PDF to have the character `\x0b` (ASCII 11) outside strings and stream data, but it's allowed: according to section 3.1.1 of https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/pdfreference1.7old.pdf, `\x0b` is...

As suggested by @zvezdochiot, it is also my gut feeling that running *cpdf* or *qpdf* as a workaround before *pdfsizeopt* may fix this problem. However, we can't possibly know for...