When are fonts and CMaps needed as resources?
Estimated Reading Time: 1 MinutesFonts and CMaps are needed when:
- Creating PDF documents and adding text strings. In this case, you’ll need the resources to embed and subset fonts.
- Rendering a document page if any font or CMap needed for that document is not embedded in the document. Fonts are often embedded in the documents, but CMaps are also necessary for rendering. Missing fonts and CMaps are a frequent cause of failure to render a page.
- Using the PD Edit layer to parse documents (reading content streams). In this case, the CMap files are used to translate content into useful data.
- Using the WordFinder; again CMap files are used in handling translation of the text streams.
We recommend that you deploy the entire \Resource folder, including all of the subfolders, with your application. If you need to reduce the total size of the files you deliver, you can remove the CJKV fonts in the \Fonts folder, if you know that you will not be processing documents with CJKV fonts, or if all the CJKV fonts are embedded in the PDF document. The AdobeHeiti, AdobeMing, AdobeMyung, KozGo and KozMin are the largest font files provided in the \Resources folder. All of the other \Resource contents are required.
If you are not sure if you will need the CJKV font files, try installing your package without them, but have a font download package available for customers that might need them.