Bug 57976 - cannot print PDF files in kghostview, cannot print anything after attempt to do so
Summary: cannot print PDF files in kghostview, cannot print anything after attempt to ...
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-01 19:26 UTC by Leston Buell
Modified: 2013-10-18 13:24 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leston Buell 2003-05-01 19:26:56 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Mandrake RPMs
OS:          Linux

I cannot print any pdf file using kghostview. What seems to happen is that a very small portion of the file is sent to the printer, since on one of the printers i use, the CUPS printers page shows that it has processed 4% of the first page. After that, i cannot printer to the printer even after cancelling the print job with KJobView or the CUPS administration tools, stopping and restarting the printer, etc. I have this problem with both of my printers, one an HP LaserJet and the other an HP DeskJet.

This doesn't seem to be a Ghostscript problem or a CUPS problem, since i can print the files using kprinter.

My software constellation is this:

Mandrake 9.1
KDE 3.1
ghostscript 7.05
CUPS 1.1.19
Comment 1 Leston Buell 2003-05-04 19:11:53 UTC
I think that this problem only occurs when printing two or more pages to a
sheet. When i use Kghostview to print a PDF file to a two-per-sheet PS file,
Kghostview cannot render the resulting PS file.

I now suspect that this is a bug in Mandrake that i saw a fix alluded to
somewhere. I will update this bug when i figure out if that solves the problem.
Comment 2 Leston Buell 2003-05-04 19:50:00 UTC
The problem persists even after all of the Mandrake packages were upgraded. With
print-to-file, this is very easy to test, since you don't need a printer:

1. Open a PDF file in kghostview.
2. Click on Print icon.
3. Select "Print to File (PostScript)".
4. In Properties select 2 pages per sheet.
5. Print.
6. Attempt to view output PS file in kghostview. The page numbers 
   will appear in the left-hand column, but no page is rendered in 
   the man pane.

Now try going through the very same steps opening the PDF file with kprinter
instead of kghostview. When you click on Print, an error dialog appears that says:

   The MIME type application/pdf is not supported as input of 
   the filter chain (this may happen with non-CUPS spoolers when 
   performing page selection on a non-PostScript file). Do you 
   want KDE to convert the file to a supported format?

If you click on "Convert", you get a dialog that says:

   Select target format for conversion: application/postscript

Click on "OK", then you get:

   No appropriate filter found. Select another target format.

After two or three trials, kprinter gives up and closes. So, what is
kghostwriter doing when it attempts the conversion? The outcomes of kghostview
and kprinter are different. Kprinter fails to write any output, while kghostview
outputs a file which can't be rendered.
Comment 3 Luís Pedro Coelho 2003-05-06 00:31:07 UTC
I cannot reproduce this. I tried printing a PDF to a PS using two pages per sheet 
and it worked fine. 
 
What I guess is happening is that kprinter is failing and kghostview doesn't handle 
that failure, but I can't be sure yet. 
Comment 4 Martin 2003-06-09 21:50:06 UTC
I have a similar problem that happened when I upgraded Mandrake from v9.0 to v9.1. 
 
Some PDF files fail to print from konqueror.  It loads the paper, then pauses, and finally 
ejects.   
I found, with some help, that those files would print if I used xPDF and use kprinter. 
 
 
Comment 5 Luís Pedro Coelho 2003-06-09 22:44:04 UTC
To Martin: Can you try "print to Postscript" in kghostview and then printing that file 
(through kghostview or directly through kprinter or even in the command-line with 
lpr.cups) ? 
 
Generally: Could this be a Mandrake 9.1 problem? Anyone on another platform 
seeing this? 
 
Regards, 
luis 
Comment 6 Dennis McNulty 2003-10-02 07:19:40 UTC
I'm using MDK 9.0, KDE 3.0.3, Kghostview 0.13.1, ghostscript 7.05.33-3.    I can print a PDF file from Kghostview OK, but when I try to print a .PS file,  I get a message about the file format being application/pdf and asking if I  want to convert to application/ps (similar to comment #2 above).  Why does it  think that the file isn't a ps type already?    PS. I can print a PS file from plain ghostview just fine.    -  Dennis McNulty      
Comment 7 George Goldberg 2008-02-18 03:45:58 UTC
Is this bug still present in a recent KDE version, such as 3.5.9 or 4.0.1 (with Okular)?
Comment 8 Adrián Chaves (Gallaecio) 2012-10-14 20:37:48 UTC
Moved to Okular.