Autor Wątek: [DRUKARKA] [solved] Problem z wydrukiem pdf na hp5652  (Przeczytany 3918 razy)

0 użytkowników i 1 Gość przegląda ten wątek.

mariobros

  • Początkujący
  • *
  • Wiadomości: 9
[solved] Problem z wydrukiem pdf na hp5652
« dnia: Grudzień 20, 2016, 06:43:11 pm »
Witam.

Mam problem z wydrukiem plików w formacie pdf. Zwykłe pliki tekstowe są drukowane - z libreoffice też drukuje. Podaje log błędu:

Cytuj
E [20/Dec/2016:19:30:23 +0100] [Job 15] loadFile failed: temp file: not a PDF file
E [20/Dec/2016:19:30:23 +0100] [Job 15] Can\'t detect file type
E [20/Dec/2016:19:30:23 +0100] [Job 15] Job stopped due to filter errors; please consult the error_log file for details.

pozdrawiam
m
« Ostatnia zmiana: Luty 20, 2017, 08:09:17 pm wysłana przez Stefan »

Fisiu

  • Geeko's friend
  • Maniak SUSE
  • *
  • Wiadomości: 4633
      • la manzana
Odp: Problem z wydrukiem pdf na hp5652
« Odpowiedź #1 dnia: Grudzień 20, 2016, 07:55:36 pm »
No i co znajduje się w rzeczonym pliku 'error_log'?

mariobros

  • Początkujący
  • *
  • Wiadomości: 9
Odp: Problem z wydrukiem pdf na hp5652
« Odpowiedź #2 dnia: Grudzień 21, 2016, 09:04:40 am »
Podaje cały raport o błędzie:

