# PdfReference class

> A reference to an indirect object. References belong to one document: obtain them from AddObject or from that document's objects, and resolve them with...

Namespace: [PdfNetStack.Objects](https://www.jadev-corp.com/api/pdfnetstack-objects/)  
Assembly: PdfNetStack.dll  
Package: `PdfNetStack`

A reference to an indirect object. References belong to one document: obtain them from
[AddObject](https://www.jadev-corp.com/api/pdfnetstack/pdfdocument/#PdfNetStack_PdfDocument_AddObject_PdfNetStack_Objects_PdfObject_) or from that document's objects, and resolve
them with [Resolve](https://www.jadev-corp.com/api/pdfnetstack/pdfdocument/#PdfNetStack_PdfDocument_Resolve_PdfNetStack_Objects_PdfObject_).

```csharp
public sealed class PdfReference : PdfObject
```

**Inheritance**

[object](https://learn.microsoft.com/dotnet/api/system.object) ← 
[PdfObject](https://www.jadev-corp.com/api/pdfnetstack-objects/pdfobject/) ← 
[PdfReference](https://www.jadev-corp.com/api/pdfnetstack-objects/pdfreference/)

## Properties

### <a id="PdfNetStack_Objects_PdfReference_Generation"></a> Generation

Generation number.

```csharp
public int Generation { get; }
```

#### Property Value

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="PdfNetStack_Objects_PdfReference_Number"></a> Number

Object number.

```csharp
public int Number { get; }
```

#### Property Value

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

## Methods

### <a id="PdfNetStack_Objects_PdfReference_ToString"></a> ToString\(\)

Returns a string that represents the current object.

```csharp
public override string ToString()
```

#### Returns

 [string](https://learn.microsoft.com/dotnet/api/system.string)

A string that represents the current object.

## Used in

- [Low level PDF objects in C#](https://www.jadev-corp.com/guides/low-level-objects/)

Source: https://www.jadev-corp.com/pdfnetstack/api/pdfnetstack-objects/pdfreference/
