Wraps FPDFPageObj_SetMatrix. Replaces the page object's current
transformation matrix (CTM) with the given 2D affine transform.
Accepts either a 3x3 homogeneous matrix (matching the shape
pdf_obj_matrix() returns) or a length-6 vector
c(a, b, c, d, e, f) in PDF column-major order.
Arguments
- obj
A
pdfium_objfrompdf_page_objects(). Parent doc must be readwrite.- matrix
Either a 3x3 numeric matrix (with bottom row
(0, 0, 1)) or a length-6 numeric vector.
See also
pdf_obj_matrix() for the read side.