Some text is missing when viewing PDF in my mobile application

45 views
Skip to first unread message

Ryan

unread,
Aug 12, 2015, 2:15:19 PM8/12/15
to PDFTron PDFNet SDK
Q:

When I open a certain PDF file some of the text is missing. This only occurs in my app, and when I open the same file in CompleteReader or PDFViewCtrl samples, the text appears fine.

A:

This file contains one or more non-embedded fonts, and the font in question is not going to be available on the OS, but is available with the PDFNet resource file.

You need to load the pdfnet resource file that contains the 14 standard PDF fonts.

The following iOS/Objective-C code should help.

[PTPDFNet Initialize:@""];
NSString* resourcePath = [[NSBundle mainBundle] pathForResource:@"pdfnet" ofType:@"res"];
[PTPDFNet SetResourcesPath:resourcePath];

See this for more info
http://blog.pdftron.com/2013/07/19/getting-started-on-ios/

Reply all
Reply to author
Forward
0 new messages