Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166213 - net-print/cups-pdf creates ps files not pdf files
Summary: net-print/cups-pdf creates ps files not pdf files
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-10 15:51 UTC by Dominique Michel
Modified: 2007-04-07 20:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Michel 2007-02-10 15:51:25 UTC
The files printed in a file by cups2pdf are ps files not pdf files.
gv and kpdf are able to show them (kpdf show a very breif message as what it convert a ps file). Bur xpdf don't open those files and crash with the following message:

. Warning: Cannot convert string "-*-times-medium-r-normal--16-*-*-*-*-*-iso8859-1" to type FontStruct
Error: May not be a PDF file (continuing anyway)
Error (0): PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table


Reproducible: Always

Steps to Reproduce:
1.Install cups2pdf
2.Configure CUPS/pdf printer
3.Print a pdf file

Actual Results:  
The file is here but is a ps file.

Expected Results:  
A pdf file.

If I run:
ps2ps test.pdf test.ps
ps2pdf test.ps test.pdf

I can open test.pdf with xpdf without problem.

I try with kprinter, but the result was the same: a ps file.
Comment 1 Chris Smith 2007-02-15 16:33:01 UTC
net-print/cups-pdf works fine here

I use on multiple servers in multiple locations.

I don't think it (net-print/cups-pdf) is related to "cups2pdf" as I have no such file on those systems.
Comment 2 Dominique Michel 2007-02-15 19:50:50 UTC
Sorry for the cups2pdf, it was a typo. It is 
1) install net-print/cups-pdf.

And here, it work, but I get only ps files. I even try to unmerge xpdf and install it from the original sources but the result is the same, xpdf cannot open them. 

And ater conversion with ps2ps and ps2pdf, it work.

On the forum, it is several threads about this issue. A solution in kde seam to configure kprinter to not embed the fonts. http://forums.gentoo.org/viewtopic-p-3831955.html#3831955

But as I use fvwm, I want a general solution and it is no such setting in the configuration wizard of cups (http://localhost:631/). Another problem is at I try to do that in kcontrolcenter and to print to a pdf file using kprinter, but it doesn't worked for me, the result was still a ps file.
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2007-04-07 12:26:51 UTC
can you please contact cups-pdf upstream about this issue? And reopen here if it is gentoo specific
Comment 4 Dominique Michel 2007-04-07 20:39:13 UTC
I just contacted upstream. I also just try one more time to get it to work. What I previously done was to select the cups-pdf printer and select "print to a file" in order to be able to choose the filename and the location of the generated file. When doing this, I get a ps file, not a pdf.

I just try to not check the "print to a file" box and I get a pdf file in /var/spool/cups-pdf/username

So, the problem is in fact not cups-pdf but cups that doesn't use the cups-pdf driver but simply print a ps file when using the print to a file option. 
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2007-04-07 20:50:48 UTC
right, so this is your own fault or the fault of the config option not being obvious enough ..
Comment 6 Dominique Michel 2007-04-07 20:54:06 UTC
Yes, it is my fault. I am sure at I am not the only one doing this.