> For the complete documentation index, see [llms.txt](https://docs.jetadmin.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jetadmin.io/classic-app-builder/design-and-structure/components/file-pdf-viewer.md).

# File PDF Viewer

An embedded PDF file from a URL. It supports automatic scaling the content to fit either the width or height of the component.

<figure><img src="https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2F7qJemVDSyErUYJY5sGSg%2Fimage.png?alt=media&amp;token=91284617-9d62-48df-a17c-34927ce500d0" alt=""><figcaption></figcaption></figure>

1. Drag-and-drop **File Viewer** from Component Library in Visual Builder.

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2F8xbc55r2qFja6zOzvQnA%2Fimage.png?alt=media\&token=4f1308cd-3b4a-4d90-97e1-65cb6de643b6)

<figure><img src="https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2F42Jfnjo0oVUtMvihXGhk%2Ffile_viwer.gif?alt=media&amp;token=4c0687dd-92e9-45eb-bc29-eb854c0ce9d5" alt=""><figcaption></figcaption></figure>

There are two Viewer types:&#x20;

* Browser built-in. Faster, works with non-public URLs
* Google File Viewer. More supported formats

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2F93RYoDnM83iaeiBoi6pY%2Fimage.png?alt=media\&token=a7eac3ba-44f5-49e9-bd12-9ca10282fb63)


---

# 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.jetadmin.io/classic-app-builder/design-and-structure/components/file-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.
