Bug 145016 - kprinter fails to convert/send multiple pages as PDF
Summary: kprinter fails to convert/send multiple pages as PDF
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdeprint
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-04 13:20 UTC by Axel Braun
Modified: 2011-05-27 18:32 UTC (History)
2 users (show)

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


Attachments
error message from kprinter (25.47 KB, image/png)
2007-05-04 13:20 UTC, Axel Braun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Braun 2007-05-04 13:20:08 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    SuSE RPMs
OS:                Linux

I'm creating a couple of .ps files using a scanner.
Then calling up kprinter, selecting multiple .ps and choosing 'Mail PDF file'. This fails with the attached error message.
Doing the same, but selecting 'print to PDF' works!
Seems there is a problem in the processing command-string
Comment 1 Axel Braun 2007-05-04 13:20:48 UTC
Created attachment 20476 [details]
error message from kprinter
Comment 2 Cristian Tibirna 2007-05-04 14:00:40 UTC
Confirmed.

From the error message, I believe there is a problem in the generation of the command that calls ps2pdf. The $out{/some/file/name.pdf} should not contain the $out and the accolades, I believe.

This being the only command in the default special printers that uses the %out placeholder (see $KDEDIR/share/apps/kdeprint/specials.desktop), and this error appearing only when multiple files are "printed" at once, it explains why the bug wasn't yet observed.

Shouldn't be difficult to fix. Just that I get to find the time...

Thanks.
Comment 3 Cristian Tibirna 2007-05-04 14:11:29 UTC
In fact, no, some brief investigation shows that ps2pdf can't process more than one input file at once.

So the command used in specials.desktop:

ps2pdf -sPAPERSIZE=%psl %in %out && kmailservice ....

should become

cat %in | ps2pdf -sPAPERSIZE=$psl - %out && kmailser ....

So, this is the easy fix. But before I commit, I will have to check what makes so that the "Print to PDF" special works out of box (one hint is that the command used for it is simply "ps2pdf" with no options).

And the $out{} thing is still no good in the "Mail PDF" special command, so this will need fixed eventually (although it has no bad sideeffects).
Comment 4 Axel Braun 2009-02-07 11:53:39 UTC
Hm...looks like this is still open in 3.5.10, as I still run into the same problem....
can I fix this somehow locally?
Comment 5 Thomas Zander 2009-12-08 16:37:17 UTC
Looks like this bug can be closed.
Comment 6 Axel Braun 2009-12-08 18:07:30 UTC
Why? Because the whole functionality (print to fax| send as PDF attachmentis gone with 4.x?
Comment 7 Thomas Zander 2009-12-08 18:32:59 UTC
On Tuesday 8. December 2009 18.07.32 Axel Braun wrote:
> Why? Because the whole functionality (print to fax| send as PDF
>  attachmentis gone with 4.x?

That is the reason I removed the 'junior-jobs' keyword.
I think the bug can be closed because the application it is reported to no longer exists.
Comment 8 John Layt 2011-05-27 18:32:29 UTC
KDEPrint is obsolete, unmaintained and will never be revived.  Closing all open bugs.