 | PdfiumFPDFText_CountChars Method |
Get number of characters in a page
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static int FPDFText_CountChars(
IntPtr text_page
)
Public Shared Function FPDFText_CountChars (
text_page As IntPtr
) As Integer
public:
static int FPDFText_CountChars(
IntPtr text_page
)
static member FPDFText_CountChars :
text_page : IntPtr -> int
public static int FPDFText_CountChars(
IntPtr text_page
)
Patagames.Pdf.Pdfium.FPDFText_CountChars = function(text_page);
Parameters
- text_page IntPtr
- Handle to a text page information structure returned by FPDFText_LoadPage(IntPtr) function
Return Value
Int32Number of characters in the page. Return -1 for error.
Generated characters, like additional space characters, new line characters, are also
counted.
RemarksCharacters 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