DotNaos UI

Viewport

Pdf Viewport from the Pdf viewer package.

Source code

Waiting for the preview before loading source files · 2 of 2

Properties

Public properties derived from the component’s TypeScript signature.

PropertyTypeDefault
customizeOptional
UiCustomization
currentPageOptional
number
documentOptional
PDFDocumentProxy | null
emptyLabelOptional
string
errorOptional
string | null
lazyPagesOptional
boolean
loadingOptional
boolean
onPageSelectOptional
((pageNumber: number) => void)
scaleOptional
number
scrollBehaviorOptional
"auto" | "instant" | "smooth"
sourceOptional
PdfSource
textLayerOptional
boolean
refOptionalAllows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref).
Ref<PdfViewportHandle>
keyOptional
Key | null