# PdfStylingOptions

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

*** ** * ** ***


```
public final class PdfStylingOptions
```

<br />

*** ** * ** ***

Represents styling configurations for views integrated by `https://developer.android.com/reference/androidx/pdf/viewer/fragment/PdfViewerFragment`.

**Note:** Custom drawables within the style resource must define their width and height for
proper rendering.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/pdf/viewer/fragment/PdfStylingOptions#PdfStylingOptions(kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/StyleRes int containerStyleResId)` |

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/pdf/viewer/fragment/PdfStylingOptions#getContainerStyleResId()()` The style identifier to apply to the PDF view. |

## Public constructors

### PdfStylingOptions

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

```
public PdfStylingOptions(@StyleRes int containerStyleResId)
```

## Public methods

### getContainerStyleResId

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

```
public final int getContainerStyleResId()
```

The style identifier to apply to the PDF view.