PDF files
Last updated
© 2024 UI Bakery
Last updated
You might want to generate PDF files from your tables for reporting and other purposes. Here's how you can do it in UI Bakery:
In the Custom Code tab, specify the code below:
Please note the code is exemplary and needs to be changed based on your table's and necessary file's structure
4. As the next step, add a Button that will download the generated file.
5. Open the Button's settings, navigate Triggers section and assign the generatePDF action to the On Click trigger.
If you need to print the PDF files directly from UI Bakery, it can be achieved the following way:
2. Add a Code action and specify a similar code:
where ui.pdfFileInput.value
is an input component with field type=file
.
2. and add a table to display it. For example, we will load a table with users' data.
3.
- Code. Specify the below code:
Connect a JS library in the Custom Code tab: