Wanna redact text?
Put a solid bar over it. There, done. No takesies-backsies from that one.
Wanna redact text?
Put a solid bar over it. There, done. No takesies-backsies from that one.
And this is not so good advice if you're using software that supports layers and your solid bar is in another layer than what you're trying to hide.
Wanna redact text?
Delete it.
> Delete it.
And this is not so good advice if you're using software that supports history and your deletion action is in another action that you can simply revert.
...then really you should know how to flatten? Not understanding the tools you use for sensitive tasks like hiding/redacting data is a recipe for disaster.
Redaction and Deletion are not equivalent. There are many instances where a visible redaction is required rather than a deletion.
Replicating this process digitally is quite hard. Most pdf editors will put a square over the text, so that the original can be easily recovered.
https://www.alfresco.com/blogs/corporate-news/redacting-pdfs...
>Redacting PDFs – What did the Manafort Lawyers get wrong? Date: May 18, 2020
>With Paul Manafort being released from Jail on May 13th, for those in the document space like Alfresco, it was worth revisiting the PDF redaction issue that surfaced during his trial. Back in 2019, lawyers representing Paul Manafort (a former lobbyist, political consultant, and lawyer, who chaired the Trump Presidential campaign team) filed a response to special counsel Robert Mueller’s claims that he violated his cooperation agreement by repeatedly lying to prosecutors. On pages five, six, seven and nine either the lawyers or the special council staffers attempted to redact sensitive passages.
>Although parts of the public version of this filing appeared to be redacted by black bars at first glance, it quickly became apparent that anyone with Adobe Acrobat, or other PDF viewing tool, or even browser-based viewing tools, could easily copy and paste the text that still existed under the redaction blocks to another document to simply reveal the passages that had been redacted. From the UK, a similar incident happened back in 2011 with the Ministry of Defence.
https://www.bbc.com/news/uk-13107413
>Internet mistake reveals UK nuclear submarine secrets
>The Ministry of Defence has admitted that secret information about the UK's nuclear powered submarines was made available on the internet by mistake.
>A technical error meant blacked-out parts of an online MoD report could be read by pasting into another document.
>Details were reported to include expert opinion on how well the fleet could cope with a catastrophic accident.
>The MoD said a secure version had now been published and it was working to stop such an incident happening again.
>Information also included measures used by the US Navy to protect its nuclear submarines, the Daily Star Sunday reported.
Redaction is usually a "Pro" feature in commercial PDF editors. People who use PDF's annotation feature to draw a big filled shape over the text/image to be redacted, don't know what they're doing and should be prepared for poor outcomes.
Adobe Acrobat and Foxit have "Pro" variants that redact properly, I'd love to know exactly how they do it. The open-source approach I'm familiar with, essentially converts the PDF to a flattened image and edits it to apply a colored shape over it. Example[1].
https://www.reddit.com/r/Wellthatsucks/comments/i1cdpl/the_d...
Although I just checked, MacOS Preview has a feature “redact” that (is supposed to) actually redact text. Well done!
That's not to say it's definitely not there, but it's at least something.
2. Set Background Text Color to black
3. Put spaces in place of redacted text
4. Save
Well, mostly. But say you know the name that's redacted belongs to a small group (eg: US president since 1970 to today) - you could probably rule out (and mabye rule-in, determine) the redacted name, based on font-size, kerning etc in the document.
I wonder how fare a machine learning model could go, for longer reports - say 1000 pages with ~100 pages redacted - and the style of writing could be approximately inferred from the visible content - how many sentences/paragraphs could the AI fill in with some probability?
True, but sometimes there is no way around this, because redacting part of the text visually, so that it is clear where and how much was redacted, may be a requirement.
If there is no such requirement, one can always just replace the part of text like so:
This is the original text that I am going to redact now.
This is [REDACTED] now.Depending on what you're redacting you can eliminate this variable.
For example when I want to redact a piece of sensitive text in a video often times I'll make the solid black bar longer than the text being hidden. This way you can't infer the length of it based on the length of the bar. Of course this only works when you can extend the bar in such a way where it won't hide non-sensitive info that's important to see. In practice it works well, for example for redacting browser history just make the bar the entire width of the browser URL bar and for API keys or secrets often times the key exists as an env variable on its own line so extending the black bar is no problem.
I wouldn't count on that. A well-implemented print-to-PDF feature will try to avoid rasterising whenever possible.
If you want to turn your document (whether in PDF format or something else) into a raster image, there are proper tools for that.