There is a sensitive document. Credit card statements. Reimbursement.
I want to redact (hide) parts of the document.
- Create a pitch black highlighter pen in Okular. Highlight the relevant text in black.
- The text is still there and can easily be seen, for example by highlighting (in the sense of Ctrl-A) the entire document.
- To flatten = actually remove the text beneath the black highlights:
pdf2ps in.pdf - | ps2pdf - out.pdf
Other suggestions (convert, ghostview...) do not work. Broken images, missing pages, weird fonts...
I've tried to highlight with black and then flatten the pdf, but the text is still there.
This turns it into a bitmap pdf, which is the only thing which works. Thank you for sharing.