Added in [version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)  
Also in [S Extensions 18](https://developer.android.com/sdkExtensions) Summary: [Methods](https://developer.android.com/reference/android/graphics/pdf/component/PdfPageObject#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/graphics/pdf/component/PdfPageObject#inhmethods)

# PdfPageObject

*** ** * ** ***


`
public


abstract
class
PdfPageObject
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.graphics.pdf.component.PdfPageObject |

|---|
| Known direct subclasses [PdfPageImageObject](https://developer.android.com/reference/android/graphics/pdf/component/PdfPageImageObject), [PdfPagePathObject](https://developer.android.com/reference/android/graphics/pdf/component/PdfPagePathObject), [PdfPageTextObject](https://developer.android.com/reference/android/graphics/pdf/component/PdfPageTextObject) |---|---| | [PdfPageImageObject](https://developer.android.com/reference/android/graphics/pdf/component/PdfPageImageObject) | Represents an image object on a PDF page. | | [PdfPagePathObject](https://developer.android.com/reference/android/graphics/pdf/component/PdfPagePathObject) | Represents a path object on a PDF page. | | [PdfPageTextObject](https://developer.android.com/reference/android/graphics/pdf/component/PdfPageTextObject) | Represents a text object on a PDF page. | |

<br />

*** ** * ** ***

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 ||
|---|---|
| ` float[]` | ` https://developer.android.com/reference/android/graphics/pdf/component/PdfPageObject#getMatrix()() ` Returns the transformation matrix of the object. |
| ` int` | ` https://developer.android.com/reference/android/graphics/pdf/component/PdfPageObject#getPdfObjectType()() ` Returns the type of the page object. |
| ` void` | ` https://developer.android.com/reference/android/graphics/pdf/component/PdfPageObject#setMatrix(android.graphics.Matrix)(https://developer.android.com/reference/android/graphics/Matrix matrix) ` Sets the transformation matrix of the object. |
| ` void` | ` https://developer.android.com/reference/android/graphics/pdf/component/PdfPageObject#transform(float,%20float,%20float,%20float,%20float,%20float)(float a, float b, float c, float d, float e, float f) ` 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\|. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public methods

### getMatrix

Added in [version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)  
Also in [S Extensions 18](https://developer.android.com/sdkExtensions)

```
public float[] getMatrix ()
```

Returns the transformation matrix of the object.

<br />

| Returns ||
|---|---|
| `float[]` | The transformation matrix of the object. This value cannot be `null`. <br /> |

### getPdfObjectType

Added in [version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)  
Also in [S Extensions 18](https://developer.android.com/sdkExtensions)

```
public int getPdfObjectType ()
```

Returns the type of the page object.

<br />

| Returns ||
|---|---|
| `int` | The type of the page object. <br /> |

### setMatrix

Added in [version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)  
Also in [S Extensions 18](https://developer.android.com/sdkExtensions)

```
public void setMatrix (Matrix matrix)
```

Sets the transformation matrix of the object.

<br />

| Parameters ||
|---|---|
| `matrix` | `Matrix`: The transformation matrix of the object. This value cannot be `null`. <br /> |

### transform

Added in [version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)  
Also in [S Extensions 18](https://developer.android.com/sdkExtensions)

```
public void transform (float a, 
                float b, 
                float c, 
                float d, 
                float e, 
                float f)
```

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\|.

<br />

| Parameters ||
|---|---|
| `a` | `float` <br /> |
| `b` | `float` <br /> |
| `c` | `float` <br /> |
| `d` | `float` <br /> |
| `e` | `float` <br /> |
| `f` | `float` <br /> |