static public method OutlineExtensions.AddOutline

Brief

Adds a TOC with specified settings to the document.

Declaration
C#
Gehtsoft.PDFFlow.Builder.OutlineBuilder  AddOutline (this Gehtsoft.PDFFlow.Builder.DocumentBuilder documentBuilder, string outlineCaption, System.Single levelLeftIndent = 0, Gehtsoft.PDFFlow.Builder.FontBuilder outlineFont = null, Gehtsoft.PDFFlow.Builder.FontBuilder captionFont = null, Gehtsoft.PDFFlow.Models.Enumerations.PaperSize paperSize = Letter, Gehtsoft.PDFFlow.Models.Enumerations.PageOrientation pageOrientation = Landscape, System.Single marginLeft = 20, System.Single marginTop = 20, System.Single marginRight = 20, System.Single marginBottom = 20)

Parameters
documentBuilder

This DocumentBuilder

outlineCaption

The TOC caption.

levelLeftIndent

The left indent for the TOC levels.

outlineFont

The TOC font.

captionFont

The font of the TOC caption.

paperSize

The paper size.

pageOrientation

The page orientation.

marginLeft

The left margin.

marginTop

The top margin.

marginRight

The right margin.

marginBottom

The bottom margin.

Declared in OutlineExtensions

back