E [20/Dec/2016:19:30:23 +0100] [Job 15] loadFile failed: temp file: not a PDF file
E [20/Dec/2016:19:30:23 +0100] [Job 15] Can\'t detect file type
E [20/Dec/2016:19:30:23 +0100] [Job 15] Job stopped due to filter errors; please consult the error_log file for details.
D [20/Dec/2016:19:30:23 +0100] [Job 15] The following messages were recorded from 19:30:22 to 19:30:23
D [20/Dec/2016:19:30:23 +0100] [Job 15] Adding start banner page "none".
D [20/Dec/2016:19:30:23 +0100] [Job 15] Queued on "deskjet_5600_2" by "mariusz".
D [20/Dec/2016:19:30:23 +0100] [Job 15] Auto-typing file...
D [20/Dec/2016:19:30:23 +0100] [Job 15] Request file type is application/postscript.
D [20/Dec/2016:19:30:23 +0100] [Job 15] File of type application/postscript queued by "mariusz".
D [20/Dec/2016:19:30:23 +0100] [Job 15] Adding end banner page "none".
D [20/Dec/2016:19:30:23 +0100] [Job 15] time-at-processing=1482258622
D [20/Dec/2016:19:30:23 +0100] [Job 15] 4 filters for job:
D [20/Dec/2016:19:30:23 +0100] [Job 15] pstopdf (application/postscript to application/pdf, cost 0)
D [20/Dec/2016:19:30:23 +0100] [Job 15] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [20/Dec/2016:19:30:23 +0100] [Job 15] gstoraster (application/vnd.cups-pdf to application/vnd.cups-raster, cost 99)
D [20/Dec/2016:19:30:23 +0100] [Job 15] hpcups (application/vnd.cups-raster to printer/deskjet_5600_2, cost 0)
D [20/Dec/2016:19:30:23 +0100] [Job 15] job-sheets=none,none
D [20/Dec/2016:19:30:23 +0100] [Job 15] argv[0]="deskjet_5600_2"
D [20/Dec/2016:19:30:23 +0100] [Job 15] argv[1]="15"
D [20/Dec/2016:19:30:23 +0100] [Job 15] argv[2]="mariusz"
D [20/Dec/2016:19:30:23 +0100] [Job 15] argv[3]="original"
D [20/Dec/2016:19:30:23 +0100] [Job 15] argv[4]="1"
D [20/Dec/2016:19:30:23 +0100] [Job 15] argv[5]="noCollate finishings=3 fit-to-page media=Letter number-up=1 outputorder=normal page-bottom=10 page-left=10 page-right=10 page-top=10 portrait sides=one-sided job-uuid=urn:uuid:7decb109-e463-3fa1-5812-30f3818c85ad job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1482258622 time-at-processing=1482258622 document-name-supplied=okularWy4878.ps Duplex=None PageSize=Letter"
D [20/Dec/2016:19:30:23 +0100] [Job 15] argv[6]="/var/spool/cups/d00015-001"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[2]="CUPS_DOCROOT=/usr/share/cups/webcontent"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[7]="CUPS_STATEDIR=/run/cups"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[8]="HOME=/var/spool/cups/tmp"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[10]="SERVER_ADMIN=root@linux"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[11]="SOFTWARE=CUPS/2.1.3"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[13]="USER=root"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[14]="CUPS_MAX_MESSAGE=2047"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[15]="CUPS_SERVER=/run/cups/cups.sock"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[17]="IPP_PORT=631"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[18]="CHARSET=utf-8"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[19]="LANG=pl_PL.UTF-8"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[20]="PPD=/etc/cups/ppd/deskjet_5600_2.ppd"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[21]="RIP_MAX_CACHE=128m"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[22]="CONTENT_TYPE=application/postscript"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[23]="DEVICE_URI=hp:/usb/deskjet_5600?serial=MY44L4M0Q189"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[24]="PRINTER_INFO=HP Deskjet 5652, hpcups 3.16.8"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[25]="PRINTER_LOCATION="
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[26]="PRINTER=deskjet_5600_2"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[27]="PRINTER_STATE_REASONS=none"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[28]="CUPS_FILETYPE=document"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-raster"
D [20/Dec/2016:19:30:23 +0100] [Job 15] envp[30]="AUTH_I****"
D [20/Dec/2016:19:30:23 +0100] [Job 15] Started filter /usr/lib/cups/filter/pstopdf (PID 4892)
D [20/Dec/2016:19:30:23 +0100] [Job 15] Started filter /usr/lib/cups/filter/pdftopdf (PID 4893)
D [20/Dec/2016:19:30:23 +0100] [Job 15] Started filter /usr/lib/cups/filter/gstoraster (PID 4894)
D [20/Dec/2016:19:30:23 +0100] [Job 15] Started filter /usr/lib/cups/filter/hpcups (PID 4895)
D [20/Dec/2016:19:30:23 +0100] [Job 15] Started backend /usr/lib/cups/backend/hp (PID 4896)
D [20/Dec/2016:19:30:23 +0100] [Job 15] pstopdf 6 args: 15 mariusz original 1 noCollate finishings=3 fit-to-page media=Letter number-up=1 outputorder=normal page-bottom=10 page-left=10 page-right=10 page-top=10 portrait sides=one-sided job-uuid=urn:uuid:7decb109-e463-3fa1-5812-30f3818c85ad job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1482258622 time-at-processing=1482258622 document-name-supplied=okularWy4878.ps Duplex=None PageSize=Letter /var/spool/cups/d00015-001
D [20/Dec/2016:19:30:23 +0100] [Job 15] PPD: /etc/cups/ppd/deskjet_5600_2.ppd
D [20/Dec/2016:19:30:23 +0100] [Job 15] Resolution:
D [20/Dec/2016:19:30:23 +0100] [Job 15] Orientation requested: 0
D [20/Dec/2016:19:30:23 +0100] [Job 15] Page size: Letter
D [20/Dec/2016:19:30:23 +0100] [Job 15] Width: 612, height: 792, absolute margins: 9, 9, 603, 783
D [20/Dec/2016:19:30:23 +0100] [Job 15] /usr/lib/cups/filter/pstopdf: line 170: bc: command not found
D [20/Dec/2016:19:30:23 +0100] [Job 15] PID 4892 (/usr/lib/cups/filter/pstopdf) stopped with status 127 (File too large)
D [20/Dec/2016:19:30:23 +0100] [Job 15] Hint: Try setting the LogLevel to "debug" to find out more.
D [20/Dec/2016:19:30:23 +0100] [Job 15] PID 4893 (/usr/lib/cups/filter/pdftopdf) stopped with status 1.
D [20/Dec/2016:19:30:23 +0100] [Job 15] Hint: Try setting the LogLevel to "debug" to find out more.
D [20/Dec/2016:19:30:23 +0100] [Job 15] PID 4894 (/usr/lib/cups/filter/gstoraster) stopped with status 1.
D [20/Dec/2016:19:30:23 +0100] [Job 15] Hint: Try setting the LogLevel to "debug" to find out more.
D [20/Dec/2016:19:30:23 +0100] [Job 15] PID 4895 (/usr/lib/cups/filter/hpcups) stopped with status 1.
D [20/Dec/2016:19:30:23 +0100] [Job 15] Hint: Try setting the LogLevel to "debug" to find out more.
D [20/Dec/2016:19:30:23 +0100] [Job 15] PID 4896 (/usr/lib/cups/backend/hp) exited with no errors.
D [20/Dec/2016:19:30:23 +0100] [Job 15] prnt/hpcups/HPCupsFilter.cpp 565: cupsRasterOpen failed, fd = 0
D [20/Dec/2016:19:30:23 +0100] [Job 15] prnt/backend/hp.c 919: ERROR: null print job total=0
D [20/Dec/2016:19:30:23 +0100] [Job 15] End of messages
D [20/Dec/2016:19:30:23 +0100] [Job 15] printer-state=3(idle)
D [20/Dec/2016:19:30:23 +0100] [Job 15] printer-state-message="Can't detect file type"
D [20/Dec/2016:19:30:23 +0100] [Job 15] printer-state-reasons=none

