---
title: "Crop PDF Android library | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/android/editor/page-manipulation/crop/"
md_url: "https://www.nutrient.io/guides/android/editor/page-manipulation/crop.md"
last_updated: "2026-05-19T08:53:03.328Z"
description: "Nutrient Android SDK lets you crop the pages of a document using the Processor API. To do this, load your document and then configure the parameters."
---

# Cropping PDF pages on Android

Nutrient Android SDK lets you crop the pages of a document using the Processor API. To do this, load your document and then configure the parameters for page cropping on a [`PdfProcessorTask`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.document.processor/-pdf-processor-task/index.html) instance:

### KOTLIN

```kotlin

val task = PdfProcessorTask.fromDocument(document)
// Crop the page to 200×200 pt.
task.setPageBox(0, PdfBox.CROP_BOX, RectF(0f, 0f, 200f, 200f))
val outputFile = File(context.filesDir, "cropped-document.pdf")
PdfProcessor.processDocument(task, outputFile)

```

### JAVA

```java

final PdfProcessorTask task = PdfProcessorTask.fromDocument(document);
// Crop the page to 200×200 pt.
task.setPageBox(0, PdfBox.CROP_BOX, new RectF(0, 0, 200, 200));
final File outputFile = new File(context.getFilesDir(), "cropped-document.pdf");
PdfProcessor.processDocument(task, outputFile);

```

To learn more about how to define the crop box, consult our [coordinate space conversions](https://www.nutrient.io/guides/android/faq/coordinate-spaces.md) guide.

Cropping pages with the Processor API is only available if you have the Document Editor enabled in your license.
---

## Related pages

- [Move or copy PDF pages on Android](/guides/android/editor/page-manipulation/move-or-copy.md)
- [Scale or resize PDFs on Android](/guides/android/editor/page-manipulation/scale-or-resize.md)
- [Removing pages from a PDF on Android](/guides/android/editor/page-manipulation/remove.md)
- [Rotating PDF pages on Android](/guides/android/editor/page-manipulation/rotate.md)

