Table of Contents

Property PageCount

Namespace
BitMiracle.Docotic.Pdf.Layout
Assembly
BitMiracle.Docotic.Pdf.Layout.dll

PageCount

Gets the total number of pages in the document.

public int? PageCount { get; }

Property Value

int?

The total number of pages in the document or null if the number of page is not known yet.

Remarks

The library performs 2 passes when generating the document. First time, the library calculates the total number of pages in the document. Second time, the library renders the content of the document. This property returns null when the context corresponds to the first pass. Use the LayoutCompleted property to check the current state.

See Also