Tuesday, March 18, 2014

Stamping Text on Existing Pdf Files

I recently created a framework for stamping text on existing pdf files by using the iText project.  It is available here on github.

The workflow goes something like this:

  1. Create a PdfForm
  2. Add your PdfFormStamps (location, alignment, and rotation and defined in the PdfFormPlaceholder
  3. Run it through the PdfFormServiceImpl.stampPdf
  4. Then you can save the bytes wherever you like
Seeing the results is kind of clunky since it's kind of a guessing game where your stamps will show up, but better than nothing I suppose.  

No comments:

Post a Comment