Stay organized with collections
Save and categorize content based on your preferences.
PageInfo
class PageInfo
This class represents meta-data that describes a PDF Page
.
Summary
Nested classes |
|
Builder for creating a PageInfo .
|
Public methods |
Rect! |
Get the content rectangle in PostScript points (1/72th of an inch).
|
Int |
Gets the page height in PostScript points (1/72th of an inch).
|
Int |
Gets the page number.
|
Int |
Gets the page width in PostScript points (1/72th of an inch).
|
Public methods
getContentRect
fun getContentRect(): Rect!
Get the content rectangle in PostScript points (1/72th of an inch). This is the area that contains the page content and is relative to the page top left.
Return |
Rect! |
The content rectangle. |
getPageHeight
fun getPageHeight(): Int
Gets the page height in PostScript points (1/72th of an inch).
Return |
Int |
The page height. |
getPageNumber
fun getPageNumber(): Int
Gets the page number.
Return |
Int |
The page number. |
getPageWidth
fun getPageWidth(): Int
Gets the page width in PostScript points (1/72th of an inch).
Return |
Int |
The page width. |
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-02-10 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-02-10 UTC."],[],[],null,["# PdfDocument.PageInfo\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPageInfo\n========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/pdf/PdfDocument.PageInfo \"View this page in Java\") \n\n```\nclass PageInfo\n```\n\n|---|------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.graphics.pdf.PdfDocument.PageInfo](#) |\n\nThis class represents meta-data that describes a PDF [Page](/reference/kotlin/android/graphics/pdf/PdfDocument.Page).\n\nSummary\n-------\n\n| Nested classes ||\n|---|----------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/reference/kotlin/android/graphics/pdf/PdfDocument.PageInfo.Builder) Builder for creating a [PageInfo](#). |\n\n| Public methods ||\n|----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|\n| [Rect](../Rect.html#)! | [getContentRect](#getContentRect())`()` Get the content rectangle in PostScript points (1/72th of an inch). |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getPageHeight](#getPageHeight())`()` Gets the page height in PostScript points (1/72th of an inch). |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getPageNumber](#getPageNumber())`()` Gets the page number. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getPageWidth](#getPageWidth())`()` Gets the page width in PostScript points (1/72th of an inch). |\n\nPublic methods\n--------------\n\n### getContentRect\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getContentRect(): Rect!\n```\n\nGet the content rectangle in PostScript points (1/72th of an inch). This is the area that contains the page content and is relative to the page top left.\n\n| Return ||\n|------------------------|------------------------|\n| [Rect](../Rect.html#)! | The content rectangle. |\n\n### getPageHeight\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getPageHeight(): Int\n```\n\nGets the page height in PostScript points (1/72th of an inch).\n\n| Return ||\n|----------------------------------------------------------------------------|------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | The page height. |\n\n### getPageNumber\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getPageNumber(): Int\n```\n\nGets the page number.\n\n| Return ||\n|----------------------------------------------------------------------------|------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | The page number. |\n\n### getPageWidth\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getPageWidth(): Int\n```\n\nGets the page width in PostScript points (1/72th of an inch).\n\n| Return ||\n|----------------------------------------------------------------------------|-----------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | The page width. |"]]