Bug 60238 - PDF of application/x-zerosize type unprintable
Summary: PDF of application/x-zerosize type unprintable
Status: RESOLVED NOT A BUG
Alias: None
Product: kghostview
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Wilco Greven
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-22 20:13 UTC by Dik Takken
Modified: 2003-06-24 13:17 UTC (History)
0 users

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


Attachments
Test-PDF. Fails to print. (63.19 KB, application/pdf)
2003-06-22 20:17 UTC, Dik Takken
Details
Test-PDF. Fails to print. (88.28 KB, application/pdf)
2003-06-22 20:17 UTC, Dik Takken
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dik Takken 2003-06-22 20:13:41 UTC
Version:            (using KDE KDE 3.1.1)
Installed from:    Compiled From Sources
OS:          Linux

I came across some PDF files that display perfectly with kghostview, but printing fails. When attempting to print, KDE pops up a dialog saying that the PDF is of type 'application/x-zerosize' and must be converted to 'application/postscript'. You can choose to print anyway or to convert. Both result is printing blank pages and an occasional crash of kghostview.
Comment 1 Dik Takken 2003-06-22 20:17:08 UTC
Created attachment 1868 [details]
Test-PDF. Fails to print.
Comment 2 Dik Takken 2003-06-22 20:17:56 UTC
Created attachment 1869 [details]
Test-PDF. Fails to print.
Comment 3 Dik Takken 2003-06-22 20:20:09 UTC
By the way, how is it possible that documents that display perfectly cannot be printed? 
KDE should at least provide an option to print the document as an image in stead of 
postscript, in case postscript printing fails. 
Comment 4 Michael Goffioul 2003-06-23 09:42:57 UTC
The fact that KDEPrint detects the file as application/x-zerosize means that
it receives an empty file to print. So nothing is printed. The file to print
is provided by the application, so I'm pretty sure that the problem is
kghostview failing to convert the PDF to PS.
Comment 5 Luís Pedro Coelho 2003-06-23 19:02:00 UTC
I am sorry, I am unable to reproduce. 
I tried HEAD, BRANCH, 3.1.1 and both gs 7.05 & 6.52 with print to file (in HEAD, I 
even printed one page). 
 
Can you please try the following: 
 
1. Print to postscript in kghostview. What do you get as a result? Can you post the 
file or tell us if it resulted in an empty file? 
 
2. Tell us what version of gs you have. If you don't know, open a konsole, and type  
gs --version 
 
What is the output of this command? 
 
thank you, 
luis pedro 
Comment 6 Dik Takken 2003-06-23 20:52:20 UTC
I did some more experimenting and I found out that the error accurs only when using ESP 
Ghostscript. The exact Ghostscript version is: 
 
ESP Ghostscript 7.05.6 (2003-02-05) 
Copyright (C) 2002 artofcode LLC, Benicia, CA.  All rights reserved. 
 
The error that is produced when I try to manually convert the PDF to PS using 'pdf2ps' is: 
 
Unknown device: pswrite 
 
The document printed fine on a machine using GNU Ghostscript 7.05 (2002-04-22). I 
never had any problems with ESP Ghostscript until now.  
 
I don't remember why I installed ESP in stead of GNU, hopefully I can just replace ESP 
with GNU and all will work fine?? 
Comment 7 Richard Bos 2003-06-23 20:59:34 UTC
I encounter the same zerosize problem, but from konqueror and today from kmail as  
well :(  I don't have more information about the type of documents ->  
is it only 1 type of document/email or is it more general?  I'll need to look into this.  
  
With the error msg comes the suggestion to have the document converted  
anyhow.  This fails with the following error msg:  
  
 cupsdoprint -P 'black1' -J 'file:/' -H 'linux06.mycomp.com:631' -o '  
 FullUserName=Richard Room=441 copies=1 media=A4,Normal,Upper  
 multiple-document-handling=separate-documents-collated-copies number-up=2  
 orientation-requested=3 sides=two-sided-long-edge'  
 '/tmp/kde-rbos/kdeprint_dy2pgg7' : uitvoering faalde met de melding:  
 client-error-bad-request  
  
Running SuSE-8.2, kde-3.1.2, I don't know the gs version.  
  
--  
Richard  
 
Comment 8 Richard Bos 2003-06-23 21:03:28 UTC
Is bug 58912 maybe related? 
http://bugs.kde.org/show_bug.cgi?id=58912 
Comment 9 Dik Takken 2003-06-23 21:07:45 UTC
> Is bug 58912 maybe related? 
 
No, this is clearly a PDF->PS conversion problem, not MIME related. Probably not even a 
KDE related problem.  
Comment 10 Richard Bos 2003-06-23 21:13:01 UTC
In my case in need to from no pdf to ps... 
 
According to Michael Goffioul in bug report 54549 it's a QT problem. 
If so I would like to know if this problem might have been fixed already... 
 
Comment 11 Luís Pedro Coelho 2003-06-24 13:17:15 UTC
I don't think this is related to kde but an instalation issue. Therefore I am closing as 
INVALID. 
 
To Richard: this seems a bad KDE/CUPS/something-else instalation or configuration. 
If you do feel that this is a KDE problem, please file a new bug report against 
KDEPRINT as it doesn't fit in this report. 
 
regards, 
luis