Redaction is a type of editing, typically the removal of information from a document before it is published or shared with a larger audience.
Questions tagged [redaction]
59 questions
6
votes
5 answers
How do you programmatically redact PDF FIles?
Adobe Acrobat has the ability to redact PDF files (that is, actually remove the information, rather than simply drawing a black box on top of it). I would like to use this feature programmatically. To redact using the GUI you select the Mark for…

vy32
- 28,461
- 37
- 122
- 246
5
votes
2 answers
How to change redaction text of a redact annotation created in Adobe Acrobat
Update: 2021-01-15 - Added Bounty
I am trying to alter the redaction annotation to change the underlying text that gets burned into a PDF when you apply redactions. In Acrobat, you can set up a collection of "redaction codes" that can be used to…

Chronicide
- 1,112
- 1
- 9
- 32
3
votes
0 answers
How to avoid showing some secret values in sparkUI
I am passing some secret keys in spark-submit command.
I am using below to redact the key:
--conf 'spark.redaction.regex='secret_key'
though it is working,the secret_key is visible in sparkUI during job execution.The redaction takes place at the…

mukesh dewangan
- 59
- 4
2
votes
2 answers
Redact sensitive info from urllib3 logger
I would like to apply a Filter to the urllib3 Loggers used in the requests module, so that the sensible info from all log strings would be redacted. For some reason, my filter is not applied to urllib3.connectionpool Logger when it's called by…

Mart Roben
- 21
- 2
2
votes
0 answers
How to redact texts in a pdf file in NodeJs
I am struggling to apply text redaction in a PDF file in a aws lambda function written in NodeJs. Here is a list of libraries that I have tried with no success:
pdf-lib: This library almost fulfils all the requirements except that it doesn't redact…

Mahedi Hassan
- 93
- 1
- 10
2
votes
0 answers
Redact function not working in Oracle SQL Developer
Summary of Post: I tried to full redact the TITLE column, but it's not working even though the script is executing just fine. I just want the data from the TITLE column in the FACULTY table to be redacted and not visible to users who aren't…

WaffleCat
- 45
- 4
2
votes
0 answers
How to replace text in hidden text layer of pdf?
I have to remove sensitive information from pdf. I want to do this in both the image layer and the text layer. I managed to get half the target result using the fitz library. This is the code I use, in a simplified form.
phrase_to_redact =…

nietoperz21
- 303
- 3
- 12
2
votes
1 answer
Converting Adobe annotations to redactions using java
Firstly I am unfortunately not a coder. So i suspect that some of this is probably glaring obvious to you all. I provide legal support to a team of lawyers. They often need PDFs redacted and they usually highlight what they need redacted and I use…

Leroy P
- 41
- 3
2
votes
1 answer
Error in draw.rectangle([x1, y1, x2, y2], fill="Black") when drawing rectangle with PIL for high dimension images
I'm getting Error in draw.rectangle([x1, y1, x2, y2], fill="Black") when drawing rectangle with PIL python library for high dimension png file(770x1024). But it works for medium size images.
img = Image.open(BytesIO(file_byte_string))
width, height…

Pokemon
- 63
- 11
2
votes
1 answer
Selectively redact variable-length key from URL using Python
I need to use Python to redact a variable-length key from a URL string. All but the last four characters of the key are to be redacted. The last four characters of the key are to intentionally remain unredacted for identification purposes. The…

Asclepius
- 57,944
- 17
- 167
- 143
2
votes
1 answer
Obscure email addresses in a sentence
I am outputting log messages and need to obscure the email addresses in them.
A log message might look like this:
A lead was saved for sharon.davis@example.com, Date: 11th December 2019, Service: Car Hire ( Premium ), Extras: NA, Price: £300
I am…

Collins
- 1,069
- 14
- 35
2
votes
2 answers
Oracle SQL - Redacting multiple occurences all but last four digits of numbers of varying length within free text narrative
Is there are straightforward way, perhaps using REGEXP_REPLACE or the like, to redact all but the last four digits of numbers (or varying length of 5 or above) appearing within free text (there may be multiple occurrences of separate numbers within…

Lorielus
- 81
- 1
- 6
2
votes
3 answers
Redacting capture group values
Using REGEX to find patterns in a capture group; now I need to replace/redact the values found.
trying to replace values in a fixed length field:
REGEX to search: (\d{10})(.{20}) (.+).
The string is:
01234567890Alice Stone 3978 Smith…

Barbara
- 25
- 3
2
votes
0 answers
Redacted comments in MS's source code for .NET
I would like to open source a large code base and won't realistically be able to vet all the source manually before doing so.
It seems MS redact some text from comments in the source code they released for .NET BCL.
Here's an example from…

Drew Noakes
- 300,895
- 165
- 679
- 742
1
vote
0 answers
Using Python to search for hidden data
I have a possibly weird question that I have searched a million ways for a solution without success. I'm hoping it's simply because I don't know how to ask the Google.
We've recently discovered a problem with how pdf documents were redacted in an…

Kristyn Ferber
- 11
- 2