PCLエスケープシーケンスでファイルを印刷する方法


8

私はCUPSを持っていて、印刷したいドキュメントの生のPCLフォーマットを生成するプログラムを使用しています。

プレーンテキストファイルの印刷には問題はありませんlp filenameが、PCLまたはESC / Pエスケープシーケンスが含まれているファイルを指定すると、この新しい印刷ジョブの完了ステータスがすぐに表示されます-プリンターの反応はありません。以下のそれぞれを試してみたときにも同じことが起こります。

lpr -l filename
lp -o raw filename
lp -o document-format=application/octet-stream filename
lp -o document-format=application/octet-raw filename
lp -o document-format=application/octet-raster filename

manでもcupsのドキュメントでも、印刷コマンドでフィルター/ドライバータイプが定義されたファイルを印刷する方法(直接pclまたはesc / pを送信)を見つけることができませんでした。

2台のHPプリンターDeskJet 640CとD2460で印刷してみました。

私からのprinters.conf関連があると思う部分:

...
Type
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-raster 100 rastertogutenprint.5.2
Accepting Yes
...
ErrorPolicy stop-printer
...

私のD2460プリンターのppdファイルから関連があると思われる部分:

...
*TTRasterizer: Type42
...
*hpPrinterLanguage: "lidil"
*hpPrinterPlatform: "dj3600"
...
*cupsFilter: "application/vnd.cups-raster 0 hpcups"
...

コメントで、この問題に関連すると思われる場合は、構成ファイルから表示する他のオプションを要求してください。

lp -o raw filenameaccess_logで発行した後の私のログ:

localhost - - [date] "POST /printers/printername HTTP/1.1" 200 390 Create-Job successful-ok
localhost - - [date] "POST /printers/printername HTTP/1.1" 200 1894 Send-Document successful-ok

error_log:

