This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/android/save-a-document/to-local-storage.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Save PDF to local storage with Android library | Nutrient

Nutrient Android SDK automatically saves document changes to the device’s file system. To disable autosave, pass false to PdfConfiguration.Builder’s autosaveEnabled method:

val configuration = PdfConfiguration.Builder()
.autosaveEnabled(false)
.build()

Autosave remains enabled unless you explicitly disable it.

With autosave disabled, call PdfDocument’s saveIfModified method to save changes.

Access the document through PdfFragment’s document property, or getDocument() in Java:

val document = activity.requirePdfFragment().document ?: return
// Manually save the document.
document.saveIfModified()