Nice! Recently I had the need for pdf censoring, aka not adding black rectangles but actually removing the content underneath and I still haven't found a suitable tool. Any recommendation? Or even python library to do it?
I developed another tool pdfredactoronline.com that does this. Full redaction/removal of content, not just blacking out text. I didn't include it in this tool for now due to the APGL license of the library that enables the redaction, but since something fully in the browser is kinda open source already, I'll see if I can comply with the license while including it in BreezePDF
you can do it easily with Inkscape which supports the pdf format
Do you want the black rectangle and the content removed? There are "redaction" tools. https://smallpdf.com/redact-pdf
Honestly, your best bet for securely erasing data from a PDF is by adding the black bars, printing it and then scanning the print.
LibreOffice.
You can open PDF in LibreOffice Writer, just make sure to select "PDF - Portable Document Format (writer)" in the file selection dialog. This is very important, if you don't do that, the file will be opened in LibreOffice Draw instead of Writer.