# PDF Viewer

(part of package '[Servoy PDF Viewer](/reference/servoyextensions/packages/ui-component-packages/servoy-pdf-viewer.md)')\
Extends designtime/SolutionModel: [JSWebComponent](/reference/servoycore/dev-api/solutionmodel/jswebcomponent.md)\
Extends runtime: [RuntimeWebComponent](/reference/servoycore/dev-api/forms/runtimeform/elements/runtimewebcomponent.md)

pdfViewer uses the PDF viewing capabilities built into the browser.\
It is simple and relies on tools already available in the client's browser, offering limited personalization.\
For more customization options, consider using pdfJsViewer.

This is a reference page; many components have detailed usage guides [here](https://docs.servoy.com/guides/develop/application-design/ui-components).

## Properties

### dataProviderID

Bound data provider identifier for the PDF document.\
The dataProviderID can now also be a string, containing the URL of the PDF document.\
By using the dataProviderID as a string, the saving of the PDF document will show the document name.\
For example:\
dataProviderID = "<https://example.com/path/to/document.pdf>"; or plugins.file.createFile(path to your local pdf).getRemoteUrl(); Type: [Dataprovider](/reference/servoy-developer/component_and_service_property_types.md#dataprovider)

***

### documentURL

URL of the document to be displayed. Type: [String](/reference/servoycore/dev-api/js-lib/string.md)

***

### noCache

When true, prevents caching of the PDF document. Type: [Boolean](/reference/servoycore/dev-api/js-lib/boolean.md)

***

### styleClass

CSS style classes applied to the pdfViewer component. Type: [Styleclass](/reference/servoy-developer/component_and_service_property_types.md#styleclass)

***

### tabSeq

Tab sequence order for keyboard navigation. Type: [Tabseq](/reference/servoy-developer/component_and_service_property_types.md#tabseq)

***

### visible

Flag indicating whether the pdfViewer is visible. Type: [Visible](/reference/servoy-developer/component_and_service_property_types.md#visible)

***

## API

### reload()

forces a reload of the current url

***

***


---

# Agent Instructions: 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:

```
GET https://docs.servoy.com/reference/servoyextensions/ui-components/media/pdfviewer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
