Bug 688835

Summary: gs\toolbin\pdfinflt.ps fails with /typecheck in --known--
Product: Ghostscript Reporter: leonardo <leonardo>
Component: Test FrameworkAssignee: Alex Cherepanov <alex>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P4    
Version: master   
Hardware: PC   
OS: Windows XP   
Customer: Word Size: ---
Attachments: attachment.pdf
Suggested patch

Description leonardo 2006-08-11 04:59:33 UTC
gswin32c.exe -dBATCH -dNOPAUSE -- ../../gs-hd/toolbin/pdfinflt.ps 
attachment.pdf decompr-attachment.pdf

Will attach "attachment.pdf'
Comment 1 leonardo 2006-08-11 05:01:14 UTC
Created attachment 2411 [details]
attachment.pdf

The test file (same as 2178 in the bug 688678).
Comment 2 SaGS 2006-08-14 02:40:23 UTC
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".
Comment 3 SaGS 2006-08-14 02:49:43 UTC
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.
Comment 4 Ralph Giles 2006-08-16 09:46:12 UTC
assign to Alex to see if the patches on bug 688786 fix the issue.
Comment 5 Alex Cherepanov 2006-09-09 14:48:03 UTC
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 ***