RadaeePDF.com :: Topic: How open a PDF File with Objective-C (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about iOS development and PDF

TOPIC: How open a PDF File with Objective-C

How open a PDF File with Objective-C 1 month 1 week ago #13222

  • Verducci
  • Verducci's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
I'm going to buy your pdf library for ios, I've downloaded your sample but it's not at all clear how I can use the library.
Your docs and samples is virtually not existent, so these are my questions:

* in iospdfviewer3.8.2.zip, where is the effective ios library?
* How can I simply open a pdf file and show it in a View?
* What effectively needs to me in that code you provided to open a PDF?
Thank you.
The administrator has disabled public write access.

How open a PDF File with Objective-C 1 month 1 week ago #13223

  • emanuele
  • emanuele's Avatar
  • OFFLINE
  • Moderator
  • Posts: 462
  • Thank you received: 52
  • Karma: 15
Hi,

you can find the effective iOS library in PDFLib folder, where you can find PDFObjc class, PDFIOS.h header and libRDPDFLib.a (that is the effective core library).
To open a pdf file you can take a look at RDPDFViewController, and focus on PDFOpen method, that initializes the m_doc var (PDFDoc instance, that contains the pdf data) and the m_view var (PDFView instance), that is the effective view that shows the pdf file.
m_doc and m_view variables should be enough to simply show a pdf file.
RDPDFViewController implements also PDFViewDelegate methods, used to manage some actions of PDFView instance like single tap and annotation management.
To show a pdf file without Radaee watermark you need a valid license, that you can activate with APP_Init method of PDFVGlobal class.
The demo project call APP_Init method in RDAppDelegate class and uses a demo premium license.
The administrator has disabled public write access.
Powered by Kunena Forum