PdfSaveOptionsExportDocumentStructure Property

Gets or sets a value determining whether or not to export document structure.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public bool ExportDocumentStructure { get; set; }

Property Value

Type: Boolean
Remarks

This value is ignored when saving to PDF/A-1a because document structure is required for this compliance.

Note that exporting the document structure significantly increases the memory consumption, especially for the large documents.

Examples
Shows how to convert a .docx to .pdf while preserving the document structure.
Document doc = new Document(MyDir + "Paragraphs.docx");

// Create a PdfSaveOptions object and configure it to preserve the logical structure that's in the input document
// The file size will be increased and the structure will be visible in the "Content" navigation pane
// of Adobe Acrobat Pro, while editing the .pdf
PdfSaveOptions options = new PdfSaveOptions();
options.ExportDocumentStructure = true;

doc.Save(ArtifactsDir + "PdfSaveOptions.ExportDocumentStructure.pdf", options);
See Also