# PageRange Class

> Specifies a range of pages in a document (page numbers begin with 0).

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PageRange
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class PageRange
```

**Namespace:** `com::datalogics::PDFL`

## Description

Specifies a range of pages in a document (page numbers begin with 0).

**Referenced by:** [`PageRangeVector`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PageRangeVector.md), [`PrintParams`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PrintParams.md), [`WatermarkParams`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/WatermarkParams.md)

## Constructors

### PageRange

```java
com.datalogics.PDFL.PageRange.PageRange()
```

*constructor*

Specifies a range of pages in a document (page numbers begin with 0).

### PageRange

```java
com.datalogics.PDFL.PageRange.PageRange(int argStartPage, int argEndPage, PageSpec argPageSpec)
```

*constructor*

**Parameters**

- `argStartPage` (`int`)
- `argEndPage` (`int`)
- `argPageSpec` (`PageSpec`)

Specifies a range of pages in a document (page numbers begin with 0).

### PageRange

```java
com.datalogics.PDFL.PageRange.PageRange(int argStartPage, int argEndPage, PageSpec argPageSpec, int argPagePaperSource)
```

*constructor*

**Parameters**

- `argStartPage` (`int`)
- `argEndPage` (`int`)
- `argPageSpec` (`PageSpec`)
- `argPagePaperSource` (`int`)

Specifies a range of pages in a document (page numbers begin with 0).

## Methods

### delete

```java
synchronized void com.datalogics.PDFL.PageRange.delete(Boolean disposing)
```

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

```java
synchronized void com.datalogics.PDFL.PageRange.delete()
```

**Returns:** `synchronized void`

### finalize

```java
void com.datalogics.PDFL.PageRange.finalize()
```

*protected*

**Returns:** `void`

### getEndPage

```java
int com.datalogics.PDFL.PageRange.getEndPage()
```

**Returns:** `int`

The ending page number.

### getPagePaperSource

```java
short com.datalogics.PDFL.PageRange.getPagePaperSource()
```

**Returns:** `short`

The paper source of a printer device for a particular PageRange. NOTE: This property is only relevant if printing and only on Windows. A value of 0 indicates this setting has no effect.

### getPageSpec

```java
PageSpec com.datalogics.PDFL.PageRange.getPageSpec()
```

**Returns:** `PageSpec`

### getStartPage

```java
int com.datalogics.PDFL.PageRange.getStartPage()
```

**Returns:** `int`

The starting page number.

### setEndPage

```java
void com.datalogics.PDFL.PageRange.setEndPage(int value)
```

**Parameters**

- `value` (`int`)

**Returns:** `void`

The ending page number.

### setPagePaperSource

```java
void com.datalogics.PDFL.PageRange.setPagePaperSource(short value)
```

**Parameters**

- `value` (`short`)

**Returns:** `void`

The paper source of a printer device for a particular PageRange. NOTE: This property is only relevant if printing and only on Windows. A value of 0 indicates this setting has no effect.

### setPageSpec

```java
void com.datalogics.PDFL.PageRange.setPageSpec(PageSpec value)
```

**Parameters**

- `value` (`PageSpec`)

**Returns:** `void`

### setStartPage

```java
void com.datalogics.PDFL.PageRange.setStartPage(int value)
```

**Parameters**

- `value` (`int`)

**Returns:** `void`

The starting page number.
