PdfPageObject
abstract class PdfPageObject
kotlin.Any | |
↳ | android.graphics.pdf.component.PdfPageObject |
Represents a page object on a page of a pdf document. This abstract class provides a base implementation for different types of PDF page objects.
Summary
Public methods | |
---|---|
open FloatArray |
Returns the transformation matrix of the object. |
open Int |
Returns the type of the page object. |
open Unit |
Sets the transformation matrix of the object. |
open Unit |
Transform the page object The matrix is composed as: |a c e| |b d f| and can be used to scale, rotate, shear and translate the |page_object|. |
Public methods
getMatrix
open fun getMatrix(): FloatArray
Returns the transformation matrix of the object.
Return | |
---|---|
FloatArray |
The transformation matrix of the object. This value cannot be null . |
getPdfObjectType
open fun getPdfObjectType(): Int
Returns the type of the page object.
Return | |
---|---|
Int |
The type of the page object. |
setMatrix
open fun setMatrix(matrix: Matrix): Unit
Sets the transformation matrix of the object.
Parameters | |
---|---|
matrix |
Matrix: The transformation matrix of the object. This value cannot be null . |
transform
open fun transform(
a: Float,
b: Float,
c: Float,
d: Float,
e: Float,
f: Float
): Unit
Transform the page object The matrix is composed as: |a c e| |b d f| and can be used to scale, rotate, shear and translate the |page_object|.