I have a Spring boot project that requires adding digital signature to pdf file like this:

Also merge it to the pdf content and display like this:
But I have no idea how to add/merge this into the pdf file at a specific position (like the picture 2). I hear that IText or PDFBox could do that but don't know how to do. Please help me!