FPDFPageObj_SetMatrix function

  1. @Native<FPDF_BOOL Function(FPDF_PAGEOBJECT, Pointer<FS_MATRIX>)>(FPDF_PAGEOBJECT, ffi.Pointer<FS_MATRIX>)>()
int FPDFPageObj_SetMatrix(
  1. FPDF_PAGEOBJECT page_object,
  2. Pointer<FS_MATRIX> matrix
)

Experimental API. Set the transform matrix of a page object.

page_object - handle to a page object. matrix - pointer to struct with the matrix value.

The matrix is composed as: |a c e| |b d f| and can be used to scale, rotate, shear and translate the page object.

Returns TRUE on success.

Implementation

@ffi.Native<FPDF_BOOL Function(FPDF_PAGEOBJECT, ffi.Pointer<FS_MATRIX>)>()
external int FPDFPageObj_SetMatrix(
  FPDF_PAGEOBJECT page_object,
  ffi.Pointer<FS_MATRIX> matrix,
);