# Angular PdfViewer Component

PdfViewer shows PDF documents in the page with pdf.js: pages drawn on demand, selectable and searchable text read by screen readers, links, zoom, rotation, search with highlighted matches, protected files, download and full screen, with an accessible toolbar. pdfjs-dist, an Apache-2.0 optional dependency, is loaded only where a viewer is shown, with nothing loaded from a CDN.

## Basic

PdfViewer shows the document of its src . The pages are drawn on demand as they come near the visible area, at the pixel density of the screen, with a placeholder of their exact size until then, so the scroll bar does not jump. The text of the pages can be selected and copied, and their links followed. The toolbar moves between pages, zooms, rotates, searches, downloads the file and shows it in full screen.

```typescript
import { Component } from '@angular/core';
import { PdfViewerModule } from '@exhaustive-ui/core/pdfviewer';

@Component({
    template: `
        <div class="card">
            <p-pdf-viewer src="/demo/pdf/sample.pdf" style="height: 36rem" />
        </div>
    `,
    standalone: true,
    imports: [PdfViewerModule]
})
export class PdfviewerBasicDemo {
}
```

## Source

The src is the URL of a file, its bytes as an Uint8Array or an ArrayBuffer , or a Blob , such as the File of a file input: the file picked below never leaves the browser. A URL is downloaded by parts when the server accepts range requests, and the first page shows before the end of the download. onLoad gives the number of pages and the information of the document, onError the cause of a failure.

```typescript
import { Component, signal } from '@angular/core';
import { PdfViewerLoadEvent, PdfViewerModule, PdfViewerSource } from '@exhaustive-ui/core/pdfviewer';

@Component({
    template: `
        <div class="card flex flex-col gap-4">
            <div class="flex flex-wrap items-center gap-3">
                <label for="pdf-file" class="font-medium">Open a PDF file from your device</label>
                <input id="pdf-file" type="file" accept="application/pdf,.pdf" (change)="onFile($event)" />
            </div>
            <p class="m-0 text-sm text-muted-color" aria-live="polite">{{ details() }}</p>
            <p-pdf-viewer [src]="source()" (onLoad)="onLoad($event)" style="height: 32rem" />
        </div>
    `,
    standalone: true,
    imports: [PdfViewerModule]
})
export class PdfviewerSourceDemo {
    source = signal<PdfViewerSource>('/demo/pdf/sample.pdf');

    details = signal('');

    onFile(event: Event) {
        const file = (event.target as HTMLInputElement).files?.[0];
        if (file) {
            this.source.set(file);
        }
    }

    onLoad(event: PdfViewerLoadEvent) {
        this.details.set(`${event.info.title ?? 'Untitled document'}: ${event.numPages} pages`);
    }
}
```

## Page and Zoom

page , zoom and rotation are two-way bindable. The page follows the scroll and the toolbar, and setting it scrolls to that page. The zoom is a factor, 1 being the printed size of the page, or a fit mode: auto (the width of the page, up to its printed size, the default), page-width or page-fit ; minZoom and maxZoom bound it. When the zoom or the rotation changes, the same part of the document stays in view.

```typescript
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { ButtonModule } from '@exhaustive-ui/core/button';
import { PdfViewerModule, PdfViewerRotation, PdfViewerZoom } from '@exhaustive-ui/core/pdfviewer';
import { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';

@Component({
    template: `
        <div class="card flex flex-col gap-4">
            <div class="flex flex-wrap items-center gap-3">
                <p-button label="First page" severity="secondary" outlined (onClick)="page = 1" />
                <p-button label="Last page" severity="secondary" outlined (onClick)="page = 3" />
                <span id="pdf-zoom-label" class="font-medium">Zoom</span>
                <p-select-button [options]="zooms" [(ngModel)]="zoom" optionLabel="label" optionValue="value" [allowEmpty]="false" ariaLabelledBy="pdf-zoom-label" />
            </div>
            <p class="m-0 text-sm text-muted-color">Page {{ page }}, zoom {{ zoom }}, rotation {{ rotation }}°</p>
            <p-pdf-viewer src="/demo/pdf/sample.pdf" [(page)]="page" [(zoom)]="zoom" [(rotation)]="rotation" style="height: 32rem" />
        </div>
    `,
    standalone: true,
    imports: [FormsModule, ButtonModule, PdfViewerModule, SelectButtonModule]
})
export class PdfviewerBindingDemo {
    page = 1;

    zoom: PdfViewerZoom = 'page-fit';

    rotation: PdfViewerRotation = 0;

    zooms = [
        { label: 'Fit', value: 'page-fit' },
        { label: 'Width', value: 'page-width' },
        { label: '50%', value: 0.5 },
        { label: '100%', value: 1 }
    ];
}
```

