PdfSaveOptionsExportDocumentStructure Property |
Namespace: Aspose.Words.Saving
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.
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);