FPDFPageObj_GetRotatedBounds function

  1. @Native<FPDF_BOOL Function(FPDF_PAGEOBJECT, Pointer<FS_QUADPOINTSF>)>(FPDF_PAGEOBJECT, ffi.Pointer<FS_QUADPOINTSF>)>()
int FPDFPageObj_GetRotatedBounds(
  1. FPDF_PAGEOBJECT page_object,
  2. Pointer<FS_QUADPOINTSF> quad_points
)

Experimental API. Get the quad points that bounds |page_object|.

page_object - handle to a page object. quad_points - pointer where the quadrilateral points will be stored.

On success, returns TRUE and fills in |quad_points|.

Similar to FPDFPageObj_GetBounds(), this returns the bounds of a page object. When the object is rotated by a non-multiple of 90 degrees, this API returns a tighter bound that cannot be represented with just the 4 sides of a rectangle.

Currently only works the following |page_object| types: FPDF_PAGEOBJ_TEXT and FPDF_PAGEOBJ_IMAGE.

Implementation

@ffi.Native<FPDF_BOOL Function(FPDF_PAGEOBJECT, ffi.Pointer<FS_QUADPOINTSF>)>()
external int FPDFPageObj_GetRotatedBounds(
  FPDF_PAGEOBJECT page_object,
  ffi.Pointer<FS_QUADPOINTSF> quad_points,
);