Knowledge Base - How to add an image to a pdf? (iOS)

This article shows how to add an image to a pdf (annotation and content):

You can create an instance of PDFDocImage in this way:

NSString *path = @"path_to_image";

PDFDocImage *i = [m_doc newImageJPEG:path];

 

or create a PDFDocImage from CGImageRef

 

// Get PDFDocImage instance from CGImageRef (keeping alpha channel)

PDFDocImage *i = [m_doc newImage:ref :YES];

    

// Add the image

 

[page addAnnotBitmap:i :&rect];

 

Applies To

RadaeePDF SDK for iOS

Related Articles

How to add an image to a pdf? (Android)

Details

Created : 2015-08-03 15:23:23, Last Modified : 2018-02-07 11:15:17