gswin32c.exe -dBATCH -dNOPAUSE -- ../../gs-hd/toolbin/pdfinflt.ps attachment.pdf decompr-attachment.pdf Will attach "attachment.pdf'
Created attachment 2411 [details] attachment.pdf The test file (same as 2178 in the bug 688678).
Created attachment 2415 [details] Suggested patch I think the problem surfaced after http://ghostscript.com/pipermail/gs-cvs/2006-August/006716.html . The cycle that applies filters uses a "null" filter name as a flag that there are no (more) filters. When this pseudo-name is looked into "filterstoremove", now we (correctly, I understand) get a "typecheck"; before, "<dict> null known" was simply returning "false".
Reminder: many more patches affecting pdfinflt.ps are waiting on, or are referenced from, bug 687796 "pdfinflt.ps creates an incomplete PDF". In particular http://bugs.ghostscript.com/show_bug.cgi?id=687796#c7 changes the method used to apply filters, and the problem described in the current bug report doesn't appear anymore.
assign to Alex to see if the patches on bug 688786 fix the issue.
I confirm that this problem does not occur with the final version of pdfinflt.ps from bug 687796, comment #16. I'm closing this bug report as a duplicate. *** This bug has been marked as a duplicate of 687796 ***