Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have already looked at:

I tried ghostscript on both OS X and Windows. OS X gs gave the following error:

GPL Ghostscript 9.06 (2012-08-08) Copyright (C) 2012 Artifex Software, Inc.  All rights reserved. 
This software comes with NO WARRANTY: see the file PUBLIC for details. 

Error: /undefined in  600Ru600D0Fl0Ol2Al7Hl0Sl1Xl8c1E0x0Y0t5760x7680Y0M 
Operand stack:
Execution stack:   
%interp_exit   .runexec2   --nostringval--  --nostringval--   --nostringval--   2   
%stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   
%stopped_push   1894   1   3   
%oparray_pop   1893   1   3   
%oparray_pop   1877   1   3   
%oparray_pop   1771   1   3   
%oparray_pop   --nostringval--   
%errorexec_pop   .runexec2  --nostringval--   --nostringval--   --nostringval--   2   
%stopped_push   --nostringval-- 
Dictionary stack:   
--dict:1161/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)-- 
Current allocation mode is local Current file position is 677 
GPL Ghostscript 9.06: Unrecoverable error, exit code 1

Neither Acrobat Reader nor pro will load the file. I also tried the "Recovery Toolbox for PDF" on the Windows side, with no love.

Any ideas? Am I munging my ghostscript commandline? Here's the two commands I tried:

gs -o repaired.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress corrupt.pdf


gs -sDEVICE=pdfwrite -dBATCH -dNOPAUSE -sOutputFile=repaired.pdf corrupt.pdf
share|improve this question
How do you know it is corrupted? What is happening when you try to open/view the PDF? –  Paperlantern Nov 8 '12 at 18:29
I see where you just said it won't load, but do you get an error? Often times on difficult PDFs I find the PDF viewer built into Linux Mint is extremely resilient and can open files that other programs just cant seem to get their heads around. Reprinting it to PDF from Mint makes a clean pdf that the other programs can then use. I do this many times a month for users at my work. –  Paperlantern Nov 8 '12 at 18:35
Error is: "filename.pdf" Could not be opened. It may be damaged or use a file format that Preview doesn't recognize. Acrobat on Windows gives: Reader could not open filename because it is either not a supported file type of because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded). –  Joe B Nov 8 '12 at 23:08
Try pdftk and qpdf. –  Martin Schröder Nov 9 '12 at 8:08
pdftk reports "Error: Failed to open PDF file: filename" I'm willing at this point to assume that the pdf is beyond saving, but thank you everyone for trying! I apprecate your help, and so does my user whose file it was. If you appreciate how much effort I put in, please vote my question up, since I'd love to have more than 6 reputation... ;) Cheers, –  Joe B Nov 9 '12 at 20:08

protected by Community Dec 8 at 10:10

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Browse other questions tagged or ask your own question.