## Toolbar

toolbarItems chooses the controls of the toolbar among pages , zoom , rotate , search , download and fullscreen , and toolbar set to false hides it. The toolbarstart and toolbarend templates add content at both ends of the toolbar, and the toolbar template replaces its content. They receive the viewer, to call its methods such as goToPage() , zoomIn() , download() or openSearch() , and the current page , numPages and scale . Their buttons join the arrow key navigation of the toolbar. There is no print button: printing from the page needs either the PDF reader of the browser in a hidden frame, which several browsers block, or replacing the whole page while printing. The download button hands the file to the PDF reader of the user, which prints it.

```typescript
import { Component } from '@angular/core';
import { PdfViewerModule, PdfViewerToolbarItem } from '@exhaustive-ui/core/pdfviewer';

@Component({
    template: `
        <div class="card">
            <p-pdf-viewer src="/demo/pdf/sample.pdf" [toolbarItems]="items" fileName="paper-boats.pdf" style="height: 32rem">
                <ng-template #toolbarend let-viewer let-page="page" let-numPages="numPages">
                    <button type="button" class="p-pdfviewer-toolbar-button w-auto px-3 text-sm font-medium" [attr.aria-disabled]="page === numPages || null" (click)="viewer.goToPage(numPages)">Go to the end</button>
                </ng-template>
            </p-pdf-viewer>
        </div>
    `,
    standalone: true,
    imports: [PdfViewerModule]
})
export class PdfviewerToolbarDemo {
    items: PdfViewerToolbarItem[] = ['pages', 'zoom', 'download'];
}
```

## Search

The search button, or Ctrl+F (⌘+F on macOS) while the focus is in the viewer, opens the search bar. The matches are highlighted in the text of the pages, the current one stands out, and Enter and Shift+Enter move to the next and the previous match, across pages. The search ignores the case and the accents, so e finds é , unless caseSensitive or matchDiacritics is set. The search(text) , findNext() and findPrevious() methods search from your own controls, and onSearch tells the number of matches.

```typescript
import { Component, signal } from '@angular/core';
import { ButtonModule } from '@exhaustive-ui/core/button';
import { PdfViewerModule, PdfViewerSearchEvent } from '@exhaustive-ui/core/pdfviewer';

@Component({
    template: `
        <div class="card flex flex-col gap-4">
            <div class="flex flex-wrap items-center gap-3">
                <p-button label="Find boat" severity="secondary" outlined (onClick)="viewer.search('boat')" />
                <p-button label="Next match" severity="secondary" outlined (onClick)="viewer.findNext()" />
                <span class="text-sm text-muted-color" aria-live="polite">{{ result() }}</span>
            </div>
            <p-pdf-viewer #viewer src="/demo/pdf/sample.pdf" (onSearch)="onSearch($event)" style="height: 32rem" />
        </div>
    `,
    standalone: true,
    imports: [ButtonModule, PdfViewerModule]
})
export class PdfviewerSearchDemo {
    result = signal('');

    onSearch(event: PdfViewerSearchEvent) {
        this.result.set(event.total ? `Match ${event.current + 1} of ${event.total} for "${event.query}"` : `No match for "${event.query}"`);
    }
}
```

## Password

A protected document asks for its password in the viewer, and a wrong password is announced and asked again. Set the password input to open it without asking, and listen to onPassword to ask in your own way: it tells whether the password is required or incorrect. The password of this sample is exhaustive .

