PdfSaveOptions.OutlineOptions
PdfSaveOptions OutlineOptions property. Allows to specify outline options.
PdfSaveOptions.OutlineOptions property
Allows to specify outline options.
public OutlineOptions OutlineOptions { get; }
Remarks
Outlines can be created from headings and bookmarks.
For headings outline level is determined by the heading level.
It is possible to set the max heading level to be included into outlines or disable heading outlines at all.
For bookmarks outline level may be set in options as a default value for all bookmarks or as individual values for particular bookmarks.
Also, outlines can be exported to XPS format by using the same OutlineOptions
class.
Examples
Shows how to configure outlines in PDF.
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.OutlineOptions.HeadingsOutlineLevels = 3;
pdfSaveOptions.OutlineOptions.ExpandedOutlineLevels = 2;
pdfSaveOptions.OutlineOptions.CreateMissingOutlineLevels = true;
pdfSaveOptions.OutlineOptions.CreateOutlinesForHeadingsInTables = true;
Converter.Create()
.From(MyDir + "TOC.docx")
.To(ArtifactsDir + "PdfSaveOptions.OutlineOptions.pdf", pdfSaveOptions)
.Execute();
See Also
- class OutlineOptions
- class PdfSaveOptions
- namespace Wordize.Saving
- assembly Wordize