Vì vậy, tôi muốn sử dụng Ghostscript để chuyển đổi các tệp được tạo ở định dạng PCL thành PostScript.Sử dụng Ghostscript để chuyển đổi PCL thành PostScript
Đó chính là ý chính của vấn đề của tôi. Tôi chỉ đơn giản là cố gắng để chạy nó trên dòng lệnh, nhưng trong giai đoạn cuối cùng nó sẽ phải được chạy trên một lệnh lp như lp -d < gs cái gì đó một cái gì đó
GPL Ghostscript 9.00 (2010-09-14) Tôi sẽ chạy trên máy chủ Solaris 10 nhưng tôi tin rằng bất kỳ hệ thống Unix nào cũng hoạt động tương tự.
bash-3.00# /usr/local/bin/gs -sDEVICE=pswrite -dLanguageLevel=1 -dNOPAUSE -dBATCH -dSAFER -sOutputFile=output.ps cms-form.pcl
GPL Ghostscript 9.00 (2010-09-14)
Copyright (C) 2010 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefined in &k2G-210z100u0l6d0e63fa0V
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop 1787 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:1154/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)--
Current allocation mode is local
Current file position is 30
GPL Ghostscript 9.00: Unrecoverable error, exit code 1