1

i asked this previously but I think people got the wrong idea: I'm not trying to generate a PDF from scratch; I'm trying to load and draw onto the screen using Quartz 2d an existing PDF file : any guidance / examples would be very much appreciated

This was my previous post : How to open and View PDF using Quartz 2d

Community
  • 1
  • 1
Taskinul Haque
  • 724
  • 2
  • 15
  • 36

3 Answers3

3

https://www.cocoacontrols.com/controls/pdf-reader-core

Use this control. It does a lot of the heavy lifting for you.

William Falcon
  • 9,660
  • 13
  • 63
  • 109
2

If you're happy with rendering the PDF into an UIImage and displaying that (a good solution if you don't provide zooming functionality, or if you are happy to constrain zooming to a limited extent using the UIImage inside a UIScrollView), then this project is very good and does disk caching for improved performance:

https://github.com/mindbrix/UIImage-PDF

Clafou
  • 14,947
  • 7
  • 55
  • 89
2

Here is a great tutorial how to render PDF using CoreGraphics

Sergey Kuryanov
  • 6,044
  • 28
  • 52