Gets the total number of pages in the document.
Namespace:
BitMiracle.Docotic.Pdf.Layout
Assembly:
BitMiracle.Docotic.Pdf.Layout (in BitMiracle.Docotic.Pdf.Layout.dll)
Syntax
C#
public int? PageCount { get; }
VB
Public ReadOnly Property PageCount As Integer?
Get
Property Value
Type:
Nullable<
Int32>
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.
See Also