---
title: "Resize PDF on Android | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/android/editor/page-manipulation/scale-or-resize/"
md_url: "https://www.nutrient.io/guides/android/editor/page-manipulation/scale-or-resize.md"
last_updated: "2026-05-30T02:20:01.157Z"
description: "Nutrient Android SDK’s PdfProcessor combined with a PdfProcessorTask can be used to scale pages of a document:."
---

# Scale or resize PDFs on Android

Nutrient Android SDK’s [`PdfProcessor`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.document.processor/-pdf-processor/index.html) combined with a [`PdfProcessorTask`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.document.processor/-pdf-processor-task/index.html) can be used to scale pages of a document:

### KOTLIN

```kotlin

val task = PdfProcessorTask.fromDocument(document)
// Scale the first page down to half its size.
val pageSize = document.getPageSize(0)
val halfSize = Size(pageSize.width / 2, pageSize.height / 2)
task.resizePage(0, halfSize)
// Output to a new document.
val outputFile = File(context.filesDir, "outputDocument.pdf")
PdfProcessor.processDocument(task, outputFile)

```

### JAVA

```java

final PdfProcessorTask task = PdfProcessorTask.fromDocument(document);
// Scale the first page down to half its size.
final Size pageSize = document.getPageSize(0);
final Size halfSize = new Size(pageSize.width / 2, pageSize.height / 2);
task.resizePage(0, halfSize)
// Output to a new document.
final File outputFile = new File(context.getFilesDir(), "outputDocument.pdf");
PdfProcessor.processDocument(task, outputFile);

```

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

Resizing pages with the `PdfProcessor` is only available if you have the Document Editor enabled in your license.
---

## Related pages

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

