Stay organized with collections
Save and categorize content based on your preferences.
Interfaces
PdfDocument |
Represents a PDF document and provides methods to interact with its content.
|
PdfDocument.BitmapSource |
A source for retrieving bitmap representations of PDF pages.
|
PdfLoader |
Provides an abstraction for asynchronously opening PDF documents from a Uri.
|
PdfSandboxHandle |
Represents a handle to manage the PDF processing resources.
|
Classes
PdfDocument.PageInfo |
Represents information about a single page in the PDF document.
|
PdfDocument.PdfPageContent |
Represents the combined text and image content within a single page of a PDF document.
|
PdfDocument.PdfPageLinks |
Represents the links within a single page of a PDF document.
|
PdfPoint |
Represents a point in PDF coordinates, where pageNum indicates a 0-indexed PDF page, and (x , y ) indicates a point in PDF points within the page, with the origin existing at the top left corner of the page.
|
PdfRect |
Represents a rectangle in PDF coordinates, where pageNum indicates a PDF page, and left , top , right , and bottom indicate a rect in PDF points within the page, with the origin existing at the top left corner of the page.
|
SandboxedPdfLoader |
A PdfLoader implementation that opens PDF documents through a sandboxed Android service.
|
Exceptions
PdfPasswordException |
Represents the exception thrown when a password is required or an incorrect password is supplied to a protected document
|
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-07-16 UTC.
[null,null,["Last updated 2025-07-16 UTC."],[],[],null,["# androidx.pdf\n============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/pdf/package-summary \"View this page in Java\")\n\nInterfaces\n----------\n\n|-------------------------------------------------------------------------------------|------------------------------------------------------------------------------|\n| [PdfDocument](/reference/kotlin/androidx/pdf/PdfDocument) | Represents a PDF document and provides methods to interact with its content. |\n| [PdfDocument.BitmapSource](/reference/kotlin/androidx/pdf/PdfDocument.BitmapSource) | A source for retrieving bitmap representations of PDF pages. |\n| [PdfLoader](/reference/kotlin/androidx/pdf/PdfLoader) | Provides an abstraction for asynchronously opening PDF documents from a Uri. |\n| [PdfSandboxHandle](/reference/kotlin/androidx/pdf/PdfSandboxHandle) | Represents a handle to manage the PDF processing resources. |\n\nClasses\n-------\n\n|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [PdfDocument.PageInfo](/reference/kotlin/androidx/pdf/PdfDocument.PageInfo) | Represents information about a single page in the PDF document. |\n| [PdfDocument.PdfPageContent](/reference/kotlin/androidx/pdf/PdfDocument.PdfPageContent) | Represents the combined text and image content within a single page of a PDF document. |\n| [PdfDocument.PdfPageLinks](/reference/kotlin/androidx/pdf/PdfDocument.PdfPageLinks) | Represents the links within a single page of a PDF document. |\n| [PdfPoint](/reference/kotlin/androidx/pdf/PdfPoint) | Represents a point in PDF coordinates, where [pageNum](/reference/kotlin/androidx/pdf/PdfPoint#pageNum()) indicates a 0-indexed PDF page, and ([x](/reference/kotlin/androidx/pdf/PdfPoint#x()), [y](/reference/kotlin/androidx/pdf/PdfPoint#y())) indicates a point in PDF points within the page, with the origin existing at the top left corner of the page. |\n| [PdfRect](/reference/kotlin/androidx/pdf/PdfRect) | Represents a rectangle in PDF coordinates, where [pageNum](/reference/kotlin/androidx/pdf/PdfRect#pageNum()) indicates a PDF page, and [left](/reference/kotlin/androidx/pdf/PdfRect#left()), [top](/reference/kotlin/androidx/pdf/PdfRect#top()), [right](/reference/kotlin/androidx/pdf/PdfRect#right()), and [bottom](/reference/kotlin/androidx/pdf/PdfRect#bottom()) indicate a rect in PDF points within the page, with the origin existing at the top left corner of the page. |\n| [SandboxedPdfLoader](/reference/kotlin/androidx/pdf/SandboxedPdfLoader) | A [PdfLoader](/reference/kotlin/androidx/pdf/PdfLoader) implementation that opens PDF documents through a sandboxed Android service. |\n\nExceptions\n----------\n\n|-----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| [PdfPasswordException](/reference/kotlin/androidx/pdf/PdfPasswordException) | Represents the exception thrown when a password is required or an incorrect password is supplied to a protected document |"]]