Copy link to clipboard
Copied
Greetings,
is there a possibility to delete the same picture in every pdf automatised with Action Wizard?
We´re trying to create an automatised publication of our "User Manuals".
But the one problem we still have is, that we also need "User Manuals" without the Company Logo on front.
So the question is, can we somehow delete the Logo in all User Manuals?(not the whole page, because there is other important information on it)
Thanks in advance!
Copy link to clipboard
Copied
Then you can do it using this code as a part of an Action:
var q = [[82.07098388671875,294.1651916503906,538.5333251953125,294.1651916503906,82.07098388671875,782.902587890625,538.5333251953125,782.902587890625]];
this.addAnnot({page: 0, type: "Redact", quads: q, fillColor: color.white});
this.applyRedactions();
Add a Save command after the Execute JavaScript command to save the edited file, but keep in mind this is NOT reversible, so maybe save it under a new name, or keep a backup copy of the file, just in case something goes wrong.
Copy link to clipboard
Copied
You posted in the Reader forum, but the Action Wizard only exists in Acrobat (Pro). I'll move your question there.
Regarding your request: You can't delete it directly, but you can redact it. That would leave a white (or other solid color) rectangle on the page, though. If there are graphics around that image it will look odd. If the surrounding area is white anyway I can explain how to do it, using a script.
Copy link to clipboard
Copied
Thanks for the quick answer.
Yes please, this is exactly what we´d need.
Copy link to clipboard
Copied
The first step is to identify the area you want to remove. To do so draw a Square comment over it, select it by clicking it with the mouse and then run the following code from the JS Console:
this.selectedAnnots[0].rect
Post the output here, as well as the page number where the logo image appears.
Copy link to clipboard
Copied
So i identified the area i want to remove , placed a white text field over it, but i´m not sure how i proceed now.
I´m not very familiar with adobe acrobat/javasript so i would need some more help here, if possible.
Copy link to clipboard
Copied
Press Ctrl+J to open the Console, paste the code into it, select it using the mouse or keyboard and press Ctrl+Enter to run it. Make sure to select the comment first, though.
Copy link to clipboard
Copied
Page Number is always Page 1
Output of Console:
this.selectedAnnots[0].rect
82.07098388671875,294.1651916503906,538.5333251953125,782.902587890625
Copy link to clipboard
Copied
Then you can do it using this code as a part of an Action:
var q = [[82.07098388671875,294.1651916503906,538.5333251953125,294.1651916503906,82.07098388671875,782.902587890625,538.5333251953125,782.902587890625]];
this.addAnnot({page: 0, type: "Redact", quads: q, fillColor: color.white});
this.applyRedactions();
Add a Save command after the Execute JavaScript command to save the edited file, but keep in mind this is NOT reversible, so maybe save it under a new name, or keep a backup copy of the file, just in case something goes wrong.
Copy link to clipboard
Copied
Thank you a lot for helping me out there.
It saves us a lot of time (y)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now