**Inheritance:**
java.lang.Object, com.aspose.pdf.printing.PrintPaperSource

```
public class PrintPaperSource extends Object
```

Specifies the paper tray from which the printer gets paper.

## Constructors

| Constructor | Description |
| --- | --- |
| [PrintPaperSource](#PrintPaperSource--) | Initializes a new instance of the PaperSource class. |
| [PrintPaperSource](#PrintPaperSource-java.lang.String-int-) | Initializes a new instance of the PaperSource class. |

## Methods

| Method | Description |
| --- | --- |
| [getKind](#getKind--) | Gets the paper source. |
| [getRawKind](#getRawKind--) | Gets or sets the integer representing one of the PaperSourceKind values or a custom value. |
| [getSourceName](#getSourceName--) | Gets or sets the name of the paper source. |
| [setRawKind](#setRawKind-int-) | Gets or sets the integer representing one of the PaperSourceKind values or a custom value. |
| [setSourceName](#setSourceName-java.lang.String-) | Gets or sets the name of the paper source. |
| [toString](#toString--) | Infrastructure. Provides information about the PrintPaperSource in string form. |

### PrintPaperSource {#PrintPaperSource--}
```
public PrintPaperSource()
```

Initializes a new instance of the PaperSource class.

### PrintPaperSource {#PrintPaperSource-java.lang.String-int-}
Initializes a new instance of the PaperSource class.

### getKind {#getKind--}
```
public int getKind()
```

Gets the paper source.

**Returns:**
int value

### getRawKind {#getRawKind--}
```
public int getRawKind()
```

Gets or sets the integer representing one of the PaperSourceKind values or a custom value.

**Returns:**
int value

### getSourceName {#getSourceName--}
```
public String getSourceName()
```

Gets or sets the name of the paper source.

**Returns:**
String value

### setRawKind {#setRawKind-int-}
```
public void setRawKind(int value)
```

Gets or sets the integer representing one of the PaperSourceKind values or a custom value.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | int value |

### setSourceName {#setSourceName-java.lang.String-}
Gets or sets the name of the paper source.

### toString {#toString--}
```
public String toString()
```

Infrastructure. Provides information about the PrintPaperSource in string form.

**Returns:**
String value