```typescript
import { Component } from '@angular/core';
import { PdfViewerModule } from '@exhaustive-ui/core/pdfviewer';

@Component({
    template: `
        <div class="card">
            <p-pdf-viewer src="/demo/pdf/protected.pdf" style="height: 28rem" />
        </div>
    `,
    standalone: true,
    imports: [PdfViewerModule]
})
export class PdfviewerPasswordDemo {
}
```

## Worker and Assets

Without configuration, pdf.js reads the documents in the main thread, from a lazy chunk of the application: it works everywhere and nothing is loaded from a CDN, but a large or complex file can make the page less responsive while it is opened. To read the documents in a web worker, copy the worker file of pdf.js with the assets of the application and give its URL to providePdfViewer , in the providers of the application or of a route. Each viewer then starts its own worker and stops it when it is destroyed. This documentation does so. The worker can not be found without configuration: the Angular application builder puts the code shared by its chunks in the main bundle, so a worker made from a chunk of pdf.js would start the whole application again. When the worker file can not start, for example with a Content Security Policy without worker-src 'self' , the viewer warns in the console and reads the documents in the main thread. providePdfViewer also sets the URLs of the optional data files of pdf.js, copied the same way from node_modules/pdfjs-dist : cMapUrl for the character maps of some Chinese, Japanese and Korean documents, standardFontDataUrl for the documents that use the standard fonts without embedding them (the fonts of the system are used otherwise) and wasmUrl for JPEG 2000 images. documentOptions passes other options to pdf.js, such as withCredentials or httpHeaders , and loader loads another build of pdf.js.

## Accessibility

Screen Reader The pages are in a scrollable element with the document role, named by the document label, ariaLabel or ariaLabelledBy , which takes the focus so that the keyboard can scroll it. Each page is a group named Page 2 of 12 . The drawing of a page is hidden from assistive technologies, and the text of the page sits over it in a transparent text layer, in the reading order of the file: screen readers read it, the browser search finds it, and it can be selected and copied. The links of the pages are real links, named by the text under them. The text exists for the pages near the visible area, which are drawn as the document scrolls. The controls follow the toolbar pattern : an element with the toolbar role and a label, one tab stop, and arrow keys between the controls. Every button has an accessible name from the labels input. The buttons that can not act stay focusable with aria-disabled , so the focus is not lost when the last page is reached. The fit to width button is a toggle with aria-pressed , and the search button tells with aria-expanded whether the search bar is open. A polite live region announces the loaded document and its number of pages, the current page when it changes, the zoom, and the number of matches of a search. The progress bar has the progressbar role while the document loads, an error is an alert , and the password form has a labelled input, with the wrong password announced. Animations stop when the user prefers reduced motion.

## Pdf Viewer

PdfViewer shows a PDF document in the page with pdf.js: lazily drawn pages with selectable and searchable text, links, zoom, rotation, search,
download and full screen, with an accessible toolbar and keyboard support. pdfjs-dist, an Apache-2.0 optional peer dependency, is loaded in the
browser only when a viewer is shown.

### Props

| Name | Type | Default | Description |
|------|------|---------|-------------|
| dt | Object | undefined | Defines scoped design tokens of the component. |
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
| pt | PdfViewerPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
| src | PdfViewerSource | - | The PDF document: the URL of a file, its bytes as an Uint8Array or an ArrayBuffer, or a Blob such as a File picked by the user. The bytes are copied: the given array can be reused. |
| page | number | 1 | The current page, from 1. Two-way bindable: it follows the scroll. |
| zoom | PdfViewerZoom | 'auto' | The zoom: a factor, 1 being the printed size of the page, or  `auto`  (the width of the page, up to its printed size),  `page-width`  or  `page-fit` . Two-way bindable: the toolbar and the keyboard change it. |
| rotation | PdfViewerRotation | 0 | Rotation of the pages, clockwise, in degrees. Two-way bindable: the rotate button changes it. |
| password | string | - | Password of a protected document. Without it, or when it is wrong, the viewer asks for the password. |
| toolbar | boolean | true | Whether the toolbar is shown. |
| toolbarItems | PdfViewerToolbarItem[] | DEFAULT_TOOLBAR | The controls of the toolbar. |
| textLayer | boolean | true | Whether the text of the pages can be selected, searched and read by screen readers. |
| links | boolean | true | Whether the links of the pages can be followed: links to a page of the document, and to websites in a new tab. |
| minZoom | number | 0.25 | Smallest zoom factor. |
| maxZoom | number | 5 | Largest zoom factor. |
| caseSensitive | boolean | false | Whether the search matches the case. |
| matchDiacritics | boolean | false | Whether the search matches the accents: by default,  `e`  finds  `é` . |
| fileName | string | - | Name of the downloaded file. By default, the name of the File, or the end of the URL. |
| documentOptions | Record<string, unknown> | - | Options of the document passed to the getDocument function of pdf.js, such as  `withCredentials`  or  `httpHeaders` . They extend the documentOptions of providePdfViewer. |
| ariaLabel | string | - | Accessible name of the scrollable element that holds the pages, instead of the document label. |
| ariaLabelledBy | string | - | Identifier of the element that names the document region. |
| labels | Partial<PdfViewerLabels> | - | Texts of the viewer, merged with the default ones. |

### Emits

| Name | Parameters | Description |
|------|------------|-------------|
| onLoad | event: PdfViewerLoadEvent | Callback to invoke when the document is loaded. |
| onError | value: PdfViewerError | Callback to invoke when the document can not be opened. |
| onPageChange | event: PdfViewerPageChangeEvent | Callback to invoke when the current page changes. |
| onPassword | event: PdfViewerPasswordEvent | Callback to invoke when the document asks for a password, or the password is wrong. |
| onProgress | event: PdfViewerProgressEvent | Callback to invoke while the document is downloaded. |
| onSearch | event: PdfViewerSearchEvent | Callback to invoke when a search ends or moves to another match. |

### Templates

| Name | Type | Description |
|------|------|-------------|
| toolbar | TemplateRef<PdfViewerToolbarTemplateContext> | Custom template of the whole toolbar. |
| toolbarstart | TemplateRef<PdfViewerToolbarTemplateContext> | Custom content at the start of the toolbar. |
| toolbarend | TemplateRef<PdfViewerToolbarTemplateContext> | Custom content at the end of the toolbar. |
| error | TemplateRef<PdfViewerErrorTemplateContext> | Custom template of the error message. |

### Methods

| Name | Parameters | Return Type | Description |
|------|------------|-------------|-------------|
| goToPage | page: number | void | Shows a page. |
| previousPage |  | void | Shows the previous page. |
| nextPage |  | void | Shows the next page. |
| zoomIn |  | void | Zooms in to the next step. |
| zoomOut |  | void | Zooms out to the previous step. |
| fitWidth |  | void | Fits the width of the pages in the viewer. |
| rotate | counterclockwise: boolean | void | Rotates the pages by a quarter turn. |
| openSearch |  | void | Opens the search bar and focuses its input. |
| closeSearch |  | void | Closes the search bar and removes the highlights. |
| search | query: string | void | Searches a text in the document, highlights the matches and shows the first one from the current page. |
| findNext |  | void | Shows the next match of the search. |
| findPrevious |  | void | Shows the previous match of the search. |
| download |  | void | Downloads the document. |
| toggleFullscreen |  | void | Shows the viewer in full screen, or leaves full screen. |
| reload |  | void | Loads the document again. |
| submitPassword | password: string | void | Opens a protected document with a password. |

## Pass Through Options

| Name | Type | Description |
|------|------|-------------|
| root | PassThroughOption<HTMLElement, I> | Used to pass attributes to the root's DOM element. |
| toolbar | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the toolbar. |
| toolbarGroup | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the groups of controls of the toolbar. |
| toolbarButton | PassThroughOption<HTMLButtonElement, I> | Used to pass attributes to the buttons of the toolbar and of the search bar. |
| pageInput | PassThroughOption<HTMLInputElement, I> | Used to pass attributes to the page number input. |
| pageCount | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the number of pages next to the page input. |
| zoomSelect | PassThroughOption<HTMLSelectElement, I> | Used to pass attributes to the zoom select. |
| search | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the search bar. |
| searchInput | PassThroughOption<HTMLInputElement, I> | Used to pass attributes to the search input. |
| matchCount | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the number of matches of the search. |
| progress | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the progress bar shown while the document loads. |
| document | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the scrollable region that holds the pages. |
| page | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the pages. |
| placeholder | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the placeholders shown while the pages are drawn. |
| message | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the error, empty and password messages. |
| passwordInput | PassThroughOption<HTMLInputElement, I> | Used to pass attributes to the password input. |
| passwordButton | PassThroughOption<HTMLButtonElement, I> | Used to pass attributes to the button that opens a protected document. |

## Theming

### CSS Classes

| Class | Description |
|-------|-------------|
| p-pdfviewer | Class name of the root element |
| p-pdfviewer-fullscreen | Class name of the root element in full screen |
| p-pdfviewer-toolbar | Class name of the toolbar |
| p-pdfviewer-toolbar-group | Class name of a group of controls of the toolbar |
| p-pdfviewer-toolbar-button | Class name of a button of the toolbar and of the search bar |
| p-pdfviewer-toolbar-icon | Class name of the icon of a button |
| p-pdfviewer-page-input | Class name of the page number input |
| p-pdfviewer-page-count | Class name of the number of pages |
| p-pdfviewer-zoom-select | Class name of the zoom select |
| p-pdfviewer-search | Class name of the search bar |
| p-pdfviewer-search-input | Class name of the search input |
| p-pdfviewer-match-count | Class name of the number of matches |
| p-pdfviewer-progress | Class name of the progress bar |
| p-pdfviewer-document | Class name of the scrollable region of the pages |
| p-pdfviewer-page | Class name of a page |
| p-pdfviewer-placeholder | Class name of the placeholder of a page while it is drawn |
| p-pdfviewer-canvas | Class name of the canvas of a page |
| p-pdfviewer-text-layer | Class name of the text layer of a page |
| p-pdfviewer-link-layer | Class name of the links of a page |
| p-pdfviewer-link | Class name of a link of a page |
| p-pdfviewer-highlight | Class name of a match of the search |
| p-pdfviewer-highlight-current | Class name of the current match of the search |
| p-pdfviewer-message | Class name of the error, empty and password messages |
| p-pdfviewer-password-input | Class name of the password input |
| p-pdfviewer-password-button | Class name of the button that opens a protected document |

### Design Tokens

| Token | CSS Variable | Description |
|-------|--------------|-------------|
| pdfviewer.background | --p-pdfviewer-background | Background of the component |
| pdfviewer.color | --p-pdfviewer-color | Text color |
| pdfviewer.border.color | --p-pdfviewer-border-color | Border color |
| pdfviewer.border.radius | --p-pdfviewer-border-radius | Border radius |
| pdfviewer.height | --p-pdfviewer-height | Height of the viewer |
| pdfviewer.transition.duration | --p-pdfviewer-transition-duration | Duration of the transitions |
| pdfviewer.toolbar.background | --p-pdfviewer-toolbar-background | Background of the toolbar |
| pdfviewer.toolbar.border.color | --p-pdfviewer-toolbar-border-color | Border color below the toolbar |
| pdfviewer.toolbar.padding | --p-pdfviewer-toolbar-padding | Padding of the toolbar |
| pdfviewer.toolbar.gap | --p-pdfviewer-toolbar-gap | Space between the groups of controls |
| pdfviewer.toolbar.group.gap | --p-pdfviewer-toolbar-group-gap | Space between the controls of a group |
| pdfviewer.toolbar.button.color | --p-pdfviewer-toolbar-button-color | Color of the toolbar buttons |
| pdfviewer.toolbar.button.hover.color | --p-pdfviewer-toolbar-button-hover-color | Color of the toolbar buttons on hover |
| pdfviewer.toolbar.button.hover.background | --p-pdfviewer-toolbar-button-hover-background | Background of the toolbar buttons on hover |
| pdfviewer.toolbar.button.pressed.color | --p-pdfviewer-toolbar-button-pressed-color | Color of a pressed toolbar button |
| pdfviewer.toolbar.button.pressed.background | --p-pdfviewer-toolbar-button-pressed-background | Background of a pressed toolbar button |
| pdfviewer.toolbar.button.size | --p-pdfviewer-toolbar-button-size | Width and height of the toolbar buttons |
| pdfviewer.toolbar.button.icon.size | --p-pdfviewer-toolbar-button-icon-size | Size of the icons of the toolbar buttons |
| pdfviewer.toolbar.button.border.radius | --p-pdfviewer-toolbar-button-border-radius | Border radius of the toolbar buttons |
| pdfviewer.toolbar.button.disabled.opacity | --p-pdfviewer-toolbar-button-disabled-opacity | Opacity of the disabled toolbar buttons |
| pdfviewer.toolbar.button.focus.ring.width | --p-pdfviewer-toolbar-button-focus-ring-width | Focus ring width of the toolbar buttons |
| pdfviewer.toolbar.button.focus.ring.style | --p-pdfviewer-toolbar-button-focus-ring-style | Focus ring style of the toolbar buttons |
| pdfviewer.toolbar.button.focus.ring.color | --p-pdfviewer-toolbar-button-focus-ring-color | Focus ring color of the toolbar buttons |
| pdfviewer.toolbar.button.focus.ring.offset | --p-pdfviewer-toolbar-button-focus-ring-offset | Focus ring offset of the toolbar buttons |
| pdfviewer.toolbar.button.focus.ring.shadow | --p-pdfviewer-toolbar-button-focus-ring-shadow | Focus ring shadow of the toolbar buttons |
| pdfviewer.field.background | --p-pdfviewer-field-background | Background of the page input, the zoom select and the search input |
| pdfviewer.field.color | --p-pdfviewer-field-color | Text color of the fields |
| pdfviewer.field.border.color | --p-pdfviewer-field-border-color | Border color of the fields |
| pdfviewer.field.hover.border.color | --p-pdfviewer-field-hover-border-color | Border color of the fields on hover |
| pdfviewer.field.focus.border.color | --p-pdfviewer-field-focus-border-color | Border color of the focused fields |
| pdfviewer.field.placeholder.color | --p-pdfviewer-field-placeholder-color | Placeholder color of the fields |
| pdfviewer.field.border.radius | --p-pdfviewer-field-border-radius | Border radius of the fields |
| pdfviewer.field.padding | --p-pdfviewer-field-padding | Padding of the fields |
| pdfviewer.field.font.size | --p-pdfviewer-field-font-size | Font size of the fields |
| pdfviewer.field.focus.ring.width | --p-pdfviewer-field-focus-ring-width | Focus ring width of the fields |
| pdfviewer.field.focus.ring.style | --p-pdfviewer-field-focus-ring-style | Focus ring style of the fields |
| pdfviewer.field.focus.ring.color | --p-pdfviewer-field-focus-ring-color | Focus ring color of the fields |
| pdfviewer.field.focus.ring.offset | --p-pdfviewer-field-focus-ring-offset | Focus ring offset of the fields |
| pdfviewer.field.focus.ring.shadow | --p-pdfviewer-field-focus-ring-shadow | Focus ring shadow of the fields |
| pdfviewer.page.count.color | --p-pdfviewer-page-count-color | Color of the number of pages |
| pdfviewer.page.count.font.size | --p-pdfviewer-page-count-font-size | Font size of the number of pages |
| pdfviewer.search.background | --p-pdfviewer-search-background | Background of the search bar |
| pdfviewer.search.border.color | --p-pdfviewer-search-border-color | Border color below the search bar |
| pdfviewer.search.padding | --p-pdfviewer-search-padding | Padding of the search bar |
| pdfviewer.search.gap | --p-pdfviewer-search-gap | Space between the controls of the search bar |
| pdfviewer.search.input.width | --p-pdfviewer-search-input-width | Width of the search input |
| pdfviewer.match.count.color | --p-pdfviewer-match-count-color | Color of the number of matches |
| pdfviewer.match.count.font.size | --p-pdfviewer-match-count-font-size | Font size of the number of matches |
| pdfviewer.progress.height | --p-pdfviewer-progress-height | Height of the progress bar |
| pdfviewer.progress.background | --p-pdfviewer-progress-background | Background of the progress bar |
| pdfviewer.progress.value.background | --p-pdfviewer-progress-value-background | Background of the loaded part of the progress bar |
| pdfviewer.document.background | --p-pdfviewer-document-background | Background behind the pages |
| pdfviewer.document.padding | --p-pdfviewer-document-padding | Padding around the pages |
| pdfviewer.document.gap | --p-pdfviewer-document-gap | Space between the pages |
| pdfviewer.page.background | --p-pdfviewer-page-background | Background of the pages, white as the paper of the documents |
| pdfviewer.page.shadow | --p-pdfviewer-page-shadow | Shadow of the pages |
| pdfviewer.placeholder.background | --p-pdfviewer-placeholder-background | Background of the placeholder of a page while it is drawn |
| pdfviewer.placeholder.shine.background | --p-pdfviewer-placeholder-shine-background | Background of the moving shine of the placeholder |
| pdfviewer.highlight.background | --p-pdfviewer-highlight-background | Background of the matches of the search |
| pdfviewer.highlight.current.background | --p-pdfviewer-highlight-current-background | Background of the current match |
| pdfviewer.highlight.current.outline.color | --p-pdfviewer-highlight-current-outline-color | Outline color of the current match |
| pdfviewer.link.hover.background | --p-pdfviewer-link-hover-background | Background of the links of the pages on hover |
| pdfviewer.link.border.radius | --p-pdfviewer-link-border-radius | Border radius of the links of the pages |
| pdfviewer.link.focus.ring.width | --p-pdfviewer-link-focus-ring-width | Focus ring width of the links of the pages |
| pdfviewer.link.focus.ring.style | --p-pdfviewer-link-focus-ring-style | Focus ring style of the links of the pages |
| pdfviewer.link.focus.ring.color | --p-pdfviewer-link-focus-ring-color | Focus ring color of the links of the pages |
| pdfviewer.link.focus.ring.offset | --p-pdfviewer-link-focus-ring-offset | Focus ring offset of the links of the pages |
| pdfviewer.link.focus.ring.shadow | --p-pdfviewer-link-focus-ring-shadow | Focus ring shadow of the links of the pages |
| pdfviewer.message.padding | --p-pdfviewer-message-padding | Padding of the error, empty and password messages |
| pdfviewer.message.gap | --p-pdfviewer-message-gap | Space between the parts of a message |
| pdfviewer.message.max.width | --p-pdfviewer-message-max-width | Largest width of a message |
| pdfviewer.message.color | --p-pdfviewer-message-color | Text color of the messages |
| pdfviewer.message.muted.color | --p-pdfviewer-message-muted-color | Color of the secondary text of the messages |
| pdfviewer.message.icon.size | --p-pdfviewer-message-icon-size | Size of the icon of the messages |
| pdfviewer.message.icon.color | --p-pdfviewer-message-icon-color | Color of the icon of the messages |
| pdfviewer.message.title.font.weight | --p-pdfviewer-message-title-font-weight | Font weight of the title of the messages |
| pdfviewer.message.error.color | --p-pdfviewer-message-error-color | Color of the error icon and of the wrong password text |
| pdfviewer.password.button.background | --p-pdfviewer-password-button-background | Background of the button that opens a protected document |
| pdfviewer.password.button.color | --p-pdfviewer-password-button-color | Text color of the button that opens a protected document |
| pdfviewer.password.button.hover.background | --p-pdfviewer-password-button-hover-background | Background of the button on hover |
| pdfviewer.password.button.border.radius | --p-pdfviewer-password-button-border-radius | Border radius of the button |
| pdfviewer.password.button.padding | --p-pdfviewer-password-button-padding | Padding of the button |
| pdfviewer.password.button.font.weight | --p-pdfviewer-password-button-font-weight | Font weight of the button |
| pdfviewer.password.button.focus.ring.width | --p-pdfviewer-password-button-focus-ring-width | Focus ring width of the button |
| pdfviewer.password.button.focus.ring.style | --p-pdfviewer-password-button-focus-ring-style | Focus ring style of the button |
| pdfviewer.password.button.focus.ring.color | --p-pdfviewer-password-button-focus-ring-color | Focus ring color of the button |
| pdfviewer.password.button.focus.ring.offset | --p-pdfviewer-password-button-focus-ring-offset | Focus ring offset of the button |
| pdfviewer.password.button.focus.ring.shadow | --p-pdfviewer-password-button-focus-ring-shadow | Focus ring shadow of the button |

