Read Operations

Operations that let you access documents and pages, manage document security, and work with searching and selections.

Topics

Accessing Document Information

documentURL

The URL for the document.

majorVersion

The major version of the document.

minorVersion

The minor version of the document.

string

A string representing the textual content for the entire document.

- outlineItemForSelection:

Returns the most likely parent PDF outline object for the selection.

outlineRoot

The document’s root outline to a PDF outline object.

documentAttributes

A dictionary of document metadata.

documentRef

The CGPDFDocument associated with the PDFDocument object.

Managing Document Security

isEncrypted

A Boolean value specifying whether the document is encrypted.

isLocked

A Boolean value indicating whether the document is locked.

- unlockWithPassword:

Attempts to unlock an encrypted document.

permissionsStatus

The permissions status of the PDF document.

Permission Properties

Properties that specify what functions are allowed for a PDF document.

Working with Selections and Searches

- selectionFromPage:atCharacterIndex:toPage:atCharacterIndex:

Returns the specified selection based on starting and ending character indexes.

- selectionFromPage:atPoint:toPage:atPoint:

Returns the specified selection based on starting and ending points.

selectionForEntireDocument

Returns a selection representing the textual content of the entire document.

Search Operations

Find and search in PDFs.

Working with Pages

pageCount

The number of pages in the document.

- pageAtIndex:

Returns the page at the specified index number.

- indexForPage:

Gets the index number for the specified page.

- insertPage:atIndex:

Inserts a page at the specified index point.

- removePageAtIndex:

Removes the page at the specified index point.

- exchangePageAtIndex:withPageAtIndex:

Swaps one page with another.

pageClass

The class that is allocated and initialized when page objects are created for the document.

See Also

Reading and Writing PDFs

Write Operations

Operations that let you write document data to different locations.