Hello Rei3 Team,
I have started to test and play with the application, mainly for the ticket system, and I must admit it’s very simple and powerful to set up and use.
I wanted to add a button to be able to print out an intervention sheet when a ticket requires a visit to the location, and I successfully managed to do so.
But I’m stumbling on one odd behavior, no matter the size of my page output, I will always get 1 extra page in the PDF, one(s) with the content and one empty one.
So I’ve tried with a very small text.
let myCSS = "#page{ display:flex; flex-flow:column nowrap; line-height:120%; font-family:'Roboto','Arial','Helvetica',sans-serif; font-size:14px; }";
//create pdf
app.pdf_create(
"res_subject",
"a4",
"p",
20,
20,
"",
"This is a test",
"",
myCSS
);
But it’s still the same when I save the PDF.


I believe this is something related to the PDF settings, but I didn’t manage to port this from the example in Knowledge.
Thank you