Guide V4

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 13

DownloadGuide V4
Open PDF In BrowserView PDF
PSPDFKit

P L AYG R O U N D

an·no·ta·tion
/ˌanəˈtāSH(ə)n/

noun
noun: annotation; plural noun: annotations
a note of explanation or comment added to a text or diagram.
→ “marginal annotations”
synonyms: note, notation, comment, gloss, footnote;
commentary, explanation, interpretation
the action of annotating a text or diagram.
→ “annotation of prescribed texts”

From Wikipedia:
An annotation is metadata (e.g. a comment, explanation, presentational markup) attached to text, image, or other data. Often annotations refer to a specific part of the original data.
→ read more

Try Some Annotation Drawing Tools
Free Text

Callouts

SIGN HERE

form
/fôrm/

noun
noun: form; plural noun: forms
a printed document with blank spaces for information to be inserted.
→ “an application form”
synonyms: questionnaire, document, coupon, paper, sheet
→ “you have to fill in a form”

From Wikipedia:
A form is a document with spaces (also named fields or placeholders) in which to write or select, for a
series of documents with similar contents. The documents usually have the printed parts in common,
possibly except for a serial number.
→ read more

PDF Forms
Where did you find this form?

First Name

Last Name

Do you like forms?
Yes!

No!

Which form element do you like most?
Checkboxes!

Text Fields

Radio Buttons

Signature Fields

Sign here, please:

Additional Annotation Styles
Add some text!

PSPDFKit

version 4

Quickstart Guide

Introduction
PSPDFKit is the leading framework for displaying and annotating PDFs in iOS apps.

Time To Market
PSPDFKit supports blazingly fast PDF viewing, adding annotations, and filling out forms. Our battle-tested code is trusted by Box, Dropbox, Evernote, and hundreds of other companies. Benefit from a solid,
tested codebase and incorporate all those advanced features into your own application. It’ll save you at
least one year in comparison with in-house development.

Easy Integration
Almost every aspect of PSPDFKit is customizable and designed from the ground up to offer maximum
flexibility. The developer-friendly API exposes a lot of features that’ll cover just about every use case you
can think of. Focus on the unique parts of your product and build on a well-documented codebase that
is heavily field tested and “just works”.

Features
•

Viewing and navigating PDFs

•

Full text search

•

Annotating PDFs

•

PDF Forms
■■ AcroForms
■■ Combo Box / List Box
■■ Form Toolbar

•

Embedded Videos

•

Share your PDFs via Email

•

Encryption and Security

•

... and many more!

FIG. 1: Integrating the binary distribution of PSPDFKit with your project

Getting Started - Integration
PSPDFKit is designed for Xcode 6.1+ (SDK 8) and fully supports iOS 8 and iOS 7.

Binary
Simply drag the PSPDFKit.embeddedframework folder from the PSPDFKit distribution into your Xcode
project and enable the PSPDFKit.xcconfig as seen in FIG. 1 and you’re done.
If you prefer you can instead add the required frameworks manually.
If you have custom values set in your project settings “Other Linker Flags”, you need to clear them or
merge the entries with the contents of PSPDFKit.xcconfig.

CocoaPods
PSPDFKit is available via CocoaPods. Just add the ‘PSPDFKit’ pod and you’re good to go.

Getting Started - Hello PDF!

Objective C

A simple example for using PSPDFKit, first in Objective C:

#import 
// Create the PSPDFDocument.
// This is the container for your PDF file. It can also manage multiple files.
NSURL *documentURL = [NSBundle.mainBundle.resourceURL
URLByAppendingPathComponent:@"Document.pdf"];
PSPDFDocument *document = [PSPDFDocument documentWithURL:documentURL];
// Create the PDF view controller.
// The configuration object is optional and allows further customization.
PSPDFViewController *pdfController = [[PSPDFViewController alloc] initWithDocument:document
configuration:[PSPDFConfiguration configurationWithBuilder:^(PSPDFConfigurationBuilder
*builder) {
builder.thumbnailBarMode = PSPDFThumbnailBarModeScrollable;
builder.pageLabelEnabled = NO;
}]];
// Present the PDF view controller within an UINavigationController to enable the toolbar.
UINavigationController *navController = [[UINavigationController alloc]
initWithRootViewController:pdfController];
[self presentViewController:navController animated:YES completion:NULL];

Getting Started - Hello PDF! Hello Swift!

Swift

The same example as before, this time with Swift:

