PDFTouch SDK for iOS

PDFTouch SDK for iOS

A fast and customizable Objective-C framework for reading and rendering PDF files in iPhone and iPad apps. Build PDF reader apps or use it as a PDF viewer in your existing apps.

  • Language: Objective-C
    Platform(s): iPad
  • Released: Apr 12, 2012
    Last Update: Jul 2, 2014

Powerful Objective-C PDF Rendering for iPhone and iPad apps

Getting PDF rendering right on the iOS platform is difficult and time consuming. Memory constraints and slow CPU conditions make it very hard to achieve fast PDF rendering. The PDF Touch SDK is the result of months of development time and years of optimization, providing you with a mature and performant solution for adding PDF capabilities to your iPhone or iPad app.

PDFTouch SDK provides a robust framework that is easy to use and customize to your needs. With just a couple of lines of code you can create a PDF view controller and display it in your app. The user interface is very similar to the iBooks app and also features a grid display for page thumbnails. For more details please refer to the Features section below.

Newsstand solution for magazine publishers

Check out the iPad Book / Newsstand PDF starter Kit if you need a complete newsstand solution that works with PDFTouch SDK out of the box.

Download the FREE Trial now and see for yourself how simple it is to add PDF rendering functionality to your app.

PDFTouch SDK for iOS

Hide

Features & Package

Features

  • Fast multithreaded PDF rendering using Grand Central Dispatch.
  • Highly optimized caching algorithm.
  • Offline pre-rendering of pdf pages at different sizes integrated with the caching system.
  • Thumbnail grid display.
  • Pinch to zoom.
  • Double tap to zoom in and out.
  • Text search with highlighting.
  • Outline view (TOC).
  • Bookmarks.
  • Double page mode with left or right lead.
  • Page curl animations.
  • Retina Display ready.
  • Optimized for both the iPhone and iPad.
  • Includes a demo Xcode project demonstrating the common usage of the SDK's features.

Annotations Support

  • Page links
  • Web links
  • Mail links
  • Video
  • Audio
  • Maps
  • Web pages
  • Custom overlays

Package

  • Complete source code of PDFTouch SDK.
  • Demo Xcode project.
  • Documentation with integration instructions.
  • Technical appledoc style documentation.
Hide

Documentation

Code Documentation

All public classes of PDFTouch SDK are documented using appledoc. See the documentation for further information.

Requirements

The source code of PDFTouch SDK is developed on Xcode 5.0 with iOS Base SDK 7.0. PDFTouch SDK works on a deployment target of iOS 5 or greater on armv7 and armv7s and can be used in ARC and non-ARC projects.

Integration

PDFTouch SDK can be integrated in two ways into your app.

1. Add the binary PDFTouch.framework

  • Drag PDFTouch.framework into the "Frameworks" group of your Xcode project.
  • Add the required libraries as shown in the screenshot below.
  • Add PDFTouch.bundle to your projects resources as shown in the screenshot below.
  • Open the Build Settings tab and apply the following changes:
    • Other Linker Flags -> -all_load -ObjC
  • Add the following import statement everywhere you want to use PDFTouch SDK: #import <PDFTouch/PDFTouch.h> Binary

2. Add PDFTouch.xcodeproj as a dependency

  • Copy the whole PDFTouch folder into your project's root folder.
  • Drag PDFTouch.xcodeproj into the "Frameworks" group of your Xcode project.
  • Add PDFTouch as a target dependency.
  • Add the required libraries as shown in the screenshot below.
  • Add PDFTouch.bundle to your projects resources as shown in the screenshot below.
  • Open the Build Settings tab and apply the following changes:
    • Other Linker Flags -> -all_load -ObjC
    • Add the following paths to "Header Search Paths":
      • "PDFTouch/**"
  • Add the following import statement everywhere you want to use PDFTouch SDK: #import "PDFTouch.h" Source

Sample Usage

1. Create a YLDocument instance for the PDF file you want to display.

