This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/maui/save-a-document/export-configuration.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Export PDF MAUI: Configure document exporting | Nutrient

The IExportConfiguration interface customizes how MAUI exports a PDF document.

Introduction to export configurations

IExportConfiguration holds the configuration a document is exported with, and its properties change the export behavior. Build one from the document with the <IDocument>.CreateExportConfiguration() method. Passing null to the export method instead applies the default configuration.

The following sections cover the key properties of the IExportConfiguration interface.

ExcludeAnnotations (default: False)

Set the ExcludeAnnotations property to true to export a document without any of its annotations:

IExportConfiguration exportConfig = _document.CreateExportConfiguration();
exportConfig.ExcludeAnnotations = true;

ExportForPrinting (default: False)

Set ExportForPrinting to true and the export drops every annotation carrying the NoPrint flag. Use it to produce a print-ready document.

The NoPrint flag itself can currently only be set through advance API access:

IExportConfiguration exportConfig = _document.CreateExportConfiguration();
exportConfig.ExportForPrinting = true;

ExportIncrementally (default: False, but true for digitally signed documents)

Two strategies exist for persisting changes to an open document: incremental saving and full saving.

Incremental saving appends new changes to the end of a document and leaves the previous versions intact. That matters for digitally signed documents, because a digital signature is invalidated once the integrity of the signed content is compromised.

Full saving rewrites the entire document instead. The file size then stays flat across revisions, but the save is slower than an incremental one.

Nutrient MAUI SDK saves fully by default. Digitally signed documents are the exception: They default to incremental saving when the Digital Signatures component is present in the license. To choose incremental saving anywhere else, set the ExportIncrementally flag to true when calling _document.ExportDocumentAsync:

IExportConfiguration exportConfig = _document.CreateExportConfiguration();
exportConfig.ExportIncrementally = true;

Setting ExportIncrementally when Flatten is already set will result in an InvalidOperationException.

Flatten (default: False)

Set this property to true to embed annotations and form fields visually in the document, which makes them non-editable afterwards:

IExportConfiguration exportConfig = _document.CreateExportConfiguration();
exportConfig.Flatten = true;

Setting Flatten when ExportIncrementally is already set will result in an InvalidOperationException.

Permissions

The Permissions property sets the user and owner password on an exported document, which is how access and actions on it are restricted:

IExportConfiguration exportConfig = _document.CreateExportConfiguration();
exportConfig.Permissions.UserPassword = "userPassword";
exportConfig.Permissions.OwnerPassword = "ownerPassword";
exportConfig.Permissions.PermissionFlags = AnnotationsAndForms | Assemble // set the permissions here;