Remove images


I have a suggestion, because this will solve my problem:
I want to have a method to add an image to an existing PDF and this image will get an user-defined ID.
After saving this PDF I want to reopen it to remove the image with that ID.

Is this possible? When it will be possible? I need a solution fast. :slight_smile:

Thank you.


We can provide an api for adding an image with user-difined ID. But function removing the image with ID can not be provided shortly because of technical reasons.


You could use Aspose.Pdf.Kit.Form.FillImageField() function to solve your problem. The relative url is and

You could do this in two steps:

  1. Create the pdf with a button field with the GUI tools.
  2. Use the Form.FillImageField(fieldName, imageFileName) to add a image into the pdf and remove the field with FormEditor.RemoveField(fieldName).
    Best regards.

Great… thanks!

Hi, tiredwarlord,

Thanks for considering Aspose.Pdf.Kit for .NET.

I would like to add some complementarity to Ken’s reply. Functions are also provided to add field (including push button field) to PDF template programmatically. Please refer to FormEditor.AddField | Aspose.PDF for .NET API Reference.

Best regards.