There is no method that allows this directly through the SDK, like on a Mac, but you can take a look at BNHtmlPdfKit , which allows you to save the contents of URLs, web representations, and html strings as PDF files.
For example, as follows:
self.htmlPdfKit = [BNHtmlPdfKit saveUrlAsPdf:[NSURL URLWithString:@"http://itsbrent.net"] toFile:@"...itsbrent.pdf" pageSize:BNPageSizeA6 success:^(NSString *pdfFileName) { NSLog(@"Done"); } failure:^(NSError *err) { NSLog(@"Failure"); }];
It uses a custom UIPrintPageRenderer that overrides paperRect and printableRect , causing the UIPrintFormatter return pageCount, as well as render the document.
Joshua
source share