What is the right way to redact a pdf?
2) In the case where this might be relevant there's a much easier way - export PDF pages to high resolution PNG, edit to put a black box over the text, and then combine the PNGs into a PDF again. This also has the benefit of stripping any PDF metadata that may have been present in the original.
In the past 15 years I have seen so many poorly redacted PDF from government agencies, where they just draw a black box over the PDF-native text.