Rewrite recoverable PDF structure locally with qpdf.
Open-source tools that run in your browser.
Bean Yourself