Re: HOWTO: Install Cups-PDF - problem opening files
I'm running Edgy and Cups-PDF installed very easily and runs fine, in Linux. However, when I try to open the saved pdf file on a Windows machine with Adobe Acrobat 5 (full) or Adobe Reader (versions 7 and up), the file will not open and Adobe gives an error that the file is corrupted. The file still opens just fine in Linux. Is there a setting I missed? While I can open the files (at home), I cannot share them or open them at work. Thanks!
__________________
------
Daniel
I have the same problem. Generated PDF does not work with Adobe Acrobat reader
Re: HOWTO: Install Cups-PDF - problem opening files
Quote:
Originally Posted by
Jose Catre-Vandis
On my new Edgy install I followed the howto, but I do not see a PDF Printer avaialble to select ? Similarly if I try the CUPS web interface there is no selection for Virtual printer.
Edgy failed to detect my HP deskjet 720C as well (although it did see it in dmesg, it failed to come up in Cups.
This is what file permissions are like:
Code:
jose@edgy:/usr/lib/cups/backend$ ls -l
total 216
-rwxr-xr-x 1 root root 7199 2006-09-22 05:39 beh
-rwxr-xr-x 1 root root 10184 2006-10-20 19:03 bluetooth
-rwxr-xr-x 1 root root 10508 2006-09-27 11:41 canon
-rwsrwsrwx 1 jose root 23824 2006-10-03 13:07 cups-pdf
-rwxr-xr-x 1 root root 10604 2006-09-27 11:41 epson
-rwxr-xr-x 1 root root 20496 2006-10-13 18:36 hp
-rwxr-xr-x 1 root root 9012 2006-10-13 18:36 hpfax
-rwxr-xr-x 3 root root 23452 2006-10-09 17:56 http
-rwxr-xr-x 3 root root 23452 2006-10-09 17:56 ipp
-rwsr-xr-- 2 root lp 16712 2006-10-09 17:56 lpd
-rwxr-xr-x 2 root root 12732 2006-10-09 17:56 parallel
lrwxrwxrwx 1 root root 21 2007-02-07 18:33 smb -> ../../../bin/smbspool
-rwxr-xr-x 2 root root 9868 2006-10-09 17:56 socket
-rwxr-xr-x 2 root root 13996 2006-10-09 17:56 usb
Any help on how to get the PDF Printer to show up?
[EDIT]
In the meantime have found a workaround.
install kdeprint
Code:
sudo aptitude install kdeprint
using firefox:
File > Print > Select default printer > Properties > type "kdeprint" (in the command line box, no quotes)
Click OK > Tick the print to File box > Print > enter your file name > Save
You will now have a postscript file in your home folder
Next, download the attached script, unzip it, and place it in your nautilus scripts folder
Set as executable
It should now show up in your Right Click on file > Scripts list
Right Click on your recently saved postscript file > Scripts > ps2pdf
A pdf will be created and your postscript file will be deleted
Attachment 25152
[RESOLVED]
(For Edgy)
Downloaded and installed the experimental cups-pdf package from Debian, and instantly has a pdf printer show up in "New Printers". get it here:
http://packages.debian.org/cgi-bin/d...i386&type=main
or follow links to the experiemental deb from here:
http://www.physik.uni-wuerzburg.de/~...download.shtml
And finally:
If you want to change the output directory for your PDFs:
Code:
sudo nano /etc/cups/cups-pdf.conf
Scroll down to where it says:
Change this to whatever you want, e.g.
and save the file. No apparent need to restart the cupsys service.
Re: Alternative: using Terminal and CUPS web admin
Quote:
Originally Posted by
xurizaemon
This worked fine for me. Hope it helps someone else too!
Worked great! Thanks!!
Re: HOWTO: Install Cups-PDF
Gotta say, this was pretty easy for me, I have been running Edgy for about a week or so and am really new to Linux and I had no problem. BTW: I didn't have to set any flags, it just came right up so I guess your wish came true.
Re: HOWTO: Install Cups-PDF
Thanks for the how-to, works great for me with a couple of wee exceptions;
1. Had to use the generic postscript driver the other PCL 3,4,5 did not work, they just gave a blank pdf file.
2. I have not been able to print from any Java apps. This gives the same problem as above with an empty pdf file. Took a bit of work to get it that far tho, was originally getting an error message of no print service.
If anyone can shed light on printing from Java I would be very grateful :)
Chris.
ps this might not be a cups-pdf problem, since i don't have any real printers on this pc to check.
Re: HOWTO: Install Cups-PDF
Thanks for the great tutorial. Although for U7.04 I did not need to do the permission adjustments, the PDF Printer showed up right after I did "sudo apt-get cups-pdf", which I believe does make adding a PDF Printer quite grandma friendly.
Re: HOWTO: Install Cups-PDF
Quote:
Originally Posted by
cemptor
Thanks. It works in Edgy, without setting the setuid bit.
However, can anyone help me with the following (open to other packages)
1. Change the filename and location of the printed PDF file, instead of a fixed one. It picks up the title of the page as filename and puts in in $HOME/PDF. I want to choose the location everytime
2. If I try "Print to File", it lets me choose the name and location, but prints the file as a postscriptfile, and not pdf. What am I doing wrong?
Thanks
I have Edgy 386 standard installation
Anybody find the solution to this? This would be the icing on the cake for this howto. I for example have different folders for different things that I regularly print with pdf as I am sure many of you do too. What a pain it is to have to use mv or cp or have to go through and find it then travel through my lan and place it where I want it, when this could be done from the beginning.
thanks
Re: HOWTO: Install Cups-PDF - problem opening files
Quote:
Originally Posted by
wgandhi
I'm running Edgy and Cups-PDF installed very easily and runs fine, in Linux. However, when I try to open the saved pdf file on a Windows machine with Adobe Acrobat 5 (full) or Adobe Reader (versions 7 and up), the file will not open and Adobe gives an error that the file is corrupted. The file still opens just fine in Linux. Is there a setting I missed? While I can open the files (at home), I cannot share them or open them at work. Thanks!
__________________
------
Daniel
I have the same problem. Generated PDF does not work with Adobe Acrobat reader
I was generating pdf files using firefox and was selecting "Print to file" box to indicate pathname of generated file - this was causing the problem. I have generated without select this box and the the pdf file was generated on default path (in my case {HOME}/Desktop). This way the pdf file is opened by acrobat reader at windows.
Re: HOWTO: Install Cups-PDF
Thank you very much for this HOWTO. I followed most every step with the exception of using Nautilus to change the permissions on the file. I didn't see that option in the permissions tab so I used the command shown in post 20 instead. Worked like a charm.
Thanks to all who helped with this HOWTO.
Re: HOWTO: Install Cups-PDF
I using Feisty 7.04. When I go to the Permissions tab for cups-pdf backend, iIdo not see a "Set User ID" tag.
Other ideas?
Quote:
Originally Posted by
LoKi128
Thanks to everyone from
this thread for all their guidance. The sticking point in this whole process is that you need to be root to edit the permissions on the executable.
- Install the cups-pdf package (I used version 2.2.0-1)
- Go to System -> Administration -> Printing
- Doubleclick "New Pinter"
- Notice that there is no mention of a CUPS PDF printer
- Open a terminal and tpe "sudo nautilus" and then your password
- Go to Filesystem -> usr -> lib -> cups -> backend
- Rightclick "cups-pdf" and select Properties
- Go to the Permissions tab and click the "Set user ID" special flag
- Again try to add a new printer
- There is now a "PDF Printer" detected, select it
- Select the Generic, Postscript Color Printer (Rev 3b)
- Give it a name, like PDF Printer
- Right click on the newly created printer, and select Properties
- Click "Print a Test Page"
- The file should be in your Home folder, under the PDF folder