> For the complete documentation index, see [llms.txt](https://docs.nimbalyst.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nimbalyst.com/visual-editors-powered-by-ai/pdf-viewer.md).

# PDF Viewer

Nimbalyst includes a built-in PDF viewer that lets you open and view PDF documents directly in the editor. PDFs open in their own tabs alongside your other files, with support for smooth scrolling, zoom controls, and text selection.

### Opening PDFs

Click any `.pdf` file in your file tree to open it. The PDF loads in a dedicated viewer tab with a toolbar at the top.

PDFs are read-only in Nimbalyst. To edit a PDF, use a dedicated PDF editor.

### Viewing Controls

#### Toolbar

The toolbar appears at the top of the PDF viewer and shows:

* **Page count**: Total number of pages (e.g., "10 pages")
* **Zoom controls**: Plus/minus buttons and current zoom percentage
* **Fit button**: Toggle fit-to-width mode

#### Scrolling

Scroll through the PDF using:

* Mouse wheel or trackpad
* Scroll bars
* Page Up / Page Down keys

Pages flow continuously like a modern PDF reader. Large documents (100+ pages) remain smooth thanks to efficient rendering.

### Text Selection

You can select and copy text from PDFs:

1. Click and drag to select text on any page
2. Selected text is highlighted
3. Press **Cmd/Ctrl + C** to copy

Text selection works like any standard PDF reader.

### Theme Support

The PDF viewer adapts to your Nimbalyst theme:

* **Light theme**: Standard white pages with subtle shadows
* **Dark theme**: White pages with enhanced shadows for contrast
* Toolbar and controls match your theme colors


---

# 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.nimbalyst.com/visual-editors-powered-by-ai/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.
