pdfGenerate

Description

Generates a PDF.

Input / Parameter

Output

N/A

Callback?

callback

The function to be executed if the PDF is generated successfully.

errorCallback

The function to be executed if the PDF is not generated successfully.

Video

Coming Soon.

Example

In this example, we will generate a PDF from HTML and return the PDF file to the user.

Steps

  1. First we add a button component onto the canvas, and name it btnGeneratePDFFromHTML.

  2. Then we also add a label named lblResult which will display the PDF file once it is generated.

  3. We click on the btnGeneratePDFFromHTML button from step 1 and select "Actions". We add the pdfGenerate function first. We add a setComponentValue to the flow, for when pdfGenerate returns true.

  4. For pdfGenerate function, open the inspector and add the following parameters:

  5. For setComponentValue function, set the component to the label lblResult we created in step 2.

Result

When the user clicks on the button, it will generate a PDF with the text "This is the pdf content".

Last updated