When uploading a PDF to archive.org you may get an error that states:

Uploaded content is unacceptable. Syntax error detected in pdf data. You may be able to repair the pdf file with a repair tool, pdftk is one such tool.

I found this post which provides a ghostscript command that worked for me on Linux:

gs -o fixed.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress corrupted.pdf
tips/repair_pdf_for_upload_to_archive.org.txt · Last modified: 2023-10-29 03:52 by snork
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki