Build a PDF conversion harness that grades its own output. The core loop: convert a PDF to DOCX, XLSX or PPTX with LibreOffice headless, then immediately convert the result back to PDF and compare it to the original. Rasterise both at 150 dpi, compute a per-page structural similarity score, and store it with the output. Surface the score, do not hide it. Above a threshold you choose, mark the conversion clean. Below it, mark the page and show the two renders side by side so the drift is visible — a table that lost its borders, a heading that changed font, a text box that moved. The point of the tool is to know before sending, not to convert better than LibreOffice can. Also record the specific failure signals that predict a bad conversion before it runs: fonts referenced but not embedded, pages with more than two text columns, scanned pages with no text layer, and forms. Show them as warnings on upload. Keep every original immutable, write outputs to new files, and store the score, the warnings and both hashes in a small SQLite database so you can look back at which documents converted badly and why. Out of scope: writing your own PDF-to-Office converter, e-signatures, and any attempt to fix a bad conversion automatically. Automatic repair of a layout the converter already misread produces documents that are wrong in ways nobody notices. Validate on a contract with numbered clauses, a financial statement with merged table cells, and a slide deck.