Closed pjm4 closed 5 years ago
You can use a form and place the image in the form. Should give you the id of the form. When wanting to remove replace the form object with and empty one.ake sure to use the same size for form and image so the image will show.
Thanks @galkahana - I've started using pdf-lib as it is working within the browser. Your suggestion of the empty form has worked very well with this library, so many thanks for your help.
Hi,
I need to add an image to an existing PDF and then allow the user to be able to remove that same image later. At the moment, I'm using the following code to add an image (which works well):
Workflow required is:
Ideally, when the image is added I'd include an ID. Later on I could find the image by this ID and remove it.
Could you provide some pointers?
Thanks,
Philip