Preview pdf
  • 18 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Preview pdf

  • Dark
    Light
  • PDF

Previews a PDF file at the given local filesystem path or external URL by opening a modal window to display the document.

The first output is triggered after the preview modal has been closed.

If there is an error, the second output is triggered.

Input arguments

Label Key Type Required? Default Description
File to preview source String(web-url)|String(local-filesystem-reference) Yes Absolute local filesystem path or external URL to the file to preview.
Title label title String Yes Preview file Text label to show in the preview modal header bar.
Enable pagination? enablePaging Boolean No If true, show only one page on the screen at a time.

Output arguments

Number of outputs: 2

No output arguments.

Events

No events.

Errors

Label Code Description
Unknown error unknown Thrown if an unknown error occurred while previewing the PDF file.

Was this article helpful?

What's Next