pdf print does not work by default

Bug #33127 reported by Christian Göbel
This bug report is a duplicate of:  Bug #40211: Print to PDF is broken. Edit Remove
16
Affects Status Importance Assigned to Milestone
Ubuntu
Confirmed
Medium
Unassigned

Bug Description

I just installed Dapper with the latest updates 27.02.2005 when I tried to convert a ps-document to a pdf document via the gnome-printer dialog (called by Evince) I got an error message:
Generating PDF is not supported

Since creating a .pdf form a .ps document is quite standard I guess that in principle it is possible to print the ps as pdf out of evince using the print-dialog.
I am not sure if I have to install another package to make printing in pdf work.
I suggest:
Either installing the necessary packages by default
or
Changing the error text to something like:
To enable the generation of .pdf the package xyz has to be installed

I am aware that there are different bugs in pdf-creating via gnome-printing for now - if you have disabled pdf creating for that reason than consider this bug-report as non-relevant.

Note: the original reporter indicated the bug was in package 'gnome-print'; however, that package was not published in Ubuntu.

Revision history for this message
Christian Göbel (christiangoebel) wrote : A test.ps file

the ps-file which i couldn't transform to pdf

Revision history for this message
Christian Göbel (christiangoebel) wrote : screenshot

screenshot with the error-message

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

I can confirm, this is a very annoying bug.

Revision history for this message
Dana Olson (adolson) wrote :

This is still an issue for me almost two full months later. Confirming..

Revision history for this message
Mikko Saarinen (mikk0) wrote :

pdf printing should work if the package cups-pdf is installed.

However this package needs the /etc/cups/cupsd.conf to say RunAsUser No instead of the default RunAsUser Yes.
Unsetting the RunAsUser option is unvise, because it increases security risks by running the cups scheduler as user root.

Could this be fixed so that the cups-pdf package would work as user cupsys and then making this package part of the ubuntu-desktop package so it would be installed by default? It would also be nice to add a default printer to the system that uses this backend, so it would be ready to go without any extra effort from the user.

=) Mikko

Revision history for this message
Mikko Saarinen (mikk0) wrote :
Revision history for this message
Mikko Saarinen (mikk0) wrote :

When following the above instructions it was possible to add the printer to Breezy and the test page printed just fine to my home folder. But QCad for example doesn't even show the printer in it's list of printers, and the print to file dialog only has .ps -files as supported filetypes. Printing from OpenOffice works fine, though.

In Dapper Beta I wasn't even able to add the printer to the system! The System->Administration->Printing tool did not recognize the virtual pdf-printer at all.

Revision history for this message
Mikko Saarinen (mikk0) wrote :

Sorry for the sidetrack there. Now I see what you meant (should have looked at the screenshot straight away ;-)

With only the standard tools installed (I think it's one of those ghostscript tools, maybe from gs-esp package), you can call ps2pdf from the terminal and it gets the conversion done just fine.

With this functionality built-in I really don't understand why the graphical version called by gnome-printer doesn't work.

Revision history for this message
Christian Göbel (christiangoebel) wrote :

Thanks for your comments Mikko,
I guess the desired solution to the described problem should be in line with your first post: Printing to a .pdf should work for every program which uses the gnome-printing-backend by default. I just described the user-case of printing a .ps file to a .pdf file - since this is something which can be done from the console without a problem but doesn't work from the gnome-print dialogue.

Revision history for this message
Dana Olson (adolson) wrote :

I tried ps2pdf when I initially commented on this bug, but it did not work - the resulting pdfs were always corrupted, something to do with dealing with images I think. Looks like it's working now, so that's good.

But, the GNOME printing dialog allows me to print in Gedit to a PDF file directly. But that same dialog doesn't let me print to PDF in Epiphany (same thing as reported above in Evince). It would be good to have this work everywhere, or be removed until such a time as it works properly. Dapper is under a month away, so something should be done quickly.

If the bug can't be fixed easily, I vote to simply remove it, if this is possible. Leave in the default print to Postscript though, as that seems to work everywhere. I'd rather see Dapper ship without an option, rather than an option that is broken in about half of the instances where it appears it would be useful.

Revision history for this message
Mikko Saarinen (mikk0) wrote :

I haven't tried ps2pdf with prints containing raster images, so I can't say for sure if it is working correctly with all files. In my case there was only a cad image (basically just lines with different widths).

Mikko

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.