Adding a header\footer to PDF output

Does anyone know of a way I can overlay custom header\footer text on PDF file that has been uploaded by a user? Currently I combine several PDFs into a PDF array. These consists of PDF’s uploaded by the user and PDF’s generated from a form. Once the final document is compiled, I need to add a customized footer to include page numbers.

I can add page numbers using plugins.pdf_output.numberPages and that works fine but I can’t customize the text.

I can overlay custom text on all pages using plugins.pdf_output.overlayText but that puts it at a 45 degree angle across the page.

How can I add a footer with custom text?

thanks!
Wes

Hi Wes,

you can use this: http://pdfbox.apache.org/commandline/#overlayPDF

As the command line functions are part of the final jar, you can easily use them directly from Servoy.
Examples on how to call the functions in pdfBox from Servoy can be found here:
https://www.servoy.com/forum/viewtopic.php?f=22&t=19968