PDFViewerComponent
Represents the Kendo UI PDFViewer component for Angular.
<kendo-pdfviewer
[url]="pdfUrl"
[zoom]="1.25"
[tools]="['pager', 'zoomInOut', 'zoom', 'download', 'print']">
</kendo-pdfviewer>
Selector
kendo-pdfviewer
Export Name
Accessible in templates as #kendoPDFViewerInstance="kendo-pdfviewer"
Inputs
Name | Type | Default | Description |
---|---|---|---|
arrayBuffer |
|
Represents the raw binary data buffer of the PDF file. | |
data |
|
Represents the data of the PDF file in Base64 format. | |
loaderSettings |
|
|
The configuration of the internal Loader component. |
loadOnDemand |
|
|
Sets whether the component loads all PDF document pages at once or loads new pages on demand when needed. |
loadOnDemandPageSize |
|
|
Sets the number of pages to load on demand when the |
maxZoom |
|
|
Represents maximum allowed zoom value. |
minZoom |
|
|
Represents minimum allowed zoom value. |
saveFileName |
|
|
The name of the file that will be saved when the end user clicks the Download tool. |
saveOptions |
|
|
Represents the options for saving the file when the end user clicks the Download tool. |
tools |
|
|
Represents the tools collection rendered in the toolbar. |
typedArray |
|
Represents the data of the PDF file in | |
url |
|
Represents the url of the PDF file. | |
zoom |
|
|
Sets the initial zoom level of the PDF document (see example). |
zoomRate |
|
|
Represents the step the zoom level will be changed with when using the ZoomIn and ZoomOut tools. |
Fields
Name | Type | Default | Description |
---|---|---|---|
currentPage |
|
Returns the current page number of the loaded PDF document. | |
pdfContext |
|
Exposes the loaded |
Events
Name | Type | Description |
---|---|---|
download |
|
Fires when the user clicks the Download tool of the loaded PDF document. |
error |
|
Fires when an error occurs while loading or downloading the PDF document. |
load |
|
Fires when the component loads a PDF document successfully. |
pageChange |
|
Fires when the user changes the page of the loaded PDF document. |
zoomLevelChange |
|
Fires when the user changes the zoom level of the loaded PDF document. |
Methods
scrollToPage | ||||||
---|---|---|---|---|---|---|
Scrolls the PDFViewer document to the specified page number, treating 0 as the first page (see example). | ||||||
|