8/3/2023 0 Comments Pdf exporter![]() ![]() If you click on the ‘ Sample Json’ tab in the template editor you can see the values that have entered in the sample template and can also use that area to enter your own values to check how it looks as you go along. It doesn’t matter what is inside the curly brackets in the template, as long as you keep track of what they reference in Retool as they will be used later when we connect the API to Retool. Utils.downloadPage(" your_filename", where you’d like that value to appear in the template. To use this function you need to run a JavaScript query using: Option 2: Retool’s ‘downloadPage’ utility If being able to change the file name directly in your application before saving is essential, read on for another option that does allow you to do so. Summary : So for those looking for a simple method to produce a very basic PDF, with no need for specific formatting in terms of exact font size, text alignment etc., this is a good option. You can’t generate unique file names so must rename when saving.It doesn’t allow for HTML formatting (aligning text, for example) so can be more difficult to create professional-looking PDFs.The main limitations of the PDF Exporter: There are several converters online, and the one I used to create the above example is here. Once converted, you n paste the results into the value box of the PDF exporter. If you, like me, are more familiar with HTML than Markdown, a simple workaround here is to write your PDF template for the PDF exporter in HTML and then use an HTML to Markdown converter online. Markdown is a lightweight markup language for creating formatted text using a plain-text editor. The PDF Exporter query requires Markdown for document formatting and is a good option for relatively simple PDFs. Option 1: The resource query option: Retool’s PDF Exporter Methods for PDF Generation solely using Retool’s native Components The following are the methods I found most suitable at the time this tutorial was made. *Disclaimer: as Retool is a highly hackable program and also often updated, there may be other methods currently available. We will first take a look at the PDF Exporter option, and the downloadPage utility method, as well as their uses and limitations, before going through another (much more customizable) method that utilizes an external API to generate PDFs within our Retool environment.įinally, we’ll run through some handy tips for how to complete your perfect PDF Generator App. There are currently two ways using Retool’s native features that allow you to generate PDFs. The possible applications of having a simple and easy to implement method for producing PDFs from Retool data cannot be underestimated. So, for many companies looking for Retool apps, PDF end products are essential. PDFs are used for just about everything in business these days - contracts, invoicing, eSignatures, record keeping, you name it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |