Bug 161759 - print pdf produces no output
Summary: print pdf produces no output
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-07 18:55 UTC by Neal Becker
Modified: 2014-05-08 08:46 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neal Becker 2008-05-07 18:55:11 UTC
Version:           kdegraphics-4.0.3-3.fc9.x86_64 (using KDE 4.0.3)
Installed from:    Fedora RPMs
Compiler:          gcc-4.3 
OS:                Linux

For example, this:
http://bikemountainmama.homestead.com/registration_form_08.pdf

When printed, produces only a cover page.

Also, 'print to file' is greyed out.

acroread works fine.
Comment 1 Rex Dieter 2008-05-07 19:06:04 UTC
confirmed.  See also downstream report:
https://bugzilla.redhat.com/show_bug.cgi?id=445376
Comment 2 Pino Toscano 2008-05-07 19:16:03 UTC
> When printed, produces only a cover page.

Cannot reproduce here.
a) Is priting of other formats (eg PostScript, DjVu, etc) working?
b) What is your Poppler-Qt4 version?

> Also, 'print to file' is greyed out.

Not something that depends on Okular.
Comment 3 Rex Dieter 2008-05-07 19:24:04 UTC
poppler-qt4-0.8.0-3.fc9.x86_64
Comment 4 Neal Becker 2008-05-07 19:49:43 UTC
Actually, if I click on the link I mentioned above, I get 'open with okular' as a choice, and if I choose that, it opens, but File/Print isn't even selectable.

Only if I d/l to a local file can I even TRY to print it.
Comment 5 Pino Toscano 2008-05-07 19:56:44 UTC
> but File/Print isn't even selectable.

