Master PDF annotations in Android with code examples


Add Annotations to Images

Learn to load image files for PDF annotation using Kotlin with our guide. Explore additional resources and examples for Android development.
Kotlin

Create a digital signature

Learn how to register a digital certificate for signing PDFs in Android. Explore our guides on digital signatures and generating self-signed certifica...

Embed files in a PDF

Learn to programmatically embed files in PDF documents with annotations. Explore our guide for resources on creating PDF annotations in Android.

Add signature to PDF

Learn to digitally sign PDFs by clicking the signature field. Explore our guide for more resources on adding digital signatures in Android.

Add video and gallery annotations programmatically

Learn how to enhance your PDFs with a gallery and video annotations. Visit our guide for more on multimedia annotations in Android.

Add watermarks to PDFs

Learn how to add images, text, and logos as watermarks in your PDFs. Explore our guide for detailed steps and Kotlin code examples.

Open an AES-encrypted PDF

Learn how to open AES-encrypted PDFs without storing decrypted data. Explore our guide on decrypting PDFs securely in Android.

Add annotations to PDF with alpha values

Learn how to create multiple annotation types in PDFs using Java. Explore links, highlights, free text, and more with our comprehensive guide.

Set annotation flags on PDF

You can set different flags, like a NOZOOM flag to ensure the annotation is always drawn with the same dimensions on screen, on annotation objects. Ge...

Annotation overlay mode

An example showing how to draw annotations as overlay views instead of rendering them as part of the page. Get additional resources by visiting our gu...

Change annotation selection behavior

Learn to prevent Stamp annotations from being selected post-creation. Explore our guide on annotation events and notifications for more resources.

Change how annotation selection is visualized

Learn to customize annotation states in Android using Kotlin. Explore our API documentation for advanced theming options.

Create PDF annotations programmatically

Learn to programmatically add links, highlights, and notes to PDFs using Kotlin. Explore our Android PDF annotation library for more resources.

Custom activity integration with the PDF Form Editing UI

Discover how to use the Form Editing UI for custom activities in Android. Get resources for customizing the PDF editing toolbar today!

Custom activity with toolbars

Learn how to hide default toolbars and use contextual toolbars in a custom PdfFragment activity with our Java code example.

Create a custom annotation in PDF toolbar

Learn how to add custom items to the annotation toolbar in Android. Visit our guide for detailed instructions and example code.

Custom annotation inspector

Learn to implement a custom annotation inspector in Android. Access our guide and example code for enhancing your annotation features effectively.

Custom PDF annotation toolbar grouping

Discover how to customize the toolbar menu in Android PDF viewer with practical code samples and expert guidance.

Using custom DataProviders

Learn to load PDF documents using PdfActivity and a custom DataProvider. Explore our guide for more tips on Android PDF handling.

Custom document sharing dialog

Learn to implement a custom dialog in Android's document sharing flow. Explore our guide for PDF sharing options and enhance user experience.

Adding actions to the document sharing menu

Learn how to add a custom action to the document sharing menu in Android. Explore our guide on configuring PDF sharing options for more insights.

Customize the download progress dialog

Learn to build a custom DownloadProgressFragment and explore our guide on opening PDFs from URLs in Android for enhanced user experience.

Custom new page template

Learn to add custom templates to the new page dialog in Android. Visit our guide on customizing the PDF editing toolbar for more resources.

Customize annotation note hints

Discover how to customize ink annotation note hints in Android. Access our guide and example code to optimize your PDF rendering experience.

Change the PDF form highlight color

Learn to toggle between custom and theme highlight colors for form elements in Android. Visit our guide for more customization resources.

Custom inline search

Learn how to implement PdfSearchViewInline in your custom layout. Explore our guide for more on styling PDF viewers in Android.

Custom search UI

Learn to build a custom search view using the search API and access our guide on text searching in PDFs for Android development.

Use a custom set of PDF stamp annotations

Customizes the default set of stamps in the StampPickerDialog. Get additional resources by visiting our guide on PDF stamp annotations in Android.

Customize the PDF view layout

Learn how to customize the PDF viewer layout in Android with our step-by-step guide and example code. Enhance your app's interface today!

Add custom actions to the ActionBar

Learn how to modify ActionBar icons in your Android app with our example. Visit our guide for more on customizing PDF metadata and interfaces.

Use the dark theme

Discover how to apply a custom theme in your Android PDF viewer with our Kotlin example. Access additional resources for styling customization.

Disable text selection in PDF

Learn how to use ApplicationPolicy to prevent text copying in Android. Access our guide for best practices and code samples for effective implementati...

Disable annotation properties

Learn to disable the annotation note option in the editing toolbar. Explore our guide for additional resources on managing annotation properties in An...

Import and export Instant Document JSON

Learn to import and export Instant Document JSON using PSPDFKit. Access our Kotlin example and further resources on how Instant JSON works.

Show two PDFs side-by-side

Learn how to use two PdfFragment instances side-by-side in Android. Access our guide for tips on opening multiple PDFs efficiently.

Create a custom UI for navigating between PDFs

Learn how to implement a side navigation drawer to switch documents easily. Explore our DocumentCoordinator API guide for more resources.

Download a PDF into your app

Learn to download PDF files from the web with our step-by-step guide. Explore Kotlin examples and tips for opening PDFs on Android devices.

PDF processing and editing

Discover how to utilize the PdfProcessor class for document processing in Android. Access our guides and Kotlin example for effective implementation.

Start PdfActivity without PDF loaded

Learn to initiate a PdfActivity without a PDF document. Explore our Kotlin example and additional resources for customizing your PDF interface.

Filterable thumbnail grid

Learn to use PdfProcessor and DocumentCoordinator for a customizable thumbnail grid in Android. Filter by annotated or bookmarked pages easily.

Fragment

Learn how to create an Android activity using PdfFragment. Access our comprehensive guide for tips and resources on customizing your interface effecti...

Full-text search indexing

Learn how to index all PDFs in your Android catalog app for full-text search. Access our guide for additional resources on PDF indexing techniques.

Generate PDF report

Learn how to create a password-protected PDF from multiple files using Kotlin. Explore our Android PDF editor library for more resources and examples.

XFDF data import and export

Discover how to use the XML Forms Data Format (XFDF) for managing PDF forms and annotations. Explore code examples and resources for Android integrati...

Inline multimedia

Discover how to display rich media and video annotations in PDFs on Android. Visit our guide for embedding videos and multimedia annotations today!

JavaScript actions

Learn to create and execute JavaScript actions within PDFs. Explore our guide on PDF annotation actions in Android for more resources and examples.

PDF-based JavaScript calculator

Explore our PDF example featuring a JavaScript calculator app. Access additional resources on PDF annotation actions for Android.

JavaScript PDF form filling

Learn to fill out PDF forms using the JavaScript bridge. Explore our guide for PDF annotation actions in Android and access useful code samples.

Kiosk grid: Display multiple PDFs

Learn to display all documents in the assets folder using grid view. Visit our guide for tips on opening multiple PDFs in the Android viewer.

Merge PDF documents

Learn to merge multiple PDF files in Android with our guide and example code. Enhance your document processing using Kotlin and additional resources.

Open remote or local PDFs

Learn how to open PDF documents in Android using Kotlin from the file system, app assets, or URIs. Follow our guide for tips and code samples for seam...

Password-protected PDF

Learn how to handle password-protected PDFs in Android. Access our Kotlin example and find tips for opening secured documents easily.

PDF collaboration with Instant

Learn how to connect to PSPDFKit Instant server and download documents for collaborative editing. Explore our resources for Android PDF collaboration.

Create PDF forms programmatically

Learn how to add new PDF form elements in Android. Explore our guide on creating fillable PDF forms and access valuable code samples for implementatio...

Fill out PDF forms programmatically

Learn how to fill out PDF forms in your Android app using Kotlin. Access our comprehensive guide for more resources and code samples.

Add PDF form elements with JavaScript actions attached

Learn how to add PDF form elements using JavaScript actions. Explore our guide on validating PDF forms in Android for more resources and examples.

PDF creation from canvas

Learn how to create a document using Android canvas and explore our Android PDF generation library for more resources and examples.

OCR

Learn to perform OCR on PDFs in Android. Explore our guide and access Kotlin code examples to seamlessly integrate OCR SDK into your app.

Add custom sharing actions

Learn how to implement custom sharing actions for PDFs in Android. Access our guide for detailed resources and code samples for seamless integration.

PDF viewer

Learn how to implement a Kotlin-based PDF viewer for Android applications with Nutrient Android SDK. Access code samples, resources, and step-by-step ...

Progress data provider

Learn how to implement ProgressDataProvider in Android with our Kotlin example. Access resources on opening PDFs from URLs for enhanced functionality.

Random document replacement example

Explore a Java example that stress tests document replacement at random intervals, enhancing performance and reliability in your applications.

Annotation rendering in PDFs

Learn how to control annotation rendering in Android and explore our Kotlin example. Visit our guide for additional resources on rendering annotations...

Rotate page temporarily

Learn how to temporarily rotate PDF pages in Android with our Kotlin example. Visit our guide for more tips on page manipulation and resources.

Runtime configuration activity

Learn to change Android activity configuration at runtime. Explore our guide on disabling annotation editing and PdfActivityConfiguration.Builder API.

Runtime configuration fragment

Learn how to modify PdfFragment settings dynamically. Explore our PdfActivityConfiguration.Builder API guide for more resources and examples.

View setup for continuous scrolling

Learn to set up continuous vertical scrolling with fit-to-width zoom in your Android app. Explore our guide for more customization options.

Open multiple PDFs in tabs

Discover how to open multiple PDF documents in a tabbed interface with our guide. Explore the Kotlin example for seamless document handling.

TextToSpeech screen reader

Discover how to create a PDF screen reader on Android that highlights spoken words. Access our guide for more on accessibility features and resources.

Toggle UI visibility

Learn how to modify the UI view mode in a custom Android Activity. Explore our Kotlin example and access additional resources on UI visibility.

Vertical scroll bar in the document view

Discover how to improve document navigation using the Scroll API and VerticalScrollBar widget. Visit our guide for customizing Android scrollbars.

Zoom and Pan Documents

Learn to zoom and pan around PDF pages programmatically. Explore Kotlin examples and customize zoom options in our comprehensive Android guide.