ssimms / pdfapi2

Create, modify, and examine PDF files in Perl
Other
15 stars 21 forks source link

TrueType font subsetting #87

Open sciurius opened 3 months ago

sciurius commented 3 months ago

IIRC, embbedded truetype fonts should be subsetted by default (there is only a -nosubset option).

The attached program produces a PDF that is not (fully?) subsetted. pdffonts reports:

name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
FreeSerif                            CID TrueType      Identity-H       yes no  yes      7  0

The file is 88Kb. When run through ps2pdf the resultant PDF is only 5Kb.

fonts.pl.txt