> 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). Agents can also search and read this documentation through its [MCP server](https://docs.wem.io/platform/~gitbook/mcp).

# 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](https://1449034948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L_NpOsk0sjotPXNy29Q%2Fuploads%2FUiCMgvIY1ObNSDhR8blW%2Fimage.png?alt=media\&token=e7db970e-3749-4e6d-9a26-9beb2b9d9b8d)

![Image 2: Pdf viewer](https://1449034948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L_NpOsk0sjotPXNy29Q%2Fuploads%2F60lXGcmdnrFv3PzjO0GP%2Fimage.png?alt=media\&token=a6153125-d5ba-4384-9bc7-8d6f9584e466)

**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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