D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: skipping getpeercon()
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: 13 from localhost (Domain)
D [04/Dec/2013:10:48:51 +0200] Report: clients=4
D [04/Dec/2013:10:48:51 +0200] Report: jobs=59
D [04/Dec/2013:10:48:51 +0200] Report: jobs-active=1
D [04/Dec/2013:10:48:51 +0200] Report: printers=2
D [04/Dec/2013:10:48:51 +0200] Report: printers-implicit=0
D [04/Dec/2013:10:48:51 +0200] Report: stringpool-string-count=4354
D [04/Dec/2013:10:48:51 +0200] Report: stringpool-alloc-bytes=8592
D [04/Dec/2013:10:48:51 +0200] Report: stringpool-total-bytes=90176
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 1.1 CUPS-Get-Default 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Default
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Default (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Not busy
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 POST /printers/ujhp HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 1.1 Create-Job 1
D [04/Dec/2013:10:48:51 +0200] Create-Job ipp://localhost:631/printers/ujhp
D [04/Dec/2013:10:48:51 +0200] add_job: setting context of job to UNKNOWN SL
D [04/Dec/2013:10:48:51 +0200] cupsdMarkDirty(----J-)
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] add_job: requesting-user-name="root"
I [04/Dec/2013:10:48:51 +0200] [Job 80] Adding start banner page "none".
D [04/Dec/2013:10:48:51 +0200] cupsdMarkDirty(-----S)
I [04/Dec/2013:10:48:51 +0200] [Job 80] Queued on "ujhp" by "root".
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for Create-Job (ipp://localhost:631/printers/ujhp) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 POST /printers/ujhp HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 1.1 Send-Document 1
D [04/Dec/2013:10:48:51 +0200] Send-Document ipp://localhost:631/printers/ujhp
D [04/Dec/2013:10:48:51 +0200] cupsdIsAuthorized: requesting-user-name="root"
D [04/Dec/2013:10:48:51 +0200] cupsdMarkDirty(----J-)
I [04/Dec/2013:10:48:51 +0200] [Job 80] File of type application/vnd.cups-raw queued by "root".
I [04/Dec/2013:10:48:51 +0200] [Job 80] Adding end banner page "none".
D [04/Dec/2013:10:48:51 +0200] cupsdMarkDirty(----J-)
D [04/Dec/2013:10:48:51 +0200] cupsdMarkDirty(----J-)
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdMarkDirty(-----S)
D [04/Dec/2013:10:48:51 +0200] [Job 80] job-sheets=none,none
D [04/Dec/2013:10:48:51 +0200] [Job 80] argv[0]="ujhp"
D [04/Dec/2013:10:48:51 +0200] [Job 80] argv[1]="80"
D [04/Dec/2013:10:48:51 +0200] [Job 80] argv[2]="root"
D [04/Dec/2013:10:48:51 +0200] [Job 80] argv[3]="filename"
D [04/Dec/2013:10:48:51 +0200] [Job 80] argv[4]="1"
D [04/Dec/2013:10:48:51 +0200] [Job 80] argv[5]="finishings=3 media=iso_a4_210x297mm number-up=1 scaling=98 job-uuid=urn:uuid:59dd158c-9473-30a3-478c-0202bcbcb78b job-originating-host-name=localhost"
D [04/Dec/2013:10:48:51 +0200] [Job 80] argv[6]="/var/spool/cups/d00080-001"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[2]="CUPS_DOCROOT=/usr/share/cups/www"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[8]="HOME=/var/spool/cups/tmp"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[10]="SERVER_ADMIN=root@serverlinux.hamorhq.ro"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[11]="SOFTWARE=CUPS/1.4.2"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[13]="USER=root"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[16]="IPP_PORT=631"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[17]="CHARSET=utf-8"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[18]="LANG=en_US.UTF-8"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[19]="PPD=/etc/cups/ppd/ujhp.ppd"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[20]="RIP_MAX_CACHE=128m"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[21]="CONTENT_TYPE=application/vnd.cups-raw"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[22]="DEVICE_URI=usb://HP/Deskjet%20D2400%20series?serial=TH7BE541VR04Y7"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[23]="PRINTER_INFO=HP Deskjet D2400 series"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[24]="PRINTER_LOCATION=serverlinux.hamorhq.ro"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[25]="PRINTER=ujhp"
D [04/Dec/2013:10:48:51 +0200] [Job 80] envp[26]="CUPS_FILETYPE=document"
I [04/Dec/2013:10:48:51 +0200] [Job 80] Started backend /usr/lib/cups/backend/usb (PID 4967)
D [04/Dec/2013:10:48:51 +0200] cupsdMarkDirty(-----S)
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for Send-Document (ipp://localhost:631/printers/ujhp) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Printing jobs and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 WAITING Closing on EOF
D [04/Dec/2013:10:48:51 +0200] cupsdCloseClient: 13
D [04/Dec/2013:10:48:51 +0200] [Job 80] STATE: +connecting-to-device
D [04/Dec/2013:10:48:51 +0200] cupsdMarkDirty(-----S)
D [04/Dec/2013:10:48:51 +0200] [Job 80] Printer using device file "/dev/usblp0"...
D [04/Dec/2013:10:48:51 +0200] [Job 80] STATE: -connecting-to-device
D [04/Dec/2013:10:48:51 +0200] cupsdMarkDirty(-----S)
D [04/Dec/2013:10:48:51 +0200] [Job 80] PAGE: 1 1
D [04/Dec/2013:10:48:51 +0200] Discarding unused job-progress event...
D [04/Dec/2013:10:48:51 +0200] [Job 80] backendRunLoop(print_fd=5, device_fd=6, snmp_fd=-1, addr=(nil), use_bc=1, side_cb=0x4425d0)
D [04/Dec/2013:10:48:51 +0200] [Job 80] Read 1635 bytes of print data...
D [04/Dec/2013:10:48:51 +0200] [Job 80] STATE: -media-empty-warning
D [04/Dec/2013:10:48:51 +0200] [Job 80] STATE: -offline-report
I [04/Dec/2013:10:48:51 +0200] [Job 80] Printer is now online.
D [04/Dec/2013:10:48:51 +0200] [Job 80] Wrote 1635 bytes of print data...
I [04/Dec/2013:10:48:51 +0200] [Job 80] Sent print file, 1635 bytes...
D [04/Dec/2013:10:48:51 +0200] cupsdMarkDirty(-----S)
D [04/Dec/2013:10:48:51 +0200] Discarding unused job-progress event...
D [04/Dec/2013:10:48:51 +0200] PID 4967 (/usr/lib/cups/backend/usb) exited with no errors.
D [04/Dec/2013:10:48:51 +0200] cupsdMarkDirty(-----S)
I [04/Dec/2013:10:48:51 +0200] [Job 80] Job completed.
D [04/Dec/2013:10:48:51 +0200] cupsdMarkDirty(----J-)
D [04/Dec/2013:10:48:51 +0200] cupsdMarkDirty(-----S)
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: skipping getpeercon()
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: 13 from localhost (Domain)
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: skipping getpeercon()
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: 15 from localhost:631 (IPv6)
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: skipping getpeercon()
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: 18 from localhost:631 (IPv6)
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 15 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 18 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 1.1 Get-Notifications 1
D [04/Dec/2013:10:48:51 +0200] Get-Notifications /
D [04/Dec/2013:10:48:51 +0200] cupsdIsAuthorized: requesting-user-name="z-laszlo"
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for Get-Notifications (/) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 15 1.1 Get-Jobs 1
D [04/Dec/2013:10:48:51 +0200] Get-Jobs ipp://localhost/printers/
D [04/Dec/2013:10:48:51 +0200] [Job 75] Loading attributes...
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 18 1.1 Get-Jobs 1
D [04/Dec/2013:10:48:51 +0200] Get-Jobs ipp://localhost/printers/
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 15 WAITING Closing on EOF
D [04/Dec/2013:10:48:51 +0200] cupsdCloseClient: 15
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 18 WAITING Closing on EOF
D [04/Dec/2013:10:48:51 +0200] cupsdCloseClient: 18
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: skipping getpeercon()
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: 15 from localhost:631 (IPv6)
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 15 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 15 1.1 Get-Notifications 1
D [04/Dec/2013:10:48:51 +0200] Get-Notifications /
D [04/Dec/2013:10:48:51 +0200] cupsdIsAuthorized: requesting-user-name="root"
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for Get-Notifications (/) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 15 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 15 1.1 Get-Job-Attributes 1
D [04/Dec/2013:10:48:51 +0200] Get-Job-Attributes ipp://localhost/jobs/80
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for Get-Job-Attributes (ipp://localhost/jobs/80) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 WAITING Closing on EOF
D [04/Dec/2013:10:48:51 +0200] cupsdCloseClient: 13
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: skipping getpeercon()
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: 13 from localhost (Domain)
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 1.1 Get-Notifications 1
D [04/Dec/2013:10:48:51 +0200] Get-Notifications /
D [04/Dec/2013:10:48:51 +0200] cupsdIsAuthorized: requesting-user-name="z-laszlo"
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for Get-Notifications (/) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 1.1 Get-Job-Attributes 1
D [04/Dec/2013:10:48:51 +0200] Get-Job-Attributes ipp://localhost/jobs/80
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for Get-Job-Attributes (ipp://localhost/jobs/80) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: skipping getpeercon()
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: 18 from localhost (Domain)
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 21 WAITING Closing on EOF
D [04/Dec/2013:10:48:51 +0200] cupsdCloseClient: 21
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 18 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 18 1.1 Get-Printer-Attributes 1
D [04/Dec/2013:10:48:51 +0200] Get-Printer-Attributes ipp://serverlinux.hamorhq.ro:0/printers/ujhp
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for Get-Printer-Attributes (ipp://serverlinux.hamorhq.ro:0/printers/ujhp) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 18 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 18 1.1 Get-Job-Attributes 1
D [04/Dec/2013:10:48:51 +0200] Get-Job-Attributes ipp://localhost/jobs/80
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for Get-Job-Attributes (ipp://localhost/jobs/80) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 WAITING Closing on EOF
D [04/Dec/2013:10:48:51 +0200] cupsdCloseClient: 13
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: skipping getpeercon()
D [04/Dec/2013:10:48:51 +0200] cupsdAcceptClient: 13 from localhost:631 (IPv6)
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 1.1 Get-Printer-Attributes 1
D [04/Dec/2013:10:48:51 +0200] Get-Printer-Attributes ipp://serverlinux.hamorhq.ro:0/printers/ujhp
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for Get-Printer-Attributes (ipp://serverlinux.hamorhq.ro:0/printers/ujhp) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 13 1.1 Get-Job-Attributes 1
D [04/Dec/2013:10:48:51 +0200] Get-Job-Attributes ipp://localhost/jobs/80
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for Get-Job-Attributes (ipp://localhost/jobs/80) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Printers 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Printers
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Classes 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Classes
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Classes (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Default 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Default
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Default (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 15 WAITING Closing on EOF
D [04/Dec/2013:10:48:51 +0200] cupsdCloseClient: 15
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Printers 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Printers
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Classes 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Classes
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Classes (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Default 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Default
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Default (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Printers 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Printers
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Classes 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Classes
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Classes (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Default 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Default
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Default (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Printers 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Printers
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Classes 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Classes
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Classes (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Default 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Default
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Default (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Printers 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Printers
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Classes 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Classes
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Classes (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 POST / HTTP/1.1
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Active clients and dirty files
D [04/Dec/2013:10:48:51 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2013:10:48:51 +0200] cupsdReadClient: 19 1.1 CUPS-Get-Default 1
D [04/Dec/2013:10:48:51 +0200] CUPS-Get-Default
D [04/Dec/2013:10:48:51 +0200] Returning IPP successful-ok for CUPS-Get-Default (no URI) from localhost
D [04/Dec/2013:10:48:51 +0200] cupsdSetBusyState: Dirty files

この質問のコメントには、PCLからPSへのゴーストスクリプトコンバータースクリプトを参照する2つのスレッドがありますが、このソリューションにはライセンスの制限があり、カップと小さなスクリプトまたは無料のスクリプトを構成することによる、より直接的/ネイティブなアプローチ、ソリューションを好むと思いました/アプリケーションは、PCLのカップのフィルタリングを無効にしたり、PCL(およびESC / P)をPDFに変換したりします(私が理解しているように、PDFはカップの方法です)。


ログはこれについて何を言っていますか?このスレッドによるとlpr -l -P 'myprinter' filename.pcl、フィルターをバイパスし、出力を直接プリンターに送信します。lists.apple.com/archives/printing/2003/Mar/msg00035.html
slm

はい、すでにそのスレッドを発見した、私のpage_logは述べているのみ:ローカルホスト名iso_a4_210x297mm -
obeliksz

実用的なソリューションのように見えますが、よりネイティブ/直接/無料のアプローチを使用したいghostpclソリューションで終わるスレッドを見つけました。forums.fedoraforum.org/showthread.php?t=88464
obeliksz

:このSO Q&A見つかりstackoverflow.com/questions/4684261/...
SLM

はい、ghostscriptは絶対的な無料のソリューションではなく、ネイティブな直接(構成、小さなスクリプト)ソリューションでもないので、fedoraforum.orgスレッドに関する以前のコメントとまったく同じです。
obeliksz 2013

回答:


3

cupsでフィルタリングせずにPCLコードを直接印刷するには、次のコマンドを使用する必要があります。

lpr -l filename
lp -o raw filename

私はそれをPDFに変換するよりもこの方法を好みますが、完全に無料のスクリプト/テクニックは知っておくと面白いでしょう。自分では見つかりませんでした。これについて言及するコメントは大歓迎です。


私の話はやや馬鹿げています:私は私の質問で述べた古いHPプリンター(インク切れのDeskJet 640C)から始めて、それがHPでありPCLを知っている必要があると仮定して、新しいHPプリンター(D2460)に切り替えました。私のこの仮定は間違っていました。プリンターはPCLコードを理解せず、すぐに完了したジョブを返しました。たくさんのドキュメントを読んだ後、私が試したコマンドは機能するはずなので、古いプリンターに戻りました。コードに小さな問題があり、問題の認識が難しくなりました(古いプリンターは2番目のコマンドでのみ移動を開始しました)。移動しました-万歳!:)


0

cupsの多くのディストリビューションは、デフォルトでraw印刷を無効にします。有効にする方法については、sambaとcupsを介してWindowsから印刷するためのチュートリアルを探してください。


おそらく、Cupsのraw印刷またはその回避策を有効にするチュートリアルを指摘するだけで十分でしょう。これには、sambaなどの別の主要なコンポーネントの設定は含まれません...このソリューションをLinuxにネイティブに実装したいと思います。
obeliksz 2013

あなたは私を誤解しました。サンバは必要ありません。あなたがするのと同じことが必要です。
13

そして、あなたはこのようなスレッドを参照している:en.opensuse.org/...ここに解決策は、私は私の質問でそれを説明するように、私はすでに試した事ことを、-o生のパラメータを置くように見えます。
obeliksz 2013

弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.