Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read a pdf on ipad/iphone?

What is the way to read PDF content on an iPad or iPhone?

like image 217
TechBee Avatar asked Dec 23 '22 01:12

TechBee


2 Answers

You can use Quartz to parse a PDF document and extract the metadata. Parsing a PDF

like image 197
davbryn Avatar answered Feb 14 '23 02:02

davbryn


There is another simple way to read a PDF in iPhone/iPad:

  1. Take one UIwebView (name:pdfView).

  2. Give Iboutlet connection to it & Delegate it to FilesOwner

  3. In Viewdidload/VIewWillApper/VIewDidApper

    [self.pdfView loadRequest:[NSURLRequest requestWithURL:
    [NSURL fileURLWithPath:[[NSBundle mainBundle] 
    pathForResource:@"ObjC" ofType:@"pdf"]]]];
    
  4. ObjC.pdf should be in resource folder

like image 31
Archana Chaurasia Avatar answered Feb 14 '23 02:02

Archana Chaurasia