With a couple of lines of code you can create a PDF view controller. This framework is very fast and easy to use.
Sample usage
// Add RoboReader files to your project; import "RoboViewController.h"
// Create a RoboDocument instance for the PDF file you want to display.
NSString *path = [[NSBundle mainBundle] PathForResource:@"YourPdf" withExtension:@"pdf"];
RoboDocument *document = [[RoboDocument alloc] initWithFilePath:url password:@"YourPdfPassword_or_nil"]
//Create a RoboViewController instance and present it as a child view controller.
RoboViewController *r = [[RoboViewController alloc] initWithDocument:document];
Installation via CocoaPods
Add this line to your Podfile
pod 'RoboReaderPDF'
Credits
RoboReader was created by Mikhail Viceman in the development of [Digital Edition platform] (http://digitaled.ru) [Copyright (c) REDMADROBOT] (http://redmadrobot.ru).
Creators
License
RoboReader is available under the MIT license. See the LICENSE file for more info.
Information about this fork
I (Suleyman Melikoglu) have added some functionality, notifications and public API changes that I believe doesn't match with the design goals of the original project.
Images
I moved all graphics to NewsletterDefault.bundle/reader/. So you'll see no graphics unless create this bundle and move graphics there.
I regret that I did this not optional. It is a next step for me to fix it.
Notifications
See RoboConstants.h for the list of notifications.
kRoboDidDisplayPageNotification - Sent when the page is displayed.
