I'm generating a PDF in an iPad app from a nib. The app uses custom fonts which display correctly in the nib in the app. When I view this saved PDF on my Mac, it also displays in the correct font. When I display it in-app with QLPreviewController
, the fonts appear to have been replaced. The datasource implements previewController:previewItemAtIndex:
which returns the NSURL
of the PDF which is in the app's document folder.
Is there anyway to correct this? Do I need to embed the font or provide it to QLPreviewController and, if so, how?