Document viewer widget is used to show documents on a page. The widget currently supports the following extensions-
- .ppt (not supported by base64)
Documents can be populated from a data source like API or Query in which the incoming data points to the URL of the file.
Properties allow you to edit the widget, connect it with other widgets and customize the user actions.
These properties allow you to edit the Document Viewer widget. All of these properties are present in the property pane of the widget. The following table lists all the widget properties.
|Document Link||Source URL of the document, which must be one of the supported file types (see top of page). The file extension must be present as part of the URL.|
|Visible||Control widget's visibility on the page. When turned off: The widget isn't visible when the app is published. It appears translucent when in Edit mode.|
Generating PDF Documents
Generating reports or documents from a dataset is vital in many applications. The video below shows how to generate a PDF report on Appsmith.
You can also generate a PDF document using Carbone.io: