Skip to content
Code Samples

Samples

Create a Bookmark in PDF

This sample shows how to create a new bookmark and implement a bookmark jump

Create an Outline in PDF

This sample shows how to create an outline and get existing outline information

PDF to Image Conversion

This sample shows how to convert PDFs to images

Search Text in PDF

This sample shows how to do a full document search and highlight for keywords

Add Annotations to PDF

This sample shows how to print the annotation list information, set the annotations (including markup, notes, ink, free text, shapes, stamp, and so on), and delete the annotations

Import & Export Annotations in PDF

This sample shows how to set up the export and import of annotations. The document from which the annotations are exported is an xfdf file

Create Interactive Forms in PDF

This sample shows how to print form list information, set up interactive forms (including text, checkbox, button, list, Combox, and so on), and fill out form information

Document Editor

This sample shows how to manipulate multiple pages of a pdf document, including insert, split, merge, rotate, and so on.

Extract Images in PDF

This sample shows how to extract all the images of a PDF document

Extract Text in PDF

This sample shows how to extract all the text from a PDF

Extract Document Information from PDF

This sample shows how to extract information about PDF documents, such as author, date created

Add Watermarks in PDF

This sample shows how to add watermarks, including text, image, and tile watermarks, and delete watermarks

Add Backgrounds in PDF

This sample shows how to add color and picture backs and delete backgrounds

Add Headers and Footers in PDF

This sample shows how to add and remove headers and footers

Add Bates Codes in PDF

This sample shows how to add and remove bates codes

Redact Text and Data in PDF

This sample shows how to create redaction to remove sensitive information or private data, which cannot be viewed and searched once applied.

Encrypt and Protect PDF

This sample shows how to set user password and permission password, decrypt, set document permission

PDFA Conversion

This sample shows how to convert PDF to PDFA1a and PDFA1b formats

Flatten PDF

This sample shows how to create a copy of Flattened