How to create a PDF document within Servoy, then save to DB

Hello Folks,

I am attempting to figure out how to create a PDF File within Servoy, and save the actual pdf file to the DB. I have found a formula within the servoy_sample_pdf_forms solution, listed under pdf output called convertPDFForToPDFDocument.
Can I use this? Right now a PDF is being created from the viewed form, calling Servoy to write it to the Desktop of the user’s pc. What I really need is a way to save the actual pdf document to the DB directly so it can be accessed by all who use the solution.

Any help on this will be very appreciated.

You can write the file as a temporary file and then pick up the file to store it in the database.

you can use these methods of the pdf plugin: startMetaPrintJob (with no arguments) and then endMetaPrintJob() to get the byte back that you can store directly in a blob field