Fisiu

  • Geeko's friend
  • Maniak SUSE
  • *
  • Wiadomości: 4633
      • la manzana
Odp: Problem z wydrukiem pdf na hp5652
« Odpowiedź #3 dnia: Grudzień 22, 2016, 12:16:50 pm »
To co z logu można wyciągnąć to:
/usr/lib/cups/filter/pstopdf: line 170: bc: command not foundNie ma zainstalowanego bc (kalkulator :D) -> choć tym bym się nie przejmował

PID 4892 (/usr/lib/cups/filter/pstopdf) stopped with status 127 (File too large)Jaki jest rozmiar tego PDFa? PDF jest konwertowany do PS, może plik PS jest za duży? Możesz też sam przekonwertować tego PDFa do PSa przy użyciu pdf2ps (cześć ghostscripta).

prnt/hpcups/HPCupsFilter.cpp 565: cupsRasterOpen failed, fd = 0
prnt/backend/hp.c 919: ERROR: null print job total=0
printer-state-message="Can't detect file type"
Czy ten pdf, jest na pewno prawidłowym plikiem pdf? Próbowałeś ten plik otworzyć za pomocą np. LibreOffice (chyba Draw "łyka" pdfy) i z poziomu LibreOffice wydrukować?

mariobros

  • Początkujący
  • *
  • Wiadomości: 9
Odp: Problem z wydrukiem pdf na hp5652
« Odpowiedź #4 dnia: Grudzień 24, 2016, 10:04:18 am »
Plik pdf otwarty w libreoffice draw da się wydrukować  :lol:. Plik który drukuje nie jest wielki ~53 KiB.

mariobros

  • Początkujący
  • *
  • Wiadomości: 9
Odp: Problem z wydrukiem pdf na hp5652
« Odpowiedź #5 dnia: Styczeń 04, 2017, 06:05:59 pm »
Ku mojemu zdziwieniu, pomogło zainstalowanie bc.