Skip to main content
Participant
December 30, 2021
Question

Remove leftover Vector Object after redacting

  • December 30, 2021
  • 2 replies
  • 520 views

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 has been closed for replies.

2 replies

Bernd Alheit
Community Expert
Community Expert
December 30, 2021

What happens when you use white as redaction color?

FelicityAAuthor
Participant
December 30, 2021

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

 

 

 

FelicityAAuthor
Participant
December 30, 2021

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.