Some test text!

keyboard_arrow_down

Get started

Download PDFTron SDKIntegrate with CocoaPodsIntegrate manuallyRun samplesAdd license keyQuick start - view a documentUpdate to latest version
keyboard_arrow_down

FAQ

System requirementsDocument lockingDocument savingDynamic vs. static frameworkReduce the framework size
keyboard_arrow_down

Document viewer

Show a documentShow a document with tabsOpen from online URLFile coordination
keyboard_arrow_down

Tools UI Library

keyboard_arrow_down

Document viewer components

keyboard_arrow_down

Conversion

keyboard_arrow_down

Parsing and extraction

keyboard_arrow_down

Digital signatures

Overview
keyboard_arrow_down

Search

keyboard_arrow_down

Advanced customization

Add a UIView to a PDF pageCreate a new toolPage coloring modePage fit modePage layout modeScrolling direction
keyboard_arrow_down

Advanced topics

Print
keyboard_arrow_down

Other frameworks

keyboard_arrow_down

Reference

keyboard_arrow_down

PDF Processing API

File coordinationkeyboard_arrow_down

File coordination

File coordination is a system of ensuring that no two processes (or threads within a single process) can change a commonly accessed file in a way the other does not expect, which could result in unexpected behavior and data loss.

iOS provides the UIDocument abstract base class which enables a subclass to be notified of any changes to the file or its state, which in turn allows an adopting app the ability to coordinate its actions with others.

PDFTron provides PTCoordinatedDocument, a concrete subclass of UIDocument, to coordinate reading and writing of PDF files (both locally and cloud stored) with other apps. PTCoordinatedDocument is compatible with both the DocumentViewer and TabbedViewer, and is used by our sample project Complete Reader. It is recommended to use a PTCoordinatedDocument to open a document whenever the document could be written to by another app.

Below is sample code showing how to open a coordinated document in a new PTDocumentViewController.