You can use CoreGraphics to draw pdf files on iOS with UIGraphicsBeginPDFContextToFile, just as you can draw images with UIGraphicsBeginImageContextWithOptions. When using pdf, you can add UIImageto pdf using the method drawInRect:
UIImage * image = [UIImage imageNamed:@"myImage"];
[image drawInRect:CGRectMake(50, 50, 100, 200)];
You should check Apple's Creating PDF Content Guide .
source
share