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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > General Discussion
  New Posts New Posts RSS Feed - SIgnature text don't appear on iOS PDF Kit
  FAQ FAQ  Forum Search   Register Register  Login Login

SIgnature text don't appear on iOS PDF Kit

 Post Reply Post Reply
Author
Message
robin.ha View Drop Down
Beginner
Beginner
Avatar

Joined: 09 Feb 17
Location: Singapore
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote robin.ha Quote  Post ReplyReply Direct Link To This Post Topic: SIgnature text don't appear on iOS PDF Kit
    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

Back to Top
robin.ha View Drop Down
Beginner
Beginner
Avatar

Joined: 09 Feb 17
Location: Singapore
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote robin.ha Quote  Post ReplyReply Direct Link To This Post Posted: 23 Jan 18 at 3:48AM
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;

}

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 2661
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 23 Jan 18 at 7:11PM
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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store