Skip to main content
Participant
Dec 30, 2021 3:26 AM UTC
Question

Remove leftover Vector Object after redacting

After using the applyRedactions function from the api, the function leaves over these Vector Objects. Is there a way to remove them with more scripting?

 

I guess one solution is to make layers and then delete the Vector Objects layer... Is there a way to automate that? 

 

All I wanted to do was remove any text at the footer for all pages using js. Thanks 

 

Additional info:

Script I used I copypasta'd from here

Here's what I mean by Vector Images left by redacting

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Bernd Alheit
Community Expert
Community Expert
Dec 30, 2021 9:27 AM UTC

What happens when you use white as redaction color?

Translate
FelicityAAuthor
Participant
Dec 30, 2021 6:37 PM UTC

Hey thanks for the suggestion. I have considered this as a solution, where I apply a white redaction to all pages and flatten it to get rid of the vector object. However, I don't want to do this because I would like to have other elements seperate.

 

Is there a way to uniquely identify vector objects that are filled (ie, vector objects left by the redact)?
Better yet, is there a way to delete object within a certain area of every page? Even if we can't uniquely target the vector object, is there a way to list all editeable objects within a page? Cause then I can just delete the last element, which would always be the element that I want to remove...

 

Thanks

 

 

 

Translate
FelicityAAuthor
Participant
Dec 30, 2021 3:28 AM UTC

Actually, making layers and then removing the layers won't work because it would remove other Vector Objects that are not left overs from the redacting.

Translate