NSString *path = [[NSBundle mainBundle] PathForResource:@"Developers" withExtension:@"pdf"];
YLDocument *document = [[[YLDocument alloc] initWithFilePath:url] autorelease];

2. Create a YLPDFViewController instance and present it as a modal or child view controller.

YLPDFViewController *v = [[YLPDFViewController alloc] initWithDocument:document];
[v setDocumentMode:YLDocumentModeDouble];
[v setDocumentLead:YLDocumentLeadRight];
[v setPageCurlEnabled:YES];
[v setModalPresentationStyle:UIModalPresentationFullScreen];
[v setModalTransitionStyle:UIModalTransitionStyleCoverVertical];
[self.navigationController presentModalViewController:v animated:YES];
[v release];
You need to log-in or create an account
  • Create an account
  • Log-in
Please use your real name.
Activation link will be sent to this address.
Minimum 8 characters
Enter your password again

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

X

Save your watchlist

Fill your details below to receive project updates from your watch list - including new versions, price changes and discounts.

I agree to the terms of use and privacy policy.

3 licenses, starting from From » $749.99 14 day money-back guarantee View Licenses
or Get a quote

for customization or integration services

  • Excellent, well written component that saved us a lot of time. Also very active & responsive support.
    CF Christian Fruehwirth
    1 year ago, 0 comments
    Was this helpful?
    Flag 4 of 4 people found this review helpful
  • Awesome Product and very good support. Instantly getting help with all my little issues since iam not a professional coder.
    AP Andre Prior
    1 year ago, 0 comments
    Was this helpful?
    Flag 3 of 3 people found this review helpful
  • The component is very stable for being a fairly new release. I tried all the other open source pdf viewers and they all seemed to be filled with show stopping bugs. To integrate this pdf viewer it was a matter of 10 lines and a few Apple frameworks.
    BW Bryan Williams
    2 years ago, 0 comments
    Was this helpful?
    Flag 3 of 3 people found this review helpful
Post a comment

Or enter your name and Email
  • EF Enrico Franzelli 1 week ago
    Hello, it's possible to show two different PDF in the same view? I accomplished it by putting two views of YLPDFViewController as child of my UIViewController's view, but it crashes every time I open two documents with 15+ pages and scrolling one of them beyond last page. Also, pages are out-of-line during scroll. Is there another way to do it? Thank you
    • Kemal Taskin Developer 1 week ago
      Hi Enrico, I've never tested displaying two PDF files in the same view so I can't say that it's supported. Can you send me a sample project so that I can have a look where it crashes? You can reach me at "kemal dot taskin at gmail dot com".
  • J joy 1 month ago
    How can i pop the YLDocumentViewController??
    • Kemal Taskin Developer 1 month ago
      Hi Joy, What do you mean with popping YLPDFViewController?
  • VK Victor Kotov 1 month ago
    Hello, could you please clarify few questions: - is it possible to present bookmarks list as a popover (like TOC) and have Bookmarks button not only in grid mode but also in main (PDF reading) mode? - I tried to view a PDF-file with annotations (added via Mac OS X Preview application to in-demo Developers.pdf), but the Demo doesn't show any annotation at all - are they not supported? - that request http://www.binpress.com/feature/make-it-easier-to-customize-the-buttons-in-the-toolbar/3720 still in development? Thanks beforehand.
    • Kemal Taskin Developer 1 month ago
      Hi Victor, The bookmarks related UI can be changed of course but only by modifying the code. There's been a request in the past to make the customization of buttons in the toolbar easier. We added properties to show/hide the toc/search/bookmark buttons but the right side of the toolbar is more difficult to customize. The only way to customize that part is by modifying the code. Regarding annotations, only link annotations are supported. PDFTouch SDK uses custom scheme types to support various multimedia annotations like video, audio, maps and web pages but these are basically all link annotations. Other types of annotations are not supported.
    • VK Victor Kotov 1 month ago
      Ok, got it. Thanks for the quick response!