Search code examples
iphonepdfuiimageviewuiimageiphone-sdk-3.2

Load PDF into UIImage or UIImageView?


I'm trying to load a PDF file stored in Resources into a UIImage/UIImageView object in the iPhone SDK. Is this at all possible without converting the PDF to an image? If not, what are the member functions for converting a PDF into a PNG? I would really prefer to preserve the PDF if at all pssoible.


Solution

  • PDFs can be loaded by UIWebView. If you need more control you can use Quartz 2D to render PDFs: Quartz2D