Namespace: BitMiracle.Docotic.Pdf.Layout
public TextPageNumber PageCount( string? sectionName = null )
Public Function PageCount ( Optional sectionName As String = Nothing ) As TextPageNumber
When sectionName is null then this method returns the total number of document pages.
When sectionName is not null then this method returns the total number of section pages.
The section sectionName may not exist when this method is called. However, the section must exist when the document is rendered. Otherwise, the LayoutException will be thrown during the rendering. Use the Section(String) method to add a section.
This method does not complete the current paragraph. I.e., a next text chunk will be placed in the same paragraph.