import PSPDFKit
var fileURL = NSBundle.mainBundle().bundleURL.URLByAppendingPathComponent("Document.
pdf")
var document = PSPDFDocument(URL: fileURL)
var configuration = PSPDFConfiguration { (builder) -> Void in
builder.thumbnailBarMode = .Scrollable;
}
var pdfController = PDFViewController(document: document, configuration:
configuration)
self.presentViewController( UINavigationController( rootViewController:
pdfController), animated: true, completion: nil)

This and many more examples can be found in
the Examples folder in the PSPDFKit distribution.
Note that while PSPDFDocument accepts a
NSURL, this example only supports local PDF
documents. The PSPDFKiosk example
project (part of the PSPDFCatalog example
project) shows how to download PDFs ondemand.

Getting Started - Next Steps
PSPDFCatalog
A searchable collection of examples of how to use PSPDFKit can be found in the PSPDFCatalog
example project. For instance, there are samples for:
Document Viewing: “Example Applications”
•

PSPDFViewControllerPlayground: basic example using one PDF

•

KioskGridExample: using a grid of multiple PDFs to select one;
the PDFs are stored in the SAMPLE-Directory of PSPDFCatalog

•

Settings for a magazine: example using page curl

•

Settings for a scientific paper: scrolling enabled

Multimedia Examples
•

Embed YouTube Video into the page

•

Image Gallery: multiple images are combined to an Image Gallery

•

Simple Audio Annotation: Add an mp3 to the PDF

Annotation
•

Programmatically create annotations

•

Sign all pages

•

XFDF Writing

Forms and Digital Signatures
Toolbar Customization
View Customization
•

Night mode: Inverts colors for PDF rendering

•

Screen Reader: sample-interface for a screen-reader application

Text Extraction / PDF Creation
•

Full-Text Search: perform full-text search across all sample PDFs

Passwords / Security
... and many more examples - all available in PSPDFCatalog!

PSPDFKit - Need more help?
FAQ
support.pspdfkit.com

PSPDFKit API
http://pspdfkit.com/api

PSPDFKit - New Features
For each new version of PSPDFKit, the new features are presented in the following blog:
http://pspdfkit.com/blog
The changelog can be found here: http://pspdfkit.com/changelog

Further Questions?
Write us at support.pspdfkit.com for technical questions or
sales@pspdfkit.com for anything related to licensing and sales.

PSPDFKit GmbH
Limited Liability Company
Alserbachstrasse 26/70
1090 Vienna, Austria
support.pspdfkit.com
Managing Director: Peter Steinberger
Line of Business: Software Development
Registration Number: FN 400890 w
VAT: ATU68169117
Place of Jurisdiction: Commercial Court of Vienna
Trade Regulation Act: www.ris.bka.gv.at



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.7
Linearized                      : No
Create Date                     : 2014:11:03 16:50:14+01:00
Creator                         : Adobe InDesign CC 2014 (Macintosh)
Modify Date                     : 2015:03:21 15:48:46+01:00
Has XFA                         : No
Tagged PDF                      : Yes
XMP Toolkit                     : Adobe XMP Core 5.4-c005 78.147326, 2012/08/23-13:03:03
Metadata Date                   : 2015:03:21 15:48:46+01:00
Creator Tool                    : Adobe InDesign CC 2014 (Macintosh)
Instance ID                     : uuid:be48edf0-b3b9-8f43-8a82-64368ac90aa1
Original Document ID            : xmp.did:88dee535-8c8b-4870-a671-e819ab5bebb8
Document ID                     : xmp.id:45d37785-e311-47d3-9561-635bc6cfe4c2
Rendition Class                 : proof:pdf
Derived From Instance ID        : xmp.iid:6ac61891-0648-4b9f-a867-b9e37293f938
Derived From Document ID        : xmp.did:6526f433-1f5e-4e12-a954-da5688638966
Derived From Original Document ID: xmp.did:88dee535-8c8b-4870-a671-e819ab5bebb8
Derived From Rendition Class    : default
History Action                  : converted
History Parameters              : from application/x-indesign to application/pdf
History Software Agent          : Adobe InDesign CC 2014 (Macintosh)
History Changed                 : /
History When                    : 2014:11:03 16:50:14+01:00
Format                          : application/pdf
Producer                        : Adobe PDF Library 11.0
Trapped                         : False
Page Count                      : 13
EXIF Metadata provided by EXIF.tools

Navigation menu