Print Page | Close Window

SIgnature text don't appear on iOS PDF Kit

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3540
Printed Date: 22 Nov 24 at 6:39PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: SIgnature text don't appear on iOS PDF Kit
Posted By: robin.ha
Subject: SIgnature text don't appear on iOS PDF Kit
Date 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




Replies:
Posted By: robin.ha
Date 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;

}



Posted By: Ingo
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk