Document Viewer
Document viewer widget is used to show documents on a page. The widget currently supports the following extensions-
  1. 1.
    .txt
  2. 2.
    .pdf
  3. 3.
    .ppt (not supported by base64)
  4. 4.
    .pptx
  5. 5.
    .docx
  6. 6.
    .xlsx
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

Widget Properties

Property
Description
Document Link
Link to the URL of the supported file types. The file extension also needs to be present as part of the URLs.
Visible
Controls widget's visibility on the page. When turned off, the widget will not be visible when the app is published.
Animate Loading
Control’s widget’s loading animation on the page. When turned off, the widget will load without any skeletal animation. This can be controlled with JS until all the widgets are rendered.

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.
Copy link
Edit on GitHub