A Python library called X-ray has been developed to detect bad redactions in PDF documents, which can reveal sensitive information. The library uses the PyMuPDF project to parse PDFs and inspect rectangles for bad redactions. It can be used as a command-line tool or as a Python module. The library is designed to help identify and prevent the release of sensitive information through poorly redacted documents.