I have a piece of code that stamps a PDF by merging a FormXObject of a source pdf file. What I am trying to do is superimpose some text into that. How does one approach such operation?
- Add an image or merge a PDF to an existing document.
- Add a text relative to that image/pdf.
- Concatenate the text and image into one selectable annotation (ideally a stamp)
I can do step one individually, but superimposing the text is what remains unclear. Think of it as trying to fake a signature using a stamp that contains modifiable text (similar to Adobe's Signature Appearance).