Click or drag to resize

PdfiumFPDFText_CountChars Method

Get number of characters in a page

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static int FPDFText_CountChars(
	IntPtr text_page
)

Parameters

text_page  IntPtr
Handle to a text page information structure returned by FPDFText_LoadPage(IntPtr) function

Return Value

Int32
Number of characters in the page. Return -1 for error. Generated characters, like additional space characters, new line characters, are also counted.
Remarks
Characters in a page form a "stream", inside the stream, each character has an index. We will use the index parameters in many of FPDFTEXT functions. The first character in the page has an index value of zero.
See Also