# PdfWriteHandle

Artifact: [androidx.pdf:pdf-core](https://developer.android.com/jetpack/androidx/releases/pdf) [View Source](https://cs.android.com/search?q=file:androidx/pdf/PdfWriteHandle.kt+class:androidx.pdf.PdfWriteHandle) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
public interface PdfWriteHandle extends Closeable
```

<br />

*** ** * ** ***

Represents a handle for writing the contents of a PDF to a destination.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/pdf/PdfWriteHandle#writeTo(android.os.ParcelFileDescriptor)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/os/ParcelFileDescriptor.html destination)` Writes the contents of the PDF to `https://developer.android.com/reference/androidx/pdf/PdfWriteHandle#writeTo(android.os.ParcelFileDescriptor)`. |

### Inherited methods

From [java.io.Closeable](https://developer.android.com/reference/java/io/Closeable.html) `abstract void` `https://developer.android.com/reference/java/io/Closeable.html#close()()`

## Public methods

### writeTo

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
abstract void writeTo(@NonNull ParcelFileDescriptor destination)
```

Writes the contents of the PDF to `https://developer.android.com/reference/androidx/pdf/PdfWriteHandle#writeTo(android.os.ParcelFileDescriptor)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/os/ParcelFileDescriptor.html destination` | The `https://developer.android.com/reference/android/os/ParcelFileDescriptor.html` to write to. The caller is responsible for closing `https://developer.android.com/reference/androidx/pdf/PdfWriteHandle#writeTo(android.os.ParcelFileDescriptor)`. |