---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/DocumentDevice
---

# DocumentDevice

## Overview

`DocumentDevice` is a class in Aspose.PDF FOSS for .NET.

Abstract base for whole-document rendering devices.

This class provides 4 methods for working with DocumentDevice objects in .NET programs.
Available methods include: `Process`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.

## Methods

| Signature | Description |
|-----------|-------------|
| `Process(document: Document, output: Stream)` | Render every page of document to output. |
| `Process(document: Document, outputFileName: string)` | Render every page of document to outputFileName. |
| `Process(document: Document, fromPage: int, toPage: int, output: Stream)` | Render fromPage..toPage (1-based inclusive) of document to output. |
| `Process(document: Document, fromPage: int, toPage: int, outputFileName: string)` | Render fromPage..toPage (1-based inclusive) of document to outputFileName. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)