We will capture the user signature through the tablet. (We are done that part)
Now we need to replace the captured signature with "$Signature" in the below content and send to printer.

"The content is something similar to the below.
I hereby declare that, to the best of my knowledge and belief, 
the particular given  above and the declaration  made therein are true.

Name $Name
Date $date
Signature $signature"

we need some solutions in java