---
title: "Adjusting resolution for fast PDF viewer on Android | Nutrient"
canonical_url: "https://www.nutrient.io/guides/android/features/low-res-render-api/"
md_url: "https://www.nutrient.io/guides/android/features/low-res-render-api.md"
last_updated: "2026-05-26T07:02:01.621Z"
description: "Adjust resolution settings for fast PDF viewing on Android. Learn to implement low-resolution strategies and customize render pixel counts for optimal performance."
---

# Customize the rendering resolution in our Android viewer

To achieve quick and fluid page browsing in a document, `PdfFragment` will first render and draw low-resolution images for each page that is about to be displayed before switching to a high-resolution rendering for visible pages. The render settings (i.e. the resolution of low-resolution images) are chosen using a smart low-resolution strategy based on [Device Year Class](https://github.com/facebook/device-year-class), balancing page render times, quality, and memory performance.

The default behavior relies on optimized resolutions to allow a better match with a device’s specifications, but if your use case requires a specific low resolution, you can override our automatic low-resolution strategy.

## Optimized resolution

With Nutrient Android SDK 4.3, we introduced the optimized resolution strategy by default. With Nutrient Android SDK 6.6, we removed the [DeviceYearClass](https://github.com/facebook/device-year-class) dependency, which was deprecated, and we opted for an in-house implementation that doesn’t require a third-party library, in order to optimize the default configuration. For more information on this, have a look at our [migration guide](https://www.nutrient.io/guides/android/migration-guides/pspdfkit-6-6-migration-guide.md).

## Fixed resolution

To exclude our optimized resolution algorithm,
[`PdfConfiguration.Builder#setFixedLowResRenderPixelCount()`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.configuration/-pdf-configuration/fixed-low-res-render-pixel-count.html) and [`PdfConfiguration#getFixedLowResRenderPixelCount()`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.configuration/-pdf-configuration/get-fixed-low-res-render-pixel-count.html) can be used to set and retrieve a fixed low-resolution render pixel count:

### KOTLIN

```kotlin

val configuration = PdfConfiguration.Builder().setFixedLowResRenderPixelCount(1280 * 1280).build()

```

### JAVA

```java

final PdfConfiguration configuration = new PdfConfiguration.Builder().setFixedLowResRenderPixelCount(1280 * 1280).build();

```

In this way, the same value (`1280 * 1280`) will be used for all devices.

**⚠️ Important:** Misuse of the low-resolution render pixel count may lead to poor performance and/or out-of-memory exceptions on older devices. Make sure to test the new value on a wide range of devices.
---

## Related pages

- [Rendering annotations on Android](/guides/android/annotations/rendering-annotations.md)
- [Coordinate space conversion](/guides/android/faq/coordinate-spaces.md)
- [Customize PDF fonts for Android applications](/guides/android/features/custom-fonts.md)
- [PDF renderer library for Android](/guides/android/features/rendering-pdf-pages.md)
- [Drawing content above displayed documents](/guides/android/features/drawable-api.md)
- [Render PDF forms on Android](/guides/android/viewer/rendering/pdf-forms.md)

