[Bug 385333] New: KDE4 should print PostScript by default and not PDF
https://bugzilla.novell.com/show_bug.cgi?id=385333 Summary: KDE4 should print PostScript by default and not PDF Product: openSUSE 11.0 Version: Factory Platform: All OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: KDE4 Applications AssignedTo: kde-maintainers@suse.de ReportedBy: mfabian@novell.com QAContact: qa@suse.de Found By: Development KDE4 should print PostScript by default and not PDF. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385333#c1 --- Comment #1 from Mike Fabian <mfabian@novell.com> 2008-04-30 10:41:25 MST --- Related to bug #385330. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385333#c2 --- Comment #2 from Mike Fabian <mfabian@novell.com> 2008-04-30 10:48:28 MST --- How to reproduce the problem: Print the page http://harry.ilo.de/projekte/berge/galerie.php?typ=berg&tour=1&bild=32 from Konqueror4 to to a PostScript file “print.ps” and then again to ah PDF file “print.pdf”. Both “print.ps“ and “print.pdf” can be displayed correctly using “gs”, i.e. apparently KDE4 can produce both correct PostScript and correct PDF. Then print the same page from Konqueror4 to a CUPS “test” queue created like this: /etc/cups/cupsd.conf: FileDevice Yes rccups force-reload lpadmin -p test -P /usr/share/cups/model/Postscript.ppd.gz -v file:/tmp/test.ps The file “/tmp/test.ps” which is created cannot be displayed by “gs”. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385333#c3 --- Comment #3 from Mike Fabian <mfabian@novell.com> 2008-04-30 10:50:09 MST --- The reason why the /tmp/test.ps file cannot be displayed by “gs” is that CUPS apparently received a PDF file from KDE4 and then converted it using pdftops (from xpdf-tools) which didn’t work because of bug #385330. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385333#c4 --- Comment #4 from Mike Fabian <mfabian@novell.com> 2008-04-30 10:52:15 MST --- As CUPS wants to convert a PDF it receives from KDE4 to PostScript anyway, this problem could be avoided completely if KDE4 did send PostScript directly to CUPS making the conversion not necessary anymore. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 User kssingvo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385333#c5 Klaus Singvogel <kssingvo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmueller@novell.com Severity|Normal |Critical --- Comment #5 from Klaus Singvogel <kssingvo@novell.com> 2008-04-30 10:53:43 MST --- The logfiles of cups shows that an internal "pdftops" conversion is done first, before any further processing in cups is done later. This indicates that the job is submitted as PDF from KDE. Using PS instead of PDF has the advantages that process is already present in internal file format of CUPS system (less ressources), the xpdf can currently only process PDF version 1.4 and not 1.6 (less error prone), and we don't rely on working "poppler-tools" nor "xpdf-tools". -> raising severity to "critical" therefore. Adding Dirk to CC: list. Maybe he knows where to switch KDE4 from PDF to PS when submitting printjobs. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385333#c6 --- Comment #6 from Mike Fabian <mfabian@novell.com> 2008-04-30 11:08:30 MST --- I just found that it happens to work if I print http://harry.ilo.de/projekte/berge/galerie.php?typ=berg&tour=1&bild=32 directly to our printer “col_3_2_03” from konqueror4 (see http://bugzilla.novell.com/show_bug.cgi?id=385330#c9) instead of printing to the CUPS test queue which prints to /tmp/test.ps. I wonder why it works when printing directly to “col_3_2_03”. Does the file format KDE4 uses depend on the CUPS queue it prints to? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 User dmueller@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385333#c7 Dirk Mueller <dmueller@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |kssingvo@novell.com --- Comment #7 from Dirk Mueller <dmueller@novell.com> 2008-05-08 06:06:24 MST --- not really.. Klaus? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 User kssingvo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385333#c8 Klaus Singvogel <kssingvo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|kssingvo@novell.com | --- Comment #8 from Klaus Singvogel <kssingvo@novell.com> 2008-05-08 06:23:39 MST --- I cannot explain why or how cups should influence the printing type of KDE4 here. I have doubts that cups can influence this behavior. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 User wstephenson@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385333#c9 Will Stephenson <wstephenson@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wstephenson@novell.com --- Comment #9 from Will Stephenson <wstephenson@novell.com> 2008-05-16 06:13:44 MST --- Why does KDE print in pdf? is it to do with the move to QPrinter ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 User dmueller@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385333#c10 Dirk Mueller <dmueller@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #10 from Dirk Mueller <dmueller@novell.com> 2008-05-16 16:41:34 MST --- Rhetoric question? What does it help to ask the summary as a question again? Anyway, use the source, luke: if(d->use_default_engine && d->outputFormat == QPrinter::NativeFormat) { if (QCUPSSupport::cupsVersion() >= 10200 && QCUPSSupport::printerHasPPD(name.toLocal8Bit().constData())) setOutputFormat(QPrinter::PdfFormat); else setOutputFormat(QPrinter::PostScriptFormat); d->outputFormat = QPrinter::NativeFormat; } with other words, it prefers PDF over Postscript if Cups is recent and has a PPD for it. This is in line with what cups itself advocates: /usr/share/doc/packages/cups/help/spec-postscript.html While PostScript is currently the defacto-standard print job file format/language for UNIX-based applications, it is slowly being phased out in favor of Adobe's Portable Document Format ("PDF") which offers many advantages over PostScript. MacOS X uses PDF as the primary print job file format, and we expect Linux to soon follow. The bugreport doesn't mention a single reason why submitting a job as PDF is a bug, or which problems it causes (other than that printing fails if pdftops is broken). the PDF renderer of Qt is a lot more advanced than the PS renderer (which only supports PS level 1 with a lot of design problems). It does make sense to me to default to the output format that the Toolkit can support well, because it offers the features it needs, especially if it is the same format the underlying printing framework advocates as the default. Therefore the only resolution is INVALID, sorry. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385333#c11 --- Comment #11 from Mike Fabian <mfabian@novell.com> 2008-05-17 04:21:32 MST --- OK, I see. But is the better PDF produced by KDE4 (compared to the inferior PostScript it can produced) still an advantage if CUPS needs to convert it to PDF anyway? I guess the answer is "yes" because you say that the PostScript produced by KDE is problematic anyway. If the PDF produced by KDE4 is so much better, the endresult is probably better even if CUPS needs to convert it to PostScript. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 User kssingvo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385333#c12 Klaus Singvogel <kssingvo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #12 from Klaus Singvogel <kssingvo@novell.com> 2008-05-19 02:49:52 MST --- As said before (comment#5): don't use PDF, because CUPS is still using PostScript for internal processing. The assumption of your code (comment#10) might be valid for cups-1.4 or later, but for now (cups-1.3) I strongly encourage you to use PostScript only. Using PDF is a time and resource hungry way, as its done now in CUPS: "PDF -> PS -> printer specific" instead of "PS -> PS -> printer specific" Debugging is usually impossible (PDF is a binary blob, PostScript can usually be understand). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 User dmueller@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385333#c13 Dirk Mueller <dmueller@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Critical |Major Status|REOPENED |ASSIGNED --- Comment #13 from Dirk Mueller <dmueller@novell.com> 2008-05-20 03:24:32 MST --- if this issue is just about a processing time overhead, it can't be critical. anyway, further discussion with upstream points out that Qt tries to print to postscript if the printer queue is postscript. it seems something is wrong with that detection, but I haven't read the cups api documentation (is there any usable documentation at all anyway?) for that yet. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 User kssingvo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385333#c14 --- Comment #14 from Klaus Singvogel <kssingvo@novell.com> 2008-05-20 03:33:32 MST --- A bit off-topic, but anyway. Documentation is avail at: - start cupsd: "rccups start" - and then try: http://localhost:631/help/ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385333 JP Rosevear <jpr@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com