---
title: "Easy PDF parsing for Android applications"
canonical_url: "https://www.nutrient.io/guides/android/extraction/parse-content/"
md_url: "https://www.nutrient.io/guides/android/extraction/parse-content.md"
last_updated: "2026-05-21T20:35:00.909Z"
description: "Learn how to simplify PDF text extraction on Android to enhance your app's capabilities with easy-to-use APIs."
---

# Effortlessly parse PDF content on Android

Parsing text and other content from a PDF can be a complex task, so we offer several abstractions to make this simpler. In a PDF, the text usually consists of glyphs that are positioned at absolute coordinates without any relative association with neighboring glyphs. Nutrient heuristically splits these glyphs up into words and blocks of the text. Our user interface leverages this information to allow users to select and annotate text. You can read more about this in our [text selection](https://www.nutrient.io/guides/android/features/text-selection.md) guide.

## Text parsing

[`PdfDocument`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.document/-pdf-document/index.html) offers methods that allow you to access text from a given PDF page. The text parsing API ensures that the text extracted from a PDF follows any logical structure defined in the PDF (see section 14.7 of the [PDF specification](https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf)), thereby enabling support for correctly handling different text-writing directions. Using [`PdfDocument#getPageText()`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.document/-pdf-document/get-page-text.html) as shown below allows you to get all the text found on a single page:

### KOTLIN

```kotlin

val document: PdfDocument =...
val pageText = document.getPageText(0)

```

### JAVA

```java

PdfDocument document =...
String pageText = document.getPageText(0);

```
---

## Related pages

- [PDF extraction library for Android](/guides/android/extraction.md)
- [Extract pages from PDFs on Android](/guides/android/extraction/page-extraction.md)
- [Extract metadata from PDFs on Android](/guides/android/extraction/metadata.md)
- [Easily extract text from PDFs on Android](/guides/android/features/text-extraction.md)
- [Extract the text position from PDFs on Android](/guides/android/extraction/text-position.md)
- [Extract selected text from PDFs on Android](/guides/android/extraction/selected-text.md)

