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

# CustomPrintEventArgs

## Overview

`CustomPrintEventArgs` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `System.EventArgs`.

Event args raised by PdfViewer.CustomPrint.

This class provides 1 method for working with CustomPrintEventArgs objects in .NET programs.
Available methods include: `CustomPrintEventArgs`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `Graphics`, `PageNumber`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `PageNumber` | `int` | Read/Write | Gets or sets the page number. |
| `Graphics` | `System.Drawing.Graphics` | Read/Write | Gets or sets the graphics. |

## Methods

| Signature | Description |
|-----------|-------------|
| `CustomPrintEventArgs()` | Calls CustomPrintEventArgs on this CustomPrintEventArgs instance. |

## See Also

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