> For the complete documentation index, see [llms.txt](https://docs.wem.io/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wem.io/platform/wemtipsandtricks/widgets/document-widgets/pdf-viewer.md).

# PDF Viewer

### It allows to view, print, search and copy text from PDF documents. This Wem-embedded widget performs all these functions.

![Image 1: Pdf Viewer](/files/LcVIpQjsntlD9lOJIufo)

![Image 2: Pdf viewer](/files/lml5qoxBhtuA8nnGWwzI)

**Properties of PDF Viewer**

<table data-header-hidden><thead><tr><th></th><th width="116"></th><th width="158"></th><th></th></tr></thead><tbody><tr><td><strong>Property Name</strong></td><td><strong>Data type</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>Type of input</td><td>Text</td><td>Dropdown</td><td>To select the type of file. (File field, library field, URL to file).</td></tr><tr><td>File field</td><td>File</td><td>Expression</td><td>To set the file in the field.</td></tr><tr><td>Library file</td><td>File</td><td>PDF</td><td>To set the library file in the field.</td></tr><tr><td>URL to file</td><td>Text</td><td>Expression</td><td>To set URL into the file.</td></tr><tr><td>Initial zoom</td><td>Number</td><td>Expression</td><td>Set the initial zoom for the pdf viewer.</td></tr><tr><td>Border width</td><td>Number</td><td>Expression</td><td>Set border width for the pdf viewer.</td></tr><tr><td>Height</td><td>Number</td><td>Expression</td><td>Set the height of the PDF Viewer canvas in number of pixels. Leave empty for 100% width.</td></tr><tr><td>Width</td><td>Number</td><td>Expression</td><td>Set the width of the PDF Viewer canvas in number of pixels. Default is 400px.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.wem.io/platform/wemtipsandtricks/widgets/document-widgets/pdf-viewer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
