Is it possible to take an signature image and add it to an existing PDF document as a stamp? If it is possible can the image be overlaid so that it could appear on a signature line in the PDF Document?
Hi Scott,
Thanks for contacting support.
You can add an image stamp by using Aspose.Pdf.ImageStamp class and set its Background property to false so that it can appear on the signature line in the existing PDF document. Please check the following code snippet to add ImageStamp into existing PDF Document.
Document pdfDocument = new Document(dataDir + “SigsOnly.pdf”);
ImageStamp imageStamp = new ImageStamp(dataDir + "JaneDoe.jpg");
imageStamp.Background = true;
// Set the coordinate of the stamp
imageStamp.XIndent = 350;
imageStamp.YIndent = 640;
// Set height and width of the image
imageStamp.Height = 50;
imageStamp.Width = 100;
// Set if stamp should be in background
imageStamp.Background = false;
pdfDocument.Pages[1].AddStamp(imageStamp);
dataDir = dataDir + "AddImageStamp_out.pdf";
pdfDocument.Save(dataDir);
I have also attached generated output for your reference. In case if you need further assistance please feel free to contact us.
Best Regards,
Hi Scott,smgrisw:Is it possible to take an signature image and add it to an existing PDF document as a stamp?
Thanks for contacting support.
Adding more to Asad's comments, you can also use our API to get/extract image from signature field in existing PDF file and add it to another document. For more information, please visit Extract Image and Signature Information