Am 09.12.2015 um 22:01 schrieb Christian Schmitt:
Hello,

thanks for your help I already looked a little bit deeper, after I tried to use PDResources which could add font’s but if I add the font in every page the file gets too big and if I only add the font at the first page it won’t validate correctly.

If it is the same font, you can add the same COSStream object, i.e. you don't have to create a new one.

About the size - that's why subsets are used. But for that, you would have to analyse each content stream to see which glyphs are used.

It's probably cheaper to buy a product like callas pdfaPilot.
https://secure.callassoftware.com/buy_per_web/cls_formBPW_de.php?product=610

Tilman

After that I looked at COS but I’m not that far yet, still thanks after looking inside the source of pdfbox I will definitely find out more things.


Am 09.12.2015 um 18:31 schrieb Tilman Hausherr <[email protected] <mailto:[email protected]>>:

Am 09.12.2015 um 15:19 schrieb Christian Schmitt:
I know how to extract them, however adding them seems to be the „bigger“ problem, since mostly I can’t just embed them with a command. The problem relies on where I should put the font file, currently I have a folder with all the necessary fonts and could create font objects with that and also I know which fonts are missing inside my pdf, but now the problem relies on attach the file i.e. embed the font.

You need to understand the COS data types (COSDictionary, COSStream, COSArray, COSBase etc), then insert a COSStream (that has your font file) at the correct place in the font descriptor (type COSDictionary) with the correct key. The key is FontFile1, FontFile2 or FontFile3 depending on the type of font.

Tilman



Beste Grüße / Best Regards


<Mail-Anhang.png>



Christian Schmitt
Entwickler / Developer



Am 08.12.2015 um 18:49 schrieb Tilman Hausherr <[email protected] <mailto:[email protected]>>:

PDFDebugger




Reply via email to