Bug 707368

Summary: Regression from 10.00.0 to 10.02.1 : PDF Interpreter Error: /undefined in --runpdf--
Product: Ghostscript Reporter: Hakan <hakan.usakli>
Component: PDF InterpreterAssignee: Default assignee <ghostpdl-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 10.02.1   
Hardware: PC   
OS: Windows 10   
Customer: Word Size: ---
Attachments: sample input pdf

Description Hakan 2023-12-06 12:09:21 UTC
Created attachment 25075 [details]
sample input pdf

Hello,

There seems to be an error (possible regression?) in the PDF-Interpreter with the following command line and supplied generic/minimal input file. 
Goal is to rasterize a single page out of a multipage file.

gswin64c.exe -dNOSAFER -dBATCH -dNOPAUSE -dNOPROMPT -q -sDEVICE=tiffscaled8 -sPageList=13 -r200 -o "d:\temp\output.tif"  -f "d:\temp\input.pdf"

GS Version 10.02.1 errors out with

GPL Ghostscript 10.02.1 (2023-11-01)
Copyright (C) 2023 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Error: /undefined in --runpdf--
Operand stack:   --nostringval--   100   (   **** Error: PDF interpreter encountered an error processing the file.\n)
Execution stack:   %interp_exit   .runexec2   --nostringval--   runpdf   --nostringval--   2   %stopped_push   --nostringval--   runpdf   runpdf   false   1   %stopped_push   1944   1   3   %oparray_pop   1943   1   3   %oparray_pop   1928   1   3   %oparray_pop   1929   1   3   %oparray_pop   runpdf
Dictionary stack:   --dict:757/1123(ro)(G)--   --dict:0/20(G)--   --dict:86/200(L)--   --dict:7/10(L)--
Current allocation mode is local
Last OS error: No such file or directoryGPL Ghostscript 10.02.1: Unrecoverable error, exit code 1

GS Version 10.00.0 works fine without any problem on the identical command line and file.

The problem in GS 10.02.1 goes away if -sPageList=13 is removed.

For your information and Best Regards
Comment 1 Ken Sharp 2023-12-06 14:03:05 UTC
This was fixed in this commit 9b6fe6e1008f1b9b7fc3109b5f94db8d970fbcaa