---
title: "Code Samples - Android PDF Library"
canonical_url: "https://www.compdf.com/guides/pdf-sdk/android/examples"
md_url: "https://www.compdf.com/guides/pdf-sdk/android/examples.md"
description: "Unlock all Android PDF features with the ComPDF code sample with easy and simple integration steps."
---

# Samples

-   [Create a Bookmark in PDF](https://www.compdf.com/guides/pdf-sdk/android/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](https://www.compdf.com/guides/pdf-sdk/android/samples/create-an-outline-in-pdf) — This sample shows how to create an outline and get existing outline information
-   [PDF to Image Conversion](https://www.compdf.com/guides/pdf-sdk/android/samples/pdf-to-image-conversion) — This sample shows how to convert PDFs to images
-   [Search Text in PDF](https://www.compdf.com/guides/pdf-sdk/android/samples/search-text-in-pdf) — This sample shows how to do a full document search and highlight for keywords
-   [Add Annotations to PDF](https://www.compdf.com/guides/pdf-sdk/android/samples/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 &amp; Export Annotations in PDF](https://www.compdf.com/guides/pdf-sdk/android/samples/import-and-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](https://www.compdf.com/guides/pdf-sdk/android/samples/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](https://www.compdf.com/guides/pdf-sdk/android/samples/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](https://www.compdf.com/guides/pdf-sdk/android/samples/extract-images-in-pdf) — This sample shows how to extract all the images of a PDF document
-   [Extract Text in PDF](https://www.compdf.com/guides/pdf-sdk/android/samples/extract-text-in-pdf) — This sample shows how to extract all the text from a PDF
-   [Extract Document Information from PDF](https://www.compdf.com/guides/pdf-sdk/android/samples/extract-doc-info-in-pdf) — This sample shows how to extract information about PDF documents, such as author, date created
-   [Add Watermarks in PDF](https://www.compdf.com/guides/pdf-sdk/android/samples/add-watermarks-in-pdf) — This sample shows how to add watermarks, including text, image, and tile watermarks, and delete watermarks
-   [Add Backgrounds in PDF](https://www.compdf.com/guides/pdf-sdk/android/samples/add-backgrounds-in-pdf) — This sample shows how to add color and picture backs and delete backgrounds
-   [Add Headers and Footers in PDF](https://www.compdf.com/guides/pdf-sdk/android/samples/add-headers-and-footers-in-pdf) — This sample shows how to add and remove headers and footers
-   [Add Bates Codes in PDF](https://www.compdf.com/guides/pdf-sdk/android/samples/add-bates-codes-in-pdf) — This sample shows how to add and remove bates codes
-   [Redact Text and Data in PDF](https://www.compdf.com/guides/pdf-sdk/android/samples/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](https://www.compdf.com/guides/pdf-sdk/android/samples/encrypt-and-protect-pdf) — This sample shows how to set user password and permission password, decrypt, set document permission
-   [PDFA Conversion](https://www.compdf.com/guides/pdf-sdk/android/samples/pdfa-conversion) — This sample shows how to convert PDF to PDFA1a and PDFA1b formats
-   [Flatten PDF](https://www.compdf.com/guides/pdf-sdk/android/samples/flatter-pdf) — This sample shows how to create a copy of Flattened
