-
1. Re: How to embed all fonts
lrosenth Jul 17, 2012 12:13 PM (in response to joeln3)Easiest way is to simply call on Preflight or the PDFOptimizer to do the work for you.
-
2. Re: How to embed all fonts
joeln3 Jul 17, 2012 10:31 PM (in response to lrosenth)Hello Leonard,
Note that I use the Acrobat SDK (c++) and I have no access to the GUI.
Regards,
-
3. Re: How to embed all fonts
lrosenth Jul 18, 2012 3:02 AM (in response to joeln3)You use the SDK or you use the PDFLibrary?
With the SDK and Acrobat, you have access to both Preflight and Optimizer.
With only PDFL, then yes, neither of those options will work. In that case, you will need to “do it the hard way”. That involves iterating over all of the text in all of the content streams in the PDF and using the PDEdit APIs to embed them. I believe there is (or at least there used to be) a sample of this in the SDK.
-
4. Re: How to embed all fonts
joeln3 Jul 18, 2012 4:04 AM (in response to joeln3)Actually I found the method to list all PDFont in a document. So using this method I just have to check if the font is embedded and if not then I embed it.
Regards,
-
5. Re: How to embed all fonts
lrosenth Jul 18, 2012 4:36 AM (in response to joeln3)True.
EXCEPT that (IIRC) the only APIs that the SDK provides for embedding fonts operate at the time of updating the PDEdit content stream.
-
6. Re: How to embed all fonts
joeln3 Jul 18, 2012 4:39 AM (in response to lrosenth)Indeed.
I have to convert the PDFont to PDEFont and then I use the PDEmbedSysFontForPDEFont() method.



