Remove text in redacted files when exporting to PDF

As you may or may not now, some of the Epstein files got released as PDF and where exported from a text editor to PDF. The US government apparently redacted the files by just using a black highlight filler on the text. This does only make the text unreadable in the PDF, but the text is still there.
Example: 2022.03.17-1 Exhibit 1.pdf

Speaking from the technical side: The background highlight just places a coloured box over the text in the PDF while leaving the text in place.

I wondered if there is any way on LibreOffice to create a PDF where such redacting really removes the text on export, yet leaves the rest of the text intact.
A solution should be as user friendly as using the black highlight marker on text.

EDIT: It may is possible to tell Writer to not print certain characters, but the text should stay in place and not break the text layout

I don’t think you followed the instructions for redacted text in pdfs.
When the document opens in Draw, it also opens the redaction toolbar. You must use the redaction toolbar to export the document as pdf otherwise it doesn’t work as expected