Viewing PDFs with missing Asian fonts on Android / iOS

Q:

Some of the PDF documents with missing CJKV (Chinese, Japanese, Korean, Vietnamese) fonts cannot be displayed correctly on Android / iOS
This happens on Japanese PDFs that do not embed the corresponding font (e.g. MS Gothic).

Can PDFTron SDK support to display of such files on mobile devices?

A:

PDFNet comes with base 14 fonts (i.e. standard PDF fonts), however these do not include full Unicode set (which could be prohibitive in terms of the file size etc).

If your device or application includes extra fonts you can let PDFNet know using PDFNet.AddFontSubst(…) method.

PDFNet.addFontSubst(“StoneSans-Semibold”, " /Fonts/comic.ttf");

PDFNet.addFontSubst(PDFNet.e_Identity, “arialuni.ttf”);

PDFNet.addFontSubst(PDFNet.e_Japan1, " Acrobat/Resource/CIDFont/KozMinProVI-Regular.otf");

PDFNet.addFontSubst(PDFNet.e_Japan2, “myfonts/KozMinProVI-Regular.otf”);

PDFNet.addFontSubst(PDFNet.e_Korea1, “AdobeMyungjoStd-Medium.otf”);

PDFNet.addFontSubst(PDFNet.e_CNS1, “AdobeSongStd-Light.otf”);

PDFNet.addFontSubst(PDFNet.e_GB1, “AdobeMingStd-Light.otf”);

For example, see comments in PDFDraw sample:

http://www.pdftron.com/pdfnet/samplecode.html#PDFDraw

The following font mapping (using standard Windows fonts) works well on many Japanese documents: