Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
SIgnature text don't appear on iOS PDF Kit |
Post Reply |
Author | |
robin.ha
Beginner Joined: 09 Feb 17 Location: Singapore Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 23 Jan 18 at 3:45AM |
I have create a digitally signed pdf using debenu iOS SDK. It views great on adobe pdf reader but not on iOS pdfkit.
The error pdfkit given is "font 'Helv' not found in document." Attached are some of the screen shots On PDF reader on iOS PDFKit This is the Signed PDF File |
|
robin.ha
Beginner Joined: 09 Feb 17 Location: Singapore Status: Offline Points: 3 |
Post Options
Thanks(0)
|
if case anyone interested, you can download the PDF Here
https://drive.google.com/open?id=12UWJmisV6Bk2Sl7SJ07yCReU_ePCyEQ9 code snippets on iOS to view the PDF using PDFKit
< ="text/">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #ffffff; background-color: #282b35}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #ffffff; background-color: #282b35; min-height: 13.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #00afca; background-color: #282b35}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #4dbf56; background-color: #282b35}
span.s1 {color: #c2349b}
span.s2 {color: #00afca}
span.s3 {color: #ffffff}
span.s4 {color: #8b84cf}
- (void)viewPDF:(NSString*)path{
NSURL *pdfURL = [[NSURL alloc]initFileURLWithPath:path]; CGPDFDocumentRef document = CGPDFDocumentCreateWithURL((CFURLRef)pdfURL);
CGPDFPageRef pdfPageRef = CGPDFDocumentGetPage(document, 1); float width = CGPDFPageGetBoxRect(pdfPageRef, kCGPDFMediaBox).size.width; float height = CGPDFPageGetBoxRect(pdfPageRef, kCGPDFMediaBox).size.height; CGRect screenRect = [[UIScreen mainScreen]bounds]; PDFView *pdfWeb = [[PDFView alloc] init]; pdfWeb.frame = CGRectMake(0, self.navigationController.navigationBar.frame.size.height, screenRect.size.width, height*screenRect.size.width/width); PDFDocument *pdfDocument = [[PDFDocument alloc] initWithURL: pdfURL]; [self.view addSubview:pdfWeb]; pdfWeb.document = pdfDocument; } |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
i would ask the authors of "iOS pdfkit"?
You did it with the Debenu sdk and for the adobe reader it's okay... Again: I would ask the authors of the sdk which makes problems ;-) Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store