Stay organized with collections
Save and categorize content based on your preferences.
PdfPageObjectType
class PdfPageObjectType
This class holds the set of constants representing the types of a PDF page objects.
Summary
Constants |
static Int |
Represents an image page object
|
static Int |
Represents a path page object
|
static Int |
Represents a text page object
|
static Int |
Represents the type of page object that cannot be determined
|
Public methods |
static Boolean |
Checks if the given type is a valid PDF page object type.
|
Constants
IMAGE
static val IMAGE: Int
Represents an image page object
Value: 3
PATH
static val PATH: Int
Represents a path page object
Value: 2
TEXT
static val TEXT: Int
Represents a text page object
Value: 1
UNKNOWN
static val UNKNOWN: Int
Represents the type of page object that cannot be determined
Value: 0
Public methods
isValidType
static fun isValidType(type: Int): Boolean
Checks if the given type is a valid PDF page object type.
Parameters |
type |
Int: The type to check. |
Return |
Boolean |
true if the type is valid, false otherwise. |
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,["# PdfPageObjectType\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions)\n\nPdfPageObjectType\n=================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/pdf/component/PdfPageObjectType \"View this page in Java\") \n\n```\nclass PdfPageObjectType\n```\n\n|---|-------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.graphics.pdf.component.PdfPageObjectType](#) |\n\nThis class holds the set of constants representing the types of a PDF page objects.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [IMAGE](#IMAGE:kotlin.Int) Represents an image page object |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PATH](#PATH:kotlin.Int) Represents a path page object |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TEXT](#TEXT:kotlin.Int) Represents a text page object |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [UNKNOWN](#UNKNOWN:kotlin.Int) Represents the type of page object that cannot be determined |\n\n| Public methods ||\n|-------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isValidType](#isValidType(kotlin.Int))`(`type:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Checks if the given type is a valid PDF page object type. |\n\nConstants\n---------\n\n### IMAGE\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions) \n\n```\nstatic val IMAGE: Int\n```\n\nRepresents an image page object \n\n Value: 3\n\n### PATH\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions) \n\n```\nstatic val PATH: Int\n```\n\nRepresents a path page object \n\n Value: 2\n\n### TEXT\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions) \n\n```\nstatic val TEXT: Int\n```\n\nRepresents a text page object \n\n Value: 1\n\n### UNKNOWN\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions) \n\n```\nstatic val UNKNOWN: Int\n```\n\nRepresents the type of page object that cannot be determined \n\n Value: 0\n\nPublic methods\n--------------\n\n### isValidType\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions) \n\n```\nstatic fun isValidType(type: Int): Boolean\n```\n\nChecks if the given type is a valid PDF page object type.\n\n| Parameters ||\n|--------|------------------------------------------------------------------------------------------------|\n| `type` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The type to check. |\n\n| Return ||\n|------------------------------------------------------------------------------------|-------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true` if the type is valid, `false` otherwise. |"]]