PDF component does not work in Play mode

  • Goal: Displaying a PDF in the PDF component

  • Steps: In edit mode the PDF component loads the PDF from a variable. Same steps in play mode yield "PDF is invalid".

  • Details: Just use PDF component and provide a base64 encoded PDF in a variable that you fill from e.g. a button.

  • Screenshots:

2 Likes

Hello @simonthplco!

What is the error message in the console? Is the variable a string that you are passing into the PDF component in edit mode?

That is odd that it works in edit but errors on app deploy... I just had another question about the PDF component and the base64 encoded string needed to be passed inside an object to the component for it to work and display properly.

Also check out this very useful thread on using the PDF component and how to pass in the right variable for it to work!

1 Like