You are not logged in.
Hi,
my printer is the Brother DCP-J315W. I installed the driver and cups via yaourt with this package https://aur.archlinux.org/packages.php?ID=49576
After that I executed the scripts in /usr/local/Brother/Printer/dcpj315w/cupswrapper/ by hand. A default printer was created, which I deleted because I connect my printer using WiFi.
After starting cups I added the printer using the WiFi connection and printing a testpage in cups works fine. Printing with LibreOffice Writer is also not a problem. It seems the driver is working.
But my problem is now the get printing to work with the flashplayer. Everytime I want to print using the flashplayer printing dialog the job appears in cups job history but gets aborted with this message:
"No %%Pages: comment in header!"
Here is the debug log:
D [31/Aug/2011:20:04:54 +0200] add_job: requesting-user-name="paul"
I [31/Aug/2011:20:04:54 +0200] [Job 20] Adding start banner page "none".
D [31/Aug/2011:20:04:54 +0200] Discarding unused job-created event...
I [31/Aug/2011:20:04:54 +0200] [Job 20] Queued on "Brother_DCP-J315W" by "paul".
D [31/Aug/2011:20:04:54 +0200] Returning IPP successful-ok for Create-Job (ipp://localhost:631/printers/Brother_DCP-J315W) from localhost
D [31/Aug/2011:20:04:54 +0200] cupsdSetBusyState: Dirty files
D [31/Aug/2011:20:04:54 +0200] cupsdReadClient: 14 POST /printers/Brother_DCP-J315W HTTP/1.1
D [31/Aug/2011:20:04:54 +0200] cupsdSetBusyState: Active clients and dirty files
D [31/Aug/2011:20:04:54 +0200] cupsdAuthorize: No authentication data provided.
D [31/Aug/2011:20:04:54 +0200] cupsdReadClient: 14 1.1 Send-Document 1
D [31/Aug/2011:20:04:55 +0200] cupsdReadClient: 13 WAITING Closing on EOF
D [31/Aug/2011:20:04:55 +0200] cupsdCloseClient: 13
D [31/Aug/2011:20:05:09 +0200] Send-Document ipp://localhost:631/printers/Brother_DCP-J315W
D [31/Aug/2011:20:05:09 +0200] cupsdIsAuthorized: requesting-user-name="paul"
D [31/Aug/2011:20:05:09 +0200] [Job 20] Auto-typing file...
D [31/Aug/2011:20:05:09 +0200] [Job 20] Request file type is application/postscript.
D [31/Aug/2011:20:05:09 +0200] cupsdMarkDirty(----J-)
I [31/Aug/2011:20:05:09 +0200] [Job 20] File of type application/postscript queued by "paul".
I [31/Aug/2011:20:05:09 +0200] [Job 20] Adding end banner page "none".
D [31/Aug/2011:20:05:09 +0200] cupsdMarkDirty(----J-)
D [31/Aug/2011:20:05:09 +0200] cupsdMarkDirty(----J-)
D [31/Aug/2011:20:05:09 +0200] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [31/Aug/2011:20:05:09 +0200] Discarding unused printer-state-changed event...
D [31/Aug/2011:20:05:09 +0200] [Job 20] job-sheets=none,none
D [31/Aug/2011:20:05:09 +0200] [Job 20] argv[0]="Brother_DCP-J315W"
D [31/Aug/2011:20:05:09 +0200] [Job 20] argv[1]="20"
D [31/Aug/2011:20:05:09 +0200] [Job 20] argv[2]="paul"
D [31/Aug/2011:20:05:09 +0200] [Job 20] argv[3]="(stdin)"
D [31/Aug/2011:20:05:09 +0200] [Job 20] argv[4]="1"
D [31/Aug/2011:20:05:09 +0200] [Job 20] argv[5]="finishings=3 number-up=1 job-uuid=urn:uuid:9b703ee3-ab06-3497-4d82-cbe172250527 job-originating-host-name=localhost time-at-creation=1314813894 time-at-processing=1314813909 AP_D_InputSlot="
D [31/Aug/2011:20:05:09 +0200] [Job 20] argv[6]="/var/spool/cups/d00020-001"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[8]="HOME=/var/spool/cups/tmp"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[10]="SERVER_ADMIN=root@archdesk"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[11]="SOFTWARE=CUPS/1.4.8"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[13]="USER=root"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[16]="IPP_PORT=631"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[17]="CHARSET=utf-8"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[18]="LANG=de_DE.UTF-8"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[19]="PPD=/etc/cups/ppd/Brother_DCP-J315W.ppd"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[20]="RIP_MAX_CACHE=8m"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[21]="CONTENT_TYPE=application/postscript"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[22]="DEVICE_URI=lpd://192.168.0.104/BINARY_P1"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[23]="PRINTER_INFO=Brother DCP-J315W"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[24]="PRINTER_LOCATION=Local Printer"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[25]="PRINTER=Brother_DCP-J315W"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[26]="CUPS_FILETYPE=document"
D [31/Aug/2011:20:05:09 +0200] [Job 20] envp[27]="FINAL_CONTENT_TYPE=printer/Brother_DCP-J315W"
I [31/Aug/2011:20:05:09 +0200] [Job 20] Started filter /usr/lib/cups/filter/pstops (PID 2787)
I [31/Aug/2011:20:05:09 +0200] [Job 20] Started filter /usr/lib/cups/filter/brlpdwrapperdcpj315w (PID 2788)
I [31/Aug/2011:20:05:09 +0200] [Job 20] Started backend /usr/lib/cups/backend/lpd (PID 2789)
D [31/Aug/2011:20:05:09 +0200] Discarding unused job-state-changed event...
D [31/Aug/2011:20:05:09 +0200] Returning IPP successful-ok for Send-Document (ipp://localhost:631/printers/Brother_DCP-J315W) from localhost
D [31/Aug/2011:20:05:09 +0200] cupsdSetBusyState: Printing jobs and dirty files
D [31/Aug/2011:20:05:09 +0200] cupsdReadClient: 14 WAITING Closing on EOF
D [31/Aug/2011:20:05:09 +0200] cupsdCloseClient: 14
D [31/Aug/2011:20:05:09 +0200] [Job 20] STATE: +connecting-to-device
D [31/Aug/2011:20:05:09 +0200] Discarding unused printer-state-changed event...
D [31/Aug/2011:20:05:09 +0200] [Job 20] Looking up "192.168.0.104"...
D [31/Aug/2011:20:05:09 +0200] [Job 20] backendRunLoop(print_fd=-1, device_fd=6, snmp_fd=5, addr=0x7fe15bb5d0d8, use_bc=0, side_cb=0x7fe15b1c5330)
D [31/Aug/2011:20:05:09 +0200] [Job 20] Page = 595x842; 14,14 to 581,825
D [31/Aug/2011:20:05:09 +0200] [Job 20] slow_collate=0, slow_duplex=0, slow_order=1
D [31/Aug/2011:20:05:09 +0200] [Job 20] Before copy_comments - %!PS-Adobe-3.0
D [31/Aug/2011:20:05:09 +0200] [Job 20] %!PS-Adobe-3.0
D [31/Aug/2011:20:05:09 +0200] [Job 20] %%BoundingBox: 0 0 612 792
E [31/Aug/2011:20:05:09 +0200] [Job 20] No %%Pages: comment in header!
D [31/Aug/2011:20:05:09 +0200] [Job 20] Set job-printer-state-message to "No %%Pages: comment in header!", current level=ERROR
D [31/Aug/2011:20:05:09 +0200] Discarding unused job-progress event...
D [31/Aug/2011:20:05:09 +0200] Discarding unused printer-state-changed event...
D [31/Aug/2011:20:05:09 +0200] [Job 20] Before copy_prolog - 0 792 translate
D [31/Aug/2011:20:05:11 +0200] cupsdReadClient: 12 GET /admin/log/error_log HTTP/1.1
D [31/Aug/2011:20:05:11 +0200] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [31/Aug/2011:20:05:11 +0200] cupsdAuthorize: No authentication data provided.
D [31/Aug/2011:20:05:11 +0200] cupsdSetBusyState: Printing jobs and dirty files
D [31/Aug/2011:20:05:14 +0200] [Job 20] Before copy_setup - DEBUG: Before page loop - DEBUG: Wrote 0 pages...
D [31/Aug/2011:20:05:14 +0200] PID 2787 (/usr/lib/cups/filter/pstops) exited with no errors.
E [31/Aug/2011:20:05:14 +0200] [Job 20] No pages found!
D [31/Aug/2011:20:05:14 +0200] Discarding unused job-progress event...
D [31/Aug/2011:20:05:14 +0200] Discarding unused printer-state-changed event...
D [31/Aug/2011:20:05:14 +0200] [Job 20] STATE: +connecting-to-device
D [31/Aug/2011:20:05:14 +0200] [Job 20] Looking up "192.168.0.104"...
D [31/Aug/2011:20:05:14 +0200] [Job 20] Connecting to 192.168.0.104:515 for printer BINARY_P1
I [31/Aug/2011:20:05:14 +0200] [Job 20] Mit Drucker verbinden …
D [31/Aug/2011:20:05:14 +0200] Discarding unused job-progress event...
D [31/Aug/2011:20:05:14 +0200] Discarding unused printer-state-changed event...
D [31/Aug/2011:20:05:14 +0200] PID 2788 (/usr/lib/cups/filter/brlpdwrapperdcpj315w) exited with no errors.
Thank you!
EDIT
I've found a workaround using a Virtual PDF Printer (cups-pdf package).
The strange thing is that while printing the flashplayer content to a pdf, the same error occurs. But the pdf gets generated and the is printable.
Would be better without the need of this workaround, but it's better than turning on a windows system everytime I want to print something from flash...
Last edited by @op (2011-08-31 23:17:10)
Offline
My workaround by using a virtual PDF printer isn't as good as I hoped. If the files generated by printing with flashplayer exceed about 3 pages the temp file generated in /var/spool/cups is so big that it exceeds my partitions size.
The file can get up to more than 1GB. With documents from one or two pages the temp file is about 500MB, the correct pdf gets generated after that and is placed under /var/spool/cups-pdf/<user> and is about 500kb small. The very big temp file get's deleted after that.
Why is this temp file so big and how can I avoid it getting so big?
Last edited by @op (2011-09-01 20:30:30)
Offline