Click or drag to resize

PdfiumFPDFText_CountRects Method

Count number of rectangular areas occupied by a segment of texts.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static int FPDFText_CountRects(
	IntPtr text_page,
	int start_index,
	int count
)

Parameters

text_page  IntPtr
Handle to a text page information structure. Returned by FPDFText_LoadPage(IntPtr) function
start_index  Int32
Index for the start characters
count  Int32
Number of characters

Return Value

Int32
Number of rectangles. Zero for error
Remarks
This function, along with FPDFText_GetRect(IntPtr, Int32, Double, Double, Double, Double) can be used by applications to detect the position on the page for a text segment, so proper areas can be highlighted or something. FPDFTEXT will automatically merge small character boxes into bigger one if those characters are on the same line and use same font settings.
See Also