Fixed for KDE 4.0.4.
Comment 6 Kevin Kofler 2008-05-16 16:23:59 UTC
But it reportedly still fails to actually print. :-(
Comment 7 Rex Dieter 2008-05-16 16:25:04 UTC
Pino, what version(s) of poppler are you using that work?
Comment 8 Rex Dieter 2008-05-16 17:36:24 UTC
More testing (using kdegraphics-4.0.4 + poppler-0.8.1):
* printing postscript files is all fine and dandy.  prints all pages, print to file works.
* printing pdf, not so.  print to file (still) unavailable, and print to printer gets only 1st page.
Comment 9 Albert Astals Cid 2008-05-16 23:06:55 UTC
Print to file should not be available, that's not a bug.
Comment 10 S Clark 2008-05-19 22:56:10 UTC
I THINK this may be the same issue (still occurring in Okular 0.6.3/KDE 4.0.4) that I came here to report.

If it is, what I have been seeing is that Okular will not print the LAST page of a pdf (in which case, one-page PDF's don't print at all).  Print Preview seems to work normally, and SOMETHING is getting sent as a print job (I can see the printer  is receiving data, but it evidently never gets anything that compels it to spit out a page - it just reaches a "job is done" stage without printing anything.)  For multi-page pdf's, all but the last page seem to print okay (at least as of last time I tried it, in the Okular shipped in KDE 4.0.3)

Same pdf's print fine with Adobe's acrobat reader.  If I run a non-printing pdf through pdf2ps first, the resulting ps will print from Okular.
Comment 11 Pino Toscano 2008-05-19 23:03:48 UTC
@S Clark:
your problem is bug 160860.
Comment 12 Thomas Kamps 2008-06-01 15:17:46 UTC
With an pdf file printing dialog of okular only offers me to print to pdf to postscript. But the only choice in the printer-drop-down-menu ist the name of my printer. And i cannto change the output file

Workaround to print pdfs with okular:
1. print to pdf to postscript
2. open the postscript file with okular (perhaps you have to change the ending)
3. open print dialog
4. select "print to pdf" then select your printer
5. print.
Comment 13 Pino Toscano 2008-06-03 10:25:17 UTC
Which Qt version are you using?
Comment 14 Rex Dieter 2008-06-03 13:41:03 UTC
for me, qt-copy (qt-4.3.4 + qt-copy patches as of 2008-05-28)
Comment 15 Marcelo Sales 2008-06-13 02:57:06 UTC
Albert, why shouldn't the "print to file" option be enabled? It is in all  softwares I use here, but okular. In fact, it's enabled even in okular and works ok, as long as the opened file is not a PDF one.
Comment 16 Thomas Kamps 2008-06-25 16:23:35 UTC
Bug still present in Beta2
When ürinting a pf okular produces a file instead of printing it.
Comment 17 Rex Dieter 2008-07-23 17:43:23 UTC
Using kde-4.0.99, plus patched qt (from bug # 162793) I can print.  Looks fixed to me.

I'm still seeing symptoms of bug #160860 (not all pages printing), but that's a separate issue.

Comment 18 edgar klüsener 2008-08-07 00:02:52 UTC
bug still present in kde 4.1/ opensuse 11
Comment 19 Yuri Shirman 2008-08-08 05:19:26 UTC
I think I am seeing the same bug for a while. It is present in Fedora's test packages of KDE 4.1 (okular 0.7). I can print postscript files but not pdf. PDF files are sent to printer, cups reports that they printed, printer flashes for a while and it ends there.

I am also seeing what looks like a bug 167734 (which is marked as resolved) -- okular crashes on an attempt to preview print of pdf file. Because this happens only to pdf files, I thought the two could be connected, but maybe not
Comment 20 Pino Toscano 2008-08-10 15:57:33 UTC
@Thomas Kamps (comment #16):
your problem is bug #162793, not this one.

@Yuri Shirman (comment #19):
>  PDF files are sent to printer, cups reports that they printed, printer flashes for a while and it ends there.

Then this is more likely a printing/cups (or similar) issue, as it indicated Okular actually do send something (as opposed to the "nothing" reported here) to the printing system.
Comment 21 Johannes Köster 2008-08-11 11:11:13 UTC
I have the same problem here on archlinux. Printing from all other kde4.1 apps works flawlessly.
So it must be an okular issue
Comment 22 Willi Richert 2008-08-14 09:02:06 UTC
I am using kubuntu hardy: If I print using "PDF" printer it does not ask anything but places a file called <title of the pdf>.pdf, which however is a Postscript. The properties (like pages per sheet) are ignored.
Comment 23 Pino Toscano 2008-08-15 11:26:52 UTC
@anybody:
please please please, please, *check* whether there are no results at all, or a new PDF is written in your home directory. In case you get a PDF written, then your bug is bug #162793, not this one.
Comment 24 Johannes Köster 2008-08-20 22:11:12 UTC
There is no new PDF written in my home Directory.
Comment 25 Yuri Shirman 2008-08-20 22:28:46 UTC
I can't find any files in the home directory or anywhere else created by attempt to print in okular. As mentioned earlier, I can print other formats (postscript in particular) from okular. I can also print pdf by using, say, evince -- which seems to indicate that this is not cups or not only cups problem.

Yuri Shirman
Comment 26 Dimitrios Glentadakis 2008-10-23 21:23:23 UTC
i have the same probleme, i cannot print the pdf documents inside konqueror
okular-4.1.2-2mdv2009.0
libokularcore1-4.1.2-2mdv2009.0

Comment 27 francesco 2009-01-20 19:57:02 UTC
I have this bug too on my debian sid x64 (i installed okular from experimental okular_4%3a4.1.96+svn911691-0r1_amd64.deb) 
when i push print the printer does not do anything ... (for my luck gimp can print pdf)
Comment 28 André Fettouhi 2009-10-04 20:35:55 UTC
I have the same problem with KDE 4.3.1 on Arch Linux 32bit. Printing of pdf files doesn't work properly, sometime I no output at all and other times it is messed up, e.g. the text is way off center (shifted in upper right corner). This happens both for one-page documents and documents consisting of several pages. Printing is fine in Adobe Reader and Gnome. My Printer is a Brother DCP7045N.

Regards

André
Comment 29 André Fettouhi 2010-02-05 14:10:45 UTC
Is this fixed in the new KDE 4.4 that is coming out next week? I still have this issue in KDE 4.3.4 on Arch Linux now 64 bit though instead.
Comment 30 Albert Astals Cid 2010-02-06 06:12:48 UTC
This bug is a dumping ground where everyone says "it does not work for me" but everyone is doing different things with different setups, #28 is even complaining about printing not working in his printer, wonder what does it have to do with printing to pdf. So don't expect anyone to work on "this bug" since it's so broad it is not really "a bug" anymore
Comment 31 André Fettouhi 2010-03-15 13:48:33 UTC
Then shouldn't it be marked as solved then? Unless someone can has an output or something to add?
Comment 32 brabax 2011-01-04 12:17:33 UTC
One reason seems to be a corrupted file ~/cups/lpoptions. After renaming this file okular prints fine.

~/cups/lpoptions:

Default Photosmart_C7200 PageRegion PageSize=A4 sides=two-sided-long-edge å=true
Dest Photosmart_C7200_fax PageSize=A4

/var/log/cups/error_log:

E [04/Jan/2011:11:56:59 +0100] [Job 64] May not be a PDF file (continuing anyway)
E [04/Jan/2011:11:56:59 +0100] [Job 64] PDF file is damaged - attempting to reconstruct xref table...
E [04/Jan/2011:11:56:59 +0100] [Job 64] Couldn't find trailer dictionary
E [04/Jan/2011:11:56:59 +0100] [Job 64] Couldn't read xref table
E [04/Jan/2011:11:56:59 +0100] [Job 64] Job stopped due to filter errors; please consult the error_log file for details.
...

(Kubuntu 10.10, 64bit)
Comment 33 André Fettouhi 2011-01-04 12:46:18 UTC
@brabax: Tried that but it doesn't change anything.
Comment 34 André Fettouhi 2012-02-12 22:35:31 UTC
This is fixed for me, because my issue was caused by a faulty driver for my printer.
Comment 35 Albert Astals Cid 2012-11-14 14:10:54 UTC
The original file from the report is gone, anyone has a file that has this problem?
Comment 36 Albert Astals Cid 2014-05-08 08:46:06 UTC
No answer for years.