I’ve heard that just visually blocking them isnt enough or something.
There’s probably a whole world of metadata silently attached that gets passed over often
Most surefire way would be to turn the pages into images, paint over the images and then stitch the images together as a new PDF. The low tech version would be to print them out, put something that’s fully opaque over the undesirable sections and scan them back in.
Cut out the sections to be censored I think. Stuff might show up under high contrast.
Yeah, some redaction tools simulate a marker and its not fully opaque. Some add a black rectangle object over top, and if you load into libredraw you can delete the rectangles and see the text underneath. Best way is image capture and coallate back into a PDF
I’m talking about something else
Wonderful day!
There are options to start investigating from, and the following public are well known in PDF securityscope:
- https://github.com/tpet/mat2 (…is a metadata removal tool…);
- https://www.coherentpdf.com/ (The most capable, most robust Command Line Tools for processing PDFs…);
- https://eternal-todo.com/tools/peepdf-pdf-analysis-tool (…to explore PDF files in order to find out if the file can be harmful or not…);For example, from some snippets I had in relatively old notes:
pdfinfo './file.pdf'; mat2 --show './file.pdf'; cpdf -info -i ./file.pdf; ./peepdf.py './file.pdf'; # Set version "1.4" cpdf -set-version '04' -i ./file.pdf -o ./file.changed.pdf; cpdf -set-producer 'Some Producer' -i ./file.pdf -o ./file.changed.pdf; cpdf -set-create 'D:20231115053018' -i ./file.pdf -o ./file.changed.pdf; cpdf -set-modify 'D:20231115053018' -i ./file.pdf -o ./file.changed.pdf; cpdf -set-page-mode 'FullScreen' -i ./file.pdf -o ./file.changed.pdf;Please do also check already existing cases like:
- https://unix.stackexchange.com/questions/608593 (Removing metadata from a PDF…);
- https://stackoverflow.com/questions/76262351 (Either cloning entire metadata from one file to another or simply removing single metadata lines…);Please do stay safe!
Redacting by removing the text in place and putting black blocks isn’t always enough either. Variable size fonts (as opposed to monospaced font) will leave gaps that can be potentially guessed by probabilities so that is something to take under consideration. You’ll want to randomize the text to remove before you remove it and black it out.
Get a software that lets you edit, not just annotate, the text and remove it.




