New to Kendo UI for Vue? Start a free 30-day trial

Represents the props of the PDFViewer component.

Definition

Package:@progress/kendo-vue-pdf-viewer

Properties

arrayBuffer?

ArrayBuffer

Sets the PDF file to load as an ArrayBuffer.

Example:
vue
<PDFViewer :array-buffer="pdfBuffer" />

Sets a custom template for the content. The template receives the default content as defaultRendering.

Example:
vue
<PDFViewer :content="'myContent'" />

data?

string

Sets the PDF file to load as a Base64-encoded string.

Example:
vue
<PDFViewer :data="base64Pdf" />

Sets the initial zoom level of the PDFViewer.

Default:

1.25

Example:
vue
<PDFViewer :default-zoom="1" />

dir?

string

Sets the direction of the PDFViewer content. The available values are ltr and rtl.

Example:
vue
<PDFViewer :dir="'rtl'" />

Sets a custom template for the loader. The template receives the default loader as defaultRendering.

Example:
vue
<PDFViewer :loader="'myLoader'" />

maxZoom?

number

Sets the maximum zoom level.

Default:

4

Example:
vue
<PDFViewer :max-zoom="3" />

minZoom?

number

Sets the minimum zoom level.

Default:

0.5

Example:
vue
<PDFViewer :min-zoom="0.25" />

Sets the name of the file that the PDFViewer saves when you click Download.

Example:
vue
<PDFViewer :save-file-name="'invoice.pdf'" />

saveOptions?

SaveOptions

Sets the options that the PDFViewer uses when it saves the file.

Example:
vue
<PDFViewer :save-options="{ forceProxy: true, proxyURL: '/api/save' }" />

style?

Record​<string, string>

Sets the inline styles of the PDFViewer.

Example:
vue
<PDFViewer :style="{ height: '600px' }" />

Sets a custom template for the toolbar. The template receives the default toolbar as defaultRendering.

Example:
vue
<PDFViewer :toolbar="'myToolbar'" />

Sets the tools that the toolbar shows and their order.

Default:

['pager', 'spacer', 'zoomInOut', 'zoom', 'selection', 'spacer', 'search', 'open', 'download', 'print']

Example:
vue
<PDFViewer :tools="['pager', 'spacer', 'zoomInOut', 'download']" />

typedArray?

TypedArray

Sets the PDF file to load as a typed array, for example a Uint8Array.

Example:
vue
<PDFViewer :typed-array="pdfBytes" />

url?

string

Sets the URL of the PDF file to load.

Example:
vue
<PDFViewer :url="'https://example.com/report.pdf'" />

zoom?

number

Sets the zoom level of the PDFViewer. Use it to control the zoom level yourself.

Example:
vue
<PDFViewer :zoom="zoom" @zoom="onZoom" />

zoomLevels?

{ id: number; priority: number; value: number; text: string; type: string; locationString?: string }[]

Sets the zoom levels that the zoom ComboBox shows. By default, the ComboBox shows Actual width, Fit to width, Fit to page, and levels from 50% to 400%.

Example:
vue
<PDFViewer :zoom-levels="[{ id: 1, priority: 1, value: 1, text: '100%', type: '' }, { id: 2, priority: 2, value: 2, text: '200%', type: '' }]" />

zoomRate?

number

Sets the step that the Zoom In and Zoom Out buttons use to change the zoom level.

Default:

0.25

Example:
vue
<PDFViewer :zoom-rate="0.5" />