An embedded PDF file from a URL or that is Base64 encoded. It supports automatic scaling the content to fit either the width or height of the component.
Properties
Available properties for PDF with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.
Whether the component is visible.
Whether the component takes up space on the canvas if hidden
is true
.
The amount of margin to render outside of the component.
A file representation that is shared by components on Retool.
Whether the input for retoolStorageFileId
is dynamic.
The id of the uploaded image when srcType
is retoolStorageFileId
.
Whether to scale the contents based on the width or height of the component.
Whether to automatically adjust the scroll position to the top of each page if scaleMode
is height
.
Whether the component remains visible in the editor if hidden
is true
.
Whether to show a button in the top bar to rotate the PDF.
Whether to display a top bar that contains user actions and title
, if set.
Whether to show zoom in / out controls for the PDF.
The source URL.
The type of the image source. Either src
, dbBlobId
, or storageBlobId
.
The title to display in the top bar when showTopBar
is true
.
The text to display in a tooltip on hover or focus.
Methods
Methods for interacting with PDF. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.
Scrolls the canvas or parent container so that the selected component appears in the visible area.
Set the hidden
value to toggle whether the component is visible. Defaults to true
without a parameter.
The source URL.