How to blackout removed text
By default when we delete text using /pdf/edit/delete-text
it will remove text but do not blackout deleted text.
In case we need to blackout deleted text as well we can achive this using following profile parameters.
- Set
UsePatch
parameter totrue
. - Set
PatchColor
parameter to color we want to use for redacting in HEX format. For example:'PatchColor': '#BF821A'
.
An Example of this would be "profiles": "{'UsePatch': true, 'PatchColor': '#BF821A', 'RemoveTextUnderPatch': true}"
.
Now, when we delete text using /pdf/edit/delete-text
with use of this profile settings it will remove text and also blackout deleted text. In case we want to only blackout text but not remove it so that we can copy it, we can do so using RemoveTextUnderPatch
parameter and set it to false
.
For Example: "profiles": "{'UsePatch': true, 'PatchColor': '#BF821A', 'RemoveTextUnderPatch': false }"
Copyright © 2016 - 2024 PDF.co