If you need to share a PDF document containing non-disclosable images you can use the draft option
\documentclass[draft]{book}
Is it possbible to do something similar for text? For debug purposes I have to share a PDF containing non-disclosable text. Any method could be fine (scrambling letters, covering letters with boxes --provided that underlining text cannot be copied--, etc.), as long as the layout is (almost) identical to the regular PDF.
I'm looking for a solution working with XeLaTeX documents.
censorpackage can do some of what you ask, but not this central point you require. – Steven B. Segletes Jan 09 '24 at 01:01censorby wrapping a chapter between\blackoutenvand\endblackoutenv, but I get the errorpbox.sty not found. – mmj Jan 09 '24 at 08:37