Skip to main content
Participant
January 17, 2019
Answered

Remove Pic from Editable PDF

  • January 17, 2019
  • 1 reply
  • 5066 views

I am using Adobe Acrobat Pro DC. I have created an editable PDF. There are areas to add text and pictures. I can add pictures just fine, but cannot delete if needed. How can I accomplish this?

The only thing I have figured out is to add a new picture in the place of the one I want to remove, but I cannot simply delete.

Thanks for help,

The new guy

This topic has been closed for replies.
Correct answer Joel Geraci

The easiest thing to do is to set the button "position" to text only so that the currently set image doesn't show.

this.getField("Button1").buttonPosition = position.textOnly;

Then you'd need to edit your code that sets a new image to change the position back before importing a new icon

this.getField("Button1").buttonPosition = position.iconOnly;

Alternatively, you could import a transparent png into the PDF as a hidden field and when you want to "delete" an image from the original button, you'd simply get the icon from the hidden field and use it to set the icon on the field you want to appear to be blank. The button would still contain an image, you just don't see it.

1 reply

Joel Geraci
Community Expert
Community Expert
January 18, 2019

Are you adding the images as button field icons? If not, how?

WesW91Author
Participant
January 18, 2019

I used Rich Media under Create & Edit.

Layout: Icon Only

Java Script: "event.target.buttonImportIcon();"

Joel Geraci
Community Expert
Joel GeraciCommunity ExpertCorrect answer
Community Expert
January 19, 2019

The easiest thing to do is to set the button "position" to text only so that the currently set image doesn't show.

this.getField("Button1").buttonPosition = position.textOnly;

Then you'd need to edit your code that sets a new image to change the position back before importing a new icon

this.getField("Button1").buttonPosition = position.iconOnly;

Alternatively, you could import a transparent png into the PDF as a hidden field and when you want to "delete" an image from the original button, you'd simply get the icon from the hidden field and use it to set the icon on the field you want to appear to be blank. The button would still contain an image, you just don't see it.