Bug 316968 - Printing a pdf file doesn't add it to the print queue, nor does it generate an error
Summary: Printing a pdf file doesn't add it to the print queue, nor does it generate a...
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.15.5
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-18 13:26 UTC by Odipides
Modified: 2014-05-08 09:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Odipides 2013-03-18 13:26:41 UTC
Platform - Linux Mint 14, KDE - fully updated
KDE Platform Version 4.9.5

I have a pdf file which I can view perfectly in Okular. When I try to print it to an HP 1022, USB attached device, Okular doesn't generate an error but the document never appears on the print queue.

lpusb output (sees the device - 003:003)
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 003: ID 03f0:2c17 Hewlett-Packard LaserJet 1022
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0955:7002 NVidia Corp. 
Bus 001 Device 004: ID 0408:2fb1 Quanta Computer, Inc. 
Bus 002 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 004: ID 8086:0189 Intel Corp.

USB make-URI output
~ $ hp-makeuri 003:003

HP Linux Imaging and Printing System (ver. 3.12.6)
Device URI Creation Utility ver. 5.0

Copyright (c) 2001-14 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

CUPS URI: hp:/usb/HP_LaserJet_1022?serial=JM0GRHC

output from lsmod (usbp is present)
lsmod | grep usb
usblp                  18140  0 
btusb                  18334  0 
bluetooth             209199  22 bnep,rfcomm,btusb
usbhid                 46947  1 hid_logitech_dj
hid                   100366  2 hid_logitech_dj,usbhid

I can print the document from Evince without any trouble and I've checked the CUPS log, but there is nothing (new) in it after a print attempt


Reproducible: Always

Steps to Reproduce:
1. USB connected HP 1022 using the default driver
2. Load the pdf into Okular (Sample on http://dl.dropbox.com/u/1166899/UK-Tax.pdf) Although the problem appears to be independent of the pdf document - all the ones I have tried have failed.
3. Print the document
Actual Results:  
Examination of the HP print queue shows it's empty

Expected Results:  
The document should print (it does with Evince)
Comment 1 Albert Astals Cid 2013-03-18 22:02:08 UTC
Do you get any error in the okular UI?
Comment 2 Odipides 2013-03-19 09:38:50 UTC
Nope, nothing at all. Are there any logs I can look at?
Comment 3 Albert Astals Cid 2013-03-19 19:36:05 UTC
Not much logs, i find it really strange you get *nothing*.

Does print preview work? Does printing to PDF/PS file work?
Comment 4 Odipides 2013-03-21 11:53:37 UTC
Hi,I've sent a link to an mpeg file I've shared on google drive - you'll be able to see the problem in it's natural habitat.

thanksPaul

> From: aacid@kde.org
> To: sa0836561663@hotmail.com
> Subject: [okular] [Bug 316968] Printing a pdf file doesn't add it to the print queue, nor does it generate an error
> Date: Tue, 19 Mar 2013 19:36:05 +0000
> 
> https://bugs.kde.org/show_bug.cgi?id=316968
> 
> --- Comment #3 from Albert Astals Cid <aacid@kde.org> ---
> Not much logs, i find it really strange you get *nothing*.
> 
> Does print preview work? Does printing to PDF/PS file work?
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 5 Albert Astals Cid 2013-03-21 22:28:41 UTC
Sure, i never say i did not believe you :-)

Ok, found something that should help, please run kdebugdialog, write okular on the search bar, and tick all the okular related entries.

Now go to okular and try to print, you should get something like 

okular(11404)/okular (app) Okular::FilePrinter::doPrintFiles: Executing "lpr" with arguments ("-P", "Deskjet-3050A-J611-series", "-#1", "-J", "saro_nocompartir.pdf", "-o", "media=A4", "-o", "portrait", "-o", "sides=one-sided", "-o", "outputorder=normal", "-o", "Collate=False", "-o", "OutputMode=FastDraft", "-r", "/tmp/kde-tsdgeos/okularm11404.ps")
Comment 6 Albert Astals Cid 2013-03-21 22:30:40 UTC
And then i forgot to ask anything.

The questions are two :D

Do you get anything like that?
What exactly?

And if you run something like
pdftops myfile.pdf myfile.ps
and then replicate the command line above changing the /tmp/kde-tsdgeos/okularm11404.ps with myfile.ps
does it work?
Comment 7 Albert Astals Cid 2014-05-08 09:45:47 UTC
No answer in more than 6 months