# PDF viewer

## Overview

The component displays an embedded PDF file from a URL or a Base64-encoded file.

<figure><img src="https://837703843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUX6zPRMFFK0yrTghj7cY%2Fuploads%2FPLiVBRdAkl9XCUMGwI1Y%2FCleanShot%202025-08-14%20at%2012.06.01%402x-min.png?alt=media&#x26;token=a3a5f459-6631-4f7f-9a0b-3e020b898c19" alt=""><figcaption></figcaption></figure>

### Properties

<table><thead><tr><th width="139.40625">Name</th><th width="132.921875">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>name</code></td><td><code>string</code></td><td>Component name</td></tr></tbody></table>

### Methods

<table><thead><tr><th width="94.61328125">Name</th><th width="138.47265625">Parameters</th><th width="99.66796875">Returns</th><th>Description</th></tr></thead><tbody><tr><td><code>setSrc</code></td><td><code>url: string</code></td><td><code>void</code></td><td>Set component <code>src</code> setting</td></tr></tbody></table>

### Triggers

<table><thead><tr><th width="139.30859375">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>On Init</strong></td><td>Triggered when the component is initialized</td></tr></tbody></table>
