Method PageCount
- Namespace
- BitMiracle.Docotic.Pdf.Layout
- Assembly
- BitMiracle.Docotic.Pdf.Layout.dll
PageCount(string?)
Adds the total number of pages to the current paragraph.
public TextPageNumber PageCount(string? sectionName = null)
Parameters
sectionName
stringThe optional section name.
Returns
- TextPageNumber
The added number of pages.
Remarks
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.