We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Replace an Image with another one in PDF using Aspose.PDF for Java


Is ist possible to replace a specific images inside a PDF? We have a request from a customer who want's to add an empty image inside a PDF and we are doing the approval of the document with a workflow. After the approval we want to replace the empty image with a signature image.

Regards Peter

Hi Peter,

Thank you very much for considering Aspose.

I would like to inform you that PdfContentEditor class of Aspose.Pdf.Kit provides a method named replaceImage for this purpose. Please try it at your end with our latest release.

If you find any issues or have some more questions, please do let us know.


We would like to share with you that now you can replace images inside PDF document using DOM approach in Aspose.PDF for Java which is more stable and improved.