Bug 160586 - okular cannot print pdf into pdf
Summary: okular cannot print pdf into pdf
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-08 23:17 UTC by Felix Möller
Modified: 2008-11-20 18:55 UTC (History)
3 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 Felix Möller 2008-04-08 23:17:41 UTC
Version:            (using KDE 4.0.3)
Installed from:    SuSE RPMs
Compiler:          gcc (SUSE Linux) 4.3.0 
OS:                Linux

I have some PDFs which have an user and owner password set. I can open them with okular just fine (after entering the owner pw).
As I want to remove the password I want to print them in a pdf, but this does not work.

Printing a pdf from okular into a pdf results in a postscript file.

I can convert this file without any problems with ps2pdf.

In other applications the print dialog is able to print into a pdf ...

The same has been reported at https://bugzilla.novell.com/show_bug.cgi?id=378108
Comment 1 Albert Astals Cid 2008-04-09 21:44:30 UTC
Are you using Qt 4.4 for that okular build?
Comment 2 Felix Möller 2008-04-09 22:15:59 UTC
I am using Qt-4.4.0_snapshot-20080325 I think.

# ldd /usr/bin/okular | grep -i qtcore
        libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xb7eef000)

# rpm -qf /usr/lib/libQtCore.so.4
libqt4-4.3.93.20080325-1
Comment 3 Albert Astals Cid 2008-04-09 22:41:50 UTC
Not an okular bug, we don't activate the print to file options, but Qt 4.4 has a bug that does not respect that and still shows the options.
Comment 4 Felix Möller 2008-04-09 23:24:52 UTC
OK, may I reopen this as a feature request?

With my kpdf 0.5.9 from KDE 3.5.9 I can print a password protected pdf without any problems into a new pdf.

For me this an essential feauture.
Comment 5 Albert Astals Cid 2008-04-10 19:31:57 UTC
You might, but do not hold your breath. kpdf/okular has never known how to print to pdf, it was KDE 3 printing libraries doing the conversion from ps (that is what we print) to pdf.
Comment 6 Marcelo Sales 2008-06-16 00:34:55 UTC
But is there any specific problem that made you choose to disable the "Print to file" option? Activating this wouldn't be enough to enable us to print PDF files to PDF? I have exactly the same problem than Felix. I get my credit card bills in password protected .PDF files, but I prefer to archive them without the password protection, so I usually print the password protected .PDF to another .PDF file. With Okular, it's not possible to do that anymore.
Comment 7 Albert Astals Cid 2008-06-16 21:24:22 UTC
Oh yeah we are dumb and did not realize that just activating the option would make it work, err wait, no, we are not THAT dumb.
Comment 8 Marcelo Sales 2008-06-16 22:07:57 UTC
And is there any reason to be that aggressive with users just because they ask POLITELY if there's any specific reason to disable this option, as you said you opted to do? You'd better just stay with you mouth shut if you don't want to answer a question.
Comment 9 Albert Astals Cid 2008-06-17 19:33:20 UTC
The reason to be agressive is because you were agressive.

Want to know why it does not work? I already said why, maybe you should read comment #5
Comment 10 Marcelo Sales 2008-06-17 21:21:38 UTC
I really do not see where or how I was aggressive. You said neither kpdf nor okular know how to print into pdf and that the translation from .ps to .pdf is done by kde printing libraries. However, kpdf is able to print into pdf using the "print to file" option and kde printing libraries services. Better stil, Okular can do that too using the very same "print to file" option, as long as the loaded file is not .pdf already, because in this case the option is disabled. For some reason that's not clear to me, otherwise I would not have asked, you say you have intentionally disabled the "print to file" option. Once this option does work nicely for printing into PDF, as long as the input file is not PDF, why should it be clear to anyone the reason why this very option can't be used to print pdf files into pdf? I'm really trying to understand and maybe help if I can and never intended to offend or blame anyone for anything.
Comment 11 Albert Astals Cid 2008-06-18 23:27:11 UTC
"You said neither kpdf nor okular know how to print into pdf and that the translation from .ps to .pdf is done by kde printing libraries."
No, i said KDE ->3<- libraries do the translation, note Okular is not a KDE 3 application.

"Better stil, Okular can do that too using the very same "print to file" option, as long as the loaded file is not .pdf already, because in this case the option is disabled."
Because as said the pdf backend of Okular only knows printing to PS

"For some reason that's not clear to me, otherwise I would not have asked, you say you have intentionally disabled the "print to file" option."
Maybe because it does not work?

"I'm really trying to understand and maybe help if I"
Good, more manpower :-) Join the kde print mailing list and say you want to help transforming Okular PS output to PDF.
Comment 12 Ronny Multrus 2008-11-10 13:30:23 UTC
I really like to have print to PDF support in Okular for PDF files. It's quite handy as I used KPDF so far to add margins to some PDF files to make them A4 format. Now this isn't possible with 4.1.2 (Gentoo).
Comment 13 lianqi wang 2008-11-20 18:40:07 UTC
same problem here. okular just print to A4.  And it doesn't save the options. It doesn't respect the default options set in cups (like duplex).
Comment 14 Pino Toscano 2008-11-20 18:55:07 UTC
(In reply to comment #13)
> same problem here. okular just print to A4.  And it doesn't save the options.
> It doesn't respect the default options set in cups (like duplex).

Those have nothing to do with this bug report.