title: GhostScript Windows Command Line: convert spl, pcl to pdf
body: <p>Just installed GhostScript 9.21 for Windows.
  Already tried some commands from the website (<a href="https://www.ghostscript.com/doc/current/Use.htm" rel="nofollow noreferrer">https://www.ghostscript.com/doc/current/Use.htm</a>) at the GhostScript command prompt, but they didn't work. Executed gswin32c from cmd as well - the same result.
  I need to convert SPL and PCL files to PDF. Does anyone know the right way to do it?
  Thanks in advance.</p>
  
  <p>UPD:
  there are different error messages. the most common output is:
  PS C:\Program Files (x86)\gs\gs9.21\bin> .\gswin32c.exe -sDEVICE=pdfwrite -o C:\1\00002.pdf C:\1\00002.pcl</p>
  
  <p>GPL Ghostscript 9.21 (2017-03-16)
  Copyright (C) 2017 Artifex Software, Inc.  All rights reserved.
  This software comes with NO WARRANTY: see the file PUBLIC for details.
  Error: /undefined in ??
  perand stack:
  Execution stack:
     %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
    --nostringval--   --nostringval--   false   1   %stopped_push   1983   1   3   %oparray_pop   1982   1   3   %oparray_
  pop   1966   1   3   %oparray_pop   1852   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostr
  ingval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
  Dictionary stack:
     --dict:1204/1684(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--
  Current allocation mode is local
  Current file position is 4
  GPL Ghostscript 9.21: Unrecoverable error, exit code 1</p>