Stay organized with collections
Save and categorize content based on your preferences.
PdfPageObject
abstract class 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 . |
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|.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["# PdfPageObject\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions)\n\nPdfPageObject\n=============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/pdf/component/PdfPageObject \"View this page in Java\") \n\n```\nabstract class PdfPageObject\n```\n\n|---|---------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.graphics.pdf.component.PdfPageObject](#) |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [PdfPageImageObject](/reference/kotlin/android/graphics/pdf/component/PdfPageImageObject), [PdfPagePathObject](/reference/kotlin/android/graphics/pdf/component/PdfPagePathObject), [PdfPageTextObject](/reference/kotlin/android/graphics/pdf/component/PdfPageTextObject) |-------------------------------------------------------------------------------------------|-------------------------------------------| | [PdfPageImageObject](/reference/kotlin/android/graphics/pdf/component/PdfPageImageObject) | Represents an image object on a PDF page. | | [PdfPagePathObject](/reference/kotlin/android/graphics/pdf/component/PdfPagePathObject) | Represents a path object on a PDF page. | | [PdfPageTextObject](/reference/kotlin/android/graphics/pdf/component/PdfPageTextObject) | Represents a text object on a PDF page. | |\n\nRepresents a page object on a page of a pdf document. This abstract class provides a base implementation for different types of PDF page objects.\n\nSummary\n-------\n\n| Public methods ||\n|------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [FloatArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float-array/index.html) | [getMatrix](#getMatrix())`()` Returns the transformation matrix of the object. |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getPdfObjectType](#getPdfObjectType())`()` Returns the type of the page object. |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setMatrix](#setMatrix(android.graphics.Matrix))`(`matrix:` `[Matrix](../../Matrix.html#)`)` Sets the transformation matrix of the object. |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [transform](#transform(kotlin.Float,%20kotlin.Float,%20kotlin.Float,%20kotlin.Float,%20kotlin.Float,%20kotlin.Float))`(`a:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `b:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `c:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `d:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `e:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `f:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` 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\\|. |\n\nPublic methods\n--------------\n\n### getMatrix\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions) \n\n```\nopen fun getMatrix(): FloatArray\n```\n\nReturns the transformation matrix of the object.\n\n| Return ||\n|-------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|\n| [FloatArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float-array/index.html) | The transformation matrix of the object. This value cannot be `null`. |\n\n### getPdfObjectType\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions) \n\n```\nopen fun getPdfObjectType(): Int\n```\n\nReturns the type of the page object.\n\n| Return ||\n|----------------------------------------------------------------------------|------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | The type of the page object. |\n\n### setMatrix\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions) \n\n```\nopen fun setMatrix(matrix: Matrix): Unit\n```\n\nSets the transformation matrix of the object.\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------------------|\n| `matrix` | [Matrix](../../Matrix.html#): The transformation matrix of the object. This value cannot be `null`. |\n\n### transform\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions) \n\n```\nopen fun transform(\n a: Float, \n b: Float, \n c: Float, \n d: Float, \n e: Float, \n f: Float\n): Unit\n```\n\nTransform 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\\|."]]