Ever needed to stamp PDF reports in much the same way that it is applied a rubber stamp to a paper document?
DocumentBurster software can automatically stamp a batch of reports and optionally deliver the stamped reports to a targeted audience. Imagine you distribute each month couple of hundreds (or thousands) invoices and you are looking for an easy way to automatically apply the company logo to all the distributed invoices. Can this be done easily?
DocumentBurster offers two (2) alternatives to stamp PDF reports and both are easy to implement. You can choose the option which will fit better your needs.
By default both scripts will apply the existing samples/Stamp.pdf background to the output PDF reports. You can replace this sample stamp file with your own while keeping the same name for the file (Stamp.pdf). This way both scripts will work without any modification and will stamp PDF reports using your own company logo.
1. overlay.groovy – This script works out of the box.
Edit the script scripts/burst/endExtractDocument.groovy with the content found in
scripts/burst/samples/overlay.groovy and then burst a new report. Now, every time a report is burst, the output files will be stamped using the samples/Stamp.pdf file.
Complete documentation about overlay.groovy script can be found in Chapter 1. Using scripts to achieve more -> Sample scripts -> overlay.groovy from the DocumentBurster – Advanced report delivery scenarios document.
2. exec_pdftk_background.groovy – PDF Security for Reports article explains how to execute Pdftk during report bursting flow.
Complete documentation about exec_pdftk_background.groovy script can be found in Chapter 1. Using scripts to achieve more -> Sample scripts -> exec_pdftk_background.groovy from the DocumentBurster – Advanced report delivery scenarios document.
Feel free to download DocumentBurster and see for yourself how easy is to stamp PDF reports which can be furthered distributed to your employees, clients, subscribers, partners or vendors.