Hello guys!
Mayb do you know a good open-source pdf renderer for objective-c? :)
Hello guys!
Mayb do you know a good open-source pdf renderer for objective-c? :)
Have a look at GhostScript Not sure if this can be used on the iphone though and you may need to check the licensing for redistribution.
Core Graphics provides a lot of native PDF-rendering functionality. If you just want to provide a view that lets the user pan and zoom around a PDF, use a UIWebView
; all you have to do is give it the URL to a PDF inside your bundle, as in
NSString *resourcePath = [[NSBundle mainBundle] pathForResource:@"my_file" ofType:@"pdf"];
NSString *url = [NSURL URLWithString:resourcePath];
[webView loadRequest:[NSURLRequest requestWithURL:url]];
If you're looking to draw into a PDF, take a look at the section on PDF Document Creation, Viewing, and Transforming in the Quartz 2D Guide.