/// <summary> /// Experimental API. Get a "loose" bounding box of a particular character, i.e., /// covering the entire glyph bounds, without taking the actual glyph shape into account. /// </summary> /// <param name="text_page">Handle to a text page information structure. Returned by FPDFText_LoadPage function.</param> /// <param name="index">Zero-based index of the character.</param> /// <param name="rect">Pointer to a FS_RECTF receiving the character box.</param> /// <returns>On success, return TRUE and fill in |rect|. If |text_page| is invalid, or if |index| is out of bounds, /// then return FALSE, and the |rect| out parameter remains unmodified.</returns> /// <remarks> /// All positions are measured in PDF "user space". /// FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFText_GetLooseCharBox(FPDF_TEXTPAGE text_page, int index, FS_RECTF* rect);. /// </remarks> public bool FPDFText_GetLooseCharBox(FPDF_TEXTPAGE text_page, int index, ref FS_RECTF rect) { lock (_syncObject) { return(FPDFText_GetLooseCharBoxStatic(text_page, index, ref rect)); } }
/// <summary> /// Get the rectangle for |link_annot|. /// </summary> /// <param name="link_annot">Handle to the link annotation.</param> /// <param name="rect">The annotation rectangle.</param> /// <returns>Returns true on success.</returns> /// <remarks> /// FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFLink_GetAnnotRect(FPDF_LINK link_annot, FS_RECTF* rect);. /// </remarks> public bool FPDFLink_GetAnnotRect(FPDF_LINK link_annot, ref FS_RECTF rect) { lock (_syncObject) { return(FPDFLink_GetAnnotRectStatic(link_annot, ref rect)); } }