How open a PDF File with Objective-C - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: How open a PDF File with Objective-C

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

  • Verducci
  • Verducci's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 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.

Please Log in or Create an account to join the conversation.

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

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 489
  • Karma: 15
  • Thank you received: 53
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.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum