Nutrient Android SDK

Edit PDFs in your Android app

  • Split PDFs by page range and merge multiple documents into one
  • Rotate, crop, scale, move, copy, and remove pages — programmatically or through the built-in Document Editor UI
  • Edit text directly in PDFs — change content, font, size, color, and alignment
  • Add watermarks, set document permissions, and edit PDF metadata

Need pricing or implementation help? Talk to Sales.

PDF EDITING IN KOTLIN

val document = PdfDocument.openDocument(context, documentUri)
val task = PdfProcessorTask.fromDocument(document)
// Keep only pages 0–4 in the output.
task.keepPages(setOf(0, 1, 2, 3, 4))
PdfProcessor.processDocumentAsync(task, outputFile)
.subscribe { progress ->
// Track progress.
}

USE CASES

When developers reach for this SDK

Build document management into your app

Users need to reorganize, trim, or combine PDFs on their devices. The SDK covers the full range — split, merge, reorder, remove — with both a programmatic API and a built-in drag-and-drop editor UI.

Let users edit text directly in PDFs

The Content Editor lets users modify text, change fonts, adjust colors, and reposition paragraphs without converting to another format. Undo/redo is built in.

Stamp watermarks before distribution

Add non-removable text or image watermarks to PDFs before sharing. Watermarks render on document pages, thumbnails, and outline views.

Set document permissions and metadata

Restrict what recipients can do — control printing, copying, editing, and form filling. Edit PDF metadata (author, title, keywords) and XMP metadata with custom namespaces.

PDF editing capabilities for Android

Split and merge PDFs

Extract page ranges from a document into separate files, or merge multiple PDFs into one. Both operations run programmatically and write the result to a new file.


  • Split by page range into one or more output documents
  • Merge multiple PDFs into a single document
  • Asynchronous processing with progress tracking

Page manipulation

Rotate, crop, scale, move, copy, and remove pages. Run operations programmatically for automation, or use the built-in editor UI for interactive editing with undo/redo.


  • Rotate pages by 90-degree increments
  • Crop, scale, move, and copy pages
  • Remove individual or multiple pages at once

Content editing

Edit text directly in PDFs — modify content; change font type, size, and color; adjust alignment; and reposition paragraphs with drag and drop.


  • Edit text content, font, size, color, and alignment
  • Create, delete, copy, paste, and resize paragraphs
  • Native text input with undo/redo support

Add pages and images

Insert blank pages with configurable patterns (lines, grids), add pages from another document, or add images as new pages with an interactive UI or programmatically.


  • Blank pages with patterns, colors, and sizes
  • Import pages from another document
  • Add images as new pages with positioning


ADVANCED CAPABILITIES

Two APIs for different use cases

The SDK provides two approaches to editing. Programmatic operations handle split, merge, rotate, and crop as part of background jobs. The built-in Document Editor provides interactive editing with undo/redo, drag-and-drop reordering, and a thumbnail grid UI.

Illustration of the Document Editor on Android
Built-in Document Editor UI

A prebuilt thumbnail grid where users drag to reorder, tap to rotate, and select multiple pages to delete or duplicate. Full undo/redo and export-to-new-document support.


Content Editor for text

Users edit text directly in the PDF — change wording, adjust font properties, reposition paragraphs. Supports undo/redo and native text input.


Non-removable watermarks

Watermarks render on pages, thumbnails, and outline views. They cannot be removed by the end user — useful for branding and identifying confidential documents.


PDF and XMP metadata

Read and write standard PDF metadata (author, title, keywords) and XMP metadata with custom namespaces. Supports multiple value types, including strings, numbers, lists, and maps.


Frequently asked questions

How do I split a PDF on Android?

Open the document, specify which pages to keep, and process the output to a new file. Asynchronous processing with progress tracking is built in. See the split guide for a complete Kotlin example.

How do I merge multiple PDFs on Android?

Open your primary document, add pages from additional documents, and write the combined output to a new file. See the merge guide for a complete Kotlin example.

How do I rotate pages in a PDF on Android?

Rotate pages by 90-degree increments — programmatically for automation, or through the built-in editor UI. Both approaches support rotating single or multiple pages at once. See the rotate guide.

How do I edit text in a PDF on Android?

Enter content editing mode in the SDK's viewer. Users can modify text, change font properties (type, size, color), adjust alignment, and reposition paragraphs with drag and drop. Undo/redo is supported. Currently handles left-to-right text. See the text editing guide.

Does the SDK support both programmatic and interactive editing?

Yes. You can run page operations programmatically as part of automated workflows, and they process in the background and write results to a new file. For interactive use cases, the SDK includes a built-in Document Editor with undo/redo, drag-and-drop reordering, and a thumbnail grid UI.

How do I add a watermark to a PDF on Android?

Register a custom drawable provider on the viewer fragment. The watermark renders on document pages, thumbnails, and outline views and cannot be removed by the end user. Configure text, rotation, transparency, and color. See the watermark guide.

How do I set document permissions on Android?

Configure permission flags when saving the document. You can control what recipients can do — restrict printing, copying, editing, and form filling. Permissions are embedded in the PDF and enforced by compliant readers. See the permissions guide.

Does the SDK include a built-in Document Editor UI?

Yes. The SDK provides a prebuilt Document Editor with a thumbnail grid. Users can drag to reorder, tap to rotate, and select multiple pages to delete, duplicate, or export. It supports undo/redo and can be customized through toolbar configuration. See the document editor UI guide.

FREE TRIAL

Ready to get started?

Add PDF editing to your Android app in minutes — split, merge, rotate, and edit text with no payment information required.

Explore more

More Android SDK capabilities