Custom PDF generation #1619
-
I have an Employee Feedback Form with fields such as name, email, department, position, hiring date, supervisor name, email, phone number, feedback, etc. When I attempt to export a PDF, the generated PDF contains all the fields. Is there a way to customize the PDF generation process so that I can choose to export only selected fields? Additionally, I would like to know how to customize the design to the generated PDF. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, it can be accomplished by generating PDFs using a custom theme. The formsflow document API serves the purpose of generating PDFs. The document API accepts the 'template' attribute within the request body. The expected value for the 'template' attribute is a Base64-encoded Jinja template. For additional information on the document API, please refer to the following link: To tailor the PDF generation process according to your needs, please follow these steps: Here is a sample form that we export as a PDF:
Sample request body: With these steps, you can now effectively customize your PDF generation process. If you have any questions or concerns, please feel free to ask. |
Beta Was this translation helpful? Give feedback.
Yes, it can be accomplished by generating PDFs using a custom theme.
The formsflow document API serves the purpose of generating PDFs. The document API accepts the 'template' attribute within the request body. The expected value for the 'template' attribute is a Base64-encoded Jinja template. For additional information on the document API, please refer to the following link:
https://github.com/AOT-Technologies/forms-flow-ai/blob/develop/forms-flow-documents/README.md#usage-guidlines
To tailor the PDF generation process according to your needs, please follow these steps:
Begin with a sample form that you wish to export as a PDF.
Here is a sample form that we export as a PDF:
To export s…