Post by xircon » Fri Apr 29, 2011 5:59 am
Apparently solved see last posts, doesn't seem to work for me, but I have heavily modified my system, so probably my fault
Trying to print a webpage to PDF, but it produces blank pdf. Tried from Gedit, same problem. Libreoffice works, completely stumped! Any thoughts on how to approach this?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Post by Lostwithaclue » Fri Apr 29, 2011 9:45 pm
I use cups-pdf for printing to pdf, it is in the repository and hasn't failed me yet. PepeCyBPost by PepeCyB » Thu Jun 09, 2011 11:32 am
I think it is a problem with cups-pdf version 2.5.1. Just uninstall version 2.5.1, then install version 2.5.0. Now it should work again. To prevent the automatic update just attach as root the lines
Package: cups-pdf Pin: version 2.5.0* Pin-Priority: 1000
bobbomo
Post by bobbomo » Tue Jul 05, 2011 11:38 pm
I am also having the same issue with Print to PDF creating a blank file (GPL Ghostscript 0.01, PDF-1.4).
LibreOffice/OpenOffice use they're own PDF driver in PDF-1.4 format.
Until we figure out this issue, Print to File works creating PDF files (cairo 1.10.2, PDF-1.5).
D6MCKPost by D6MCK » Sat Jul 30, 2011 3:37 pm
Same here, primarily from Firefox, but also seen from Chrome. Completely fresh Katya64 install with all updates applied.
Thanks for the Print to File => PDF workaround. Be nice to see the Print to PDF option working though!
jeffreyCPost by jeffreyC » Sat Jul 30, 2011 3:55 pm
I fixed it in my system by changing the default printer from PDF to PDF1
I had to edit /etc/cups/printers.conf as root to do it
Post by WillGolfForFood » Sun Sep 04, 2011 7:02 am
I fixed this problem today on my system. Using Mint 11, Firefox 6.0.1, Opera and Chrome.
1. Launch your printer panel in the administration and printing.
2. Select the print to PDF "printer".
3. In Settings, select the change button on the Make and model setting.
4. First one that is highlighted is "Generic (recommended)". Choose it / Forward.
5. First one that is highlighted is "Cups-PDF (recommended)". The driver is Generic CUPS-PDF Printer (recommended). Choose it / Forward.
6. Use the new PPD. Apply.
7. Select the print test page to confirm the output lands in your home folder (or wherever you have it configured to go).
If this fixes you problem, mark it solved (so others can find it quickly).
Cheers.
Post by gosa » Mon Sep 05, 2011 11:49 am
WillGolfForFood wrote: I fixed this problem today on my system. Using Mint 11, Firefox 6.0.1, Opera and Chrome.
1. Launch your printer panel in the administration and printing.
2. Select the print to PDF "printer".
3. In Settings, select the change button on the Make and model setting.
4. First one that is highlighted is "Generic (recommended)". Choose it / Forward.
5. First one that is highlighted is "Cups-PDF (recommended)". The driver is Generic CUPS-PDF Printer (recommended). Choose it / Forward.
6. Use the new PPD. Apply.
7. Select the print test page to confirm the output lands in your home folder (or wherever you have it configured to go).
If this fixes you problem, mark it solved (so others can find it quickly).
Cheers.
Post by xircon » Tue Sep 06, 2011 5:32 am
I get a cups server error, press cancel, click change again, this time it runs through as described, I click apply but nothing happens, it does not go any further. But have marked as solved as the print to file work-a-round works for me.
downhillschrottPost by downhillschrott » Sun Sep 11, 2011 9:18 am
1. Launch your printer panel in the administration and printing.
2. Select the print to PDF "printer".
3. In Settings, select the change button on the Make and model setting.
4. First one that is highlighted is "Generic (recommended)". Choose it / Forward.
5. First one that is highlighted is "Cups-PDF (recommended)". The driver is Generic CUPS-PDF Printer (recommended). Choose it / Forward.
6. Use the new PPD. Apply.
I had the same problem: Firefox produced blank pages when I wanted tp print a pdf. It worked neither with "print to pdf" nor with "print to file" and choosing pdf. I was not able to print a "test page" too.
However the above worked for me with the following change:
In the printer panel I had to make antoher setting just to be able to choose the OK button, eg. change "printer options" - "resolution" to 150dpi.
Click Ok.
Made a print with Firefox and it was ok. Test print was now ok, too. Changed the "resolution" back to 300dpi and it worked.
Don't know why and how. Thank you for this solution.
System: Linux Mint 11 (kataya) GNOME 2.32.1 Firefox 6.0.2
xenopeek Level 25Post by xenopeek » Sun Sep 25, 2011 5:13 am
This is a bug in /etc/cups/printers.conf file as configured by cups-pdf package from default install.
How found:
1. sudo apt-get purge cups-pdf
2. sudo apt-get install cups-pdf
And suddenly print to PDF works.
Doing a diff on the files, and some trial & error, these are the changes needed to your /etc/cups/printers.conf file to make print to PDF work.
sudo initctl stop cups
2. Edit the printers.conf:
gksudo gedit /etc/cups/printers.conf
3. Search for the line:
And replace it with:
Filter application/vnd.cups-raw 0 - Filter application/vnd.cups-command 0 commandtops Filter application/vnd.cups-postscript 0 -
(Yes, you add three lines below it also.) sudo initctl start cups
Done. Now instead of "Print_to_PDF" you select the "PDF" printer (no clue about this, but without this exact same name it won't print!).
Lastly, it is setup to print two pages on one sheet. Not very readable output, so if you want remove the four options at the end of that block to have just one page per sheet:
Option number-up 2Post by xircon » Sun Sep 25, 2011 5:48 am
sudo initctl start cups not working here:
sudo initctl start cups sudo: initctl: command not found
Can't find in Synaptic either.
:Edit:
sudo /etc/init.d/cups restart will restart cups. TBH I have had enough of this, print to file works, so I just give up More important fish to fry.
Post by JackWelch55 » Sun Nov 06, 2011 6:31 pm
The above steps fixed the 'blank PDF' problem.
However now the file name is a random number, previously the file name was the document|webpage title.
And now images are black boxes.
iwbnwifPost by iwbnwif » Wed Jan 25, 2012 7:16 am
1. Launch your printer panel in the administration and printing.
2. Select the print to PDF "printer".
3. In Settings, select the change button on the Make and model setting.
4. First one that is highlighted is "Generic (recommended)". Choose it / Forward.
5. First one that is highlighted is "Cups-PDF (recommended)". The driver is Generic CUPS-PDF Printer (recommended). Choose it / Forward.
6. Use the new PPD. Apply.
7. Select the print test page to confirm the output lands in your home folder (or wherever you have it configured to go).
These steps worked for me , but there are a few points that are not quite clear (at least as a beginner).
Post by mordant23 » Tue Feb 07, 2012 9:42 pm
I followed the previous instructions for the web interface but I had to make one modification. Instead of choosing Generic CUPS-PDF driver, I had to choose Generic Postscript driver. There were two choices but it's not listed in the driver's name. One is gray scale and the other is color. On my system, the second choice in the menu is the color. Then I restarted cups for good measure (not sure if I needed to) with:
sudo stop cups sudo start cups
I got the idea to try the Postscript driver from the README file in the latest tarball. Now you will be able to choose "CUPS-PDF (Virtual PDF Printer)" when
setting up a new printer in CUPS (a CUPS-restart may be necessary).
To set up a queue for other UNIX clients you should select Postscript as
vendor and the Color Printer as model for your new printer;