## SendTo(DocumentDevice, Stream) {#sendto_2}

Sends the whole document to the document device for processing.

```csharp
public void SendTo(DocumentDevice device, Stream output)
```

| Parameter | Type | Description |
| --- | --- | --- |
| device | DocumentDevice | Document device which is used to process the document. |
| output | Stream | Output stream contains the results of the document processing with given device. |

### See Also

* class [DocumentDevice](../../../aspose.pdf.devices/documentdevice/)
* class [Document](../)
* namespace [Aspose.Pdf](../../../aspose.pdf/)
* assembly [Aspose.PDF](../../../)

---

## SendTo(DocumentDevice, int, int, Stream) {#sendto}

Sends the certain pages of the document to the document device for processing.

```csharp
public void SendTo(DocumentDevice device, int fromPage, int toPage, Stream output)
```

| Parameter | Type | Description |
| --- | --- | --- |
| device | DocumentDevice | Document device which is used to process the document. |
| fromPage | Int32 | The first page for processing. |
| toPage | Int32 | The last page for processing. |
| output | Stream | Output stream contains the results of the document pages processing with given device. |

### See Also

* class [DocumentDevice](../../../aspose.pdf.devices/documentdevice/)
* class [Document](../)
* namespace [Aspose.Pdf](../../../aspose.pdf/)
* assembly [Aspose.PDF](../../../)

---

## SendTo(DocumentDevice, string) {#sendto_3}

Sends the whole document to the document device for processing.

```csharp
public void SendTo(DocumentDevice device, string outputFileName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| device | DocumentDevice | Document device which is used to process the document. |
| outputFileName | String | Output file name with the results of processing. |

### See Also

* class [DocumentDevice](../../../aspose.pdf.devices/documentdevice/)
* class [Document](../)
* namespace [Aspose.Pdf](../../../aspose.pdf/)
* assembly [Aspose.PDF](../../../)

---

## SendTo(DocumentDevice, int, int, string) {#sendto_1}

Sends the whole document to the document device for processing.

```csharp
public void SendTo(DocumentDevice device, int fromPage, int toPage, string outputFileName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| device | DocumentDevice | Document device which is used to process the document. |
| fromPage | Int32 | The first page for processing. |
| toPage | Int32 | The last page for processing. |
| outputFileName | String | Output file name with the results of processing. |

### See Also

* class [DocumentDevice](../../../aspose.pdf.devices/documentdevice/)
* class [Document](../)
* namespace [Aspose.Pdf](../../../aspose.pdf/)
* assembly [Aspose.PDF](../../../)


