Nutrient Android SDK
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. }val document = PdfDocument.openDocument(context, documentUri)val editor = PdfDocumentEditorFactory.createEditor(document)
// Rotate pages 0 and 1 clockwise by 90 degrees.editor.rotatePages(listOf(0, 1), PdfDocument.ROTATE_90)
// Save changes.document.saveIfModified()val document = PdfDocument.openDocument(context, documentUri)val task = PdfProcessorTask.fromDocument(document)
// Merge pages from a second document.val secondDoc = PdfDocument.openDocument(context, secondUri)task.mergeDocument(secondDoc)
PdfProcessor.processDocumentAsync(task, outputFile) .subscribe { progress -> // Track progress. }USE CASES
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.
The Content Editor lets users modify text, change fonts, adjust colors, and reposition paragraphs without converting to another format. Undo/redo is built in.
Add non-removable text or image watermarks to PDFs before sharing. Watermarks render on document pages, thumbnails, and outline views.
Restrict what recipients can do — control printing, copying, editing, and form filling. Edit PDF metadata (author, title, keywords) and XMP metadata with custom namespaces.
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.
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.
Edit text directly in PDFs — modify content; change font type, size, and color; adjust alignment; and reposition paragraphs with drag and drop.
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.
ADVANCED CAPABILITIES
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.
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.
Users edit text directly in the PDF — change wording, adjust font properties, reposition paragraphs. Supports undo/redo and native text input.
Watermarks render on pages, thumbnails, and outline views. They cannot be removed by the end user — useful for branding and identifying confidential documents.
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.
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.
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.
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.
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.
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.
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.
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.
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
Add PDF editing to your Android app in minutes — split, merge, rotate, and edit text with no payment information required.
Also available for
More Android SDK capabilities