ghostscript 프로그램의 출력을 인쇄하는 방법

ghostscript 프로그램의 출력을 인쇄하는 방법

Linux에서 고스트스크립트 프로그램의 출력을 내 HP LaserJet 프린터로 어떻게 직접 지정합니까? 나의 최종 목표는 크기에 맞게 지도를 그리는 것입니다.자연 지구 데이터.

프린터의 테스트 페이지는 mm 눈금이 내 눈금자와 정확히 일치하여 완벽하므로 프린터 출력을 생성하는 소프트웨어가 이미 있어야 합니다.

이것은 86.6(x) x 173.2(y)mm 직사각형을 그리는 테스트 프로그램입니다.

%!
/Helvetica findfont 36 scalefont setfont
/mm { 25.4 div 72 mul }def
    newpath
    50.8 mm 101.6 mm moveto
    50.8 mm 101.6 mm 173.2 mm add lineto
    50.8 86.6 add mm 101.6 173.2 add mm lineto
    50.8 86.6 add mm 101.6 mm lineto
    closepath
    stroke
showpage

그리고 이것이 제가 시도한 결과입니다. 텍스트를 사용하지 않기 때문에 지금까지 오류 메시지를 무시했습니다.:

% gs -sOutputFile=HP_LaserJet_Professional_P_1102w GhostScript/Grid02.ps
GPL Ghostscript 9.14 (2014-03-26)
Copyright (C) 2014 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Can't find (or can't open) font file /usr/share/ghostscript/9.14/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Can't find (or can't open) font file /usr/share/ghostscript/9.14/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Querying operating system for font files...
Loading NimbusSanL-Regu font from /usr/share/fonts/default/Type1/n019003l.pfb... 3561652 2191972 5250028 3908193 1 done.
>>showpage, press <return> to continue<<

XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 62 requests (62 known processed) with 0 events remaining.

화면에는 사각형이 잘 표시되지만 프린터나 인쇄 대기열에는 아무 것도 표시되지 않습니다.

여기에 분명한 내용이 누락되었을 수 있습니다. 누구든지 도와주실 수 있나요? 그리고 이미 어딘가에서 질문하고 답변한 적이 있다면 사과드립니다.

관련 정보