mpdf / mpdf

PHP library generating PDF files from UTF-8 encoded HTML
https://mpdf.github.io
GNU General Public License v2.0
4.37k stars 1.06k forks source link

font subsetting in PDF/A PDF/X #1315

Open danielrona opened 3 years ago

danielrona commented 3 years ago

Is there a specifc reason for this?

https://github.com/mpdf/mpdf/blob/822c72c1e5811827f0010f556a7c613f7904dd84/src/Writer/FontWriter.php#L65-L67

If not I would like to submit a pull request that introduces a config variable for having Font subsets for PDF/A or PDF/X files

PDF/A - Page 6

PDF/A also places higher demands on
the information it contains. All required
fonts (or at least all glyphs for the specific
characters used) must be embedded within
the PDF.

PDF/X - Page 6

Fonts must be embedded (either fully
embedded, or as an embedded subset
in which all characters used in the text
are present).
finwe commented 3 years ago

Don't know. Thanks for the links, feel free to prepare the PR.

NicolasCARPi commented 11 months ago

Hello,

This feature would be interesting for us. Would simply deleting this condition be enough? I don't think there is a need for another setting.

@finwe can you ask your past self from 5 years ago what he had in mind writing this if ? ;)

finwe commented 11 months ago

I still don't know. I am almost completely sure that I didn't write this if at all.