LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-14-2017, 07:36 PM   #1
mchenier
Member
 
Registered: Feb 2008
Location: Lorraine, Québec, Canada
Distribution: Ubuntu
Posts: 55

Rep: Reputation: 1
Black printing pdf document


Hi there,

I am trying to find the cause and the solution that I have with some PDF document. For no reason some of them print only in black garbage. I tried to print in PDF file before printing on my HP Laserjet M1212nf but without result. Tried to open with different software (Okular, Gimp) with the same printing problem.

Thanks,

Martin
Attached Thumbnails
Click image for larger version

Name:	BlackPDF.jpg
Views:	21
Size:	174.4 KB
ID:	23973  
 
Old 01-15-2017, 06:02 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,894
Blog Entries: 9

Rep: Reputation: 3518Reputation: 3518Reputation: 3518Reputation: 3518Reputation: 3518Reputation: 3518Reputation: 3518Reputation: 3518Reputation: 3518Reputation: 3518Reputation: 3518
can you view the pdf normally when e.g. importing it into gimp?
and if e.g. from gimp you export it back to pdf again, does it show normally or black?
in other words, does this only happen when printing?
can you convert the pdf to something else and then print it normally?
 
Old 01-15-2017, 07:12 PM   #3
mchenier
Member
 
Registered: Feb 2008
Location: Lorraine, Québec, Canada
Distribution: Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ondoho View Post
can you view the pdf normally when e.g. importing it into gimp?
and if e.g. from gimp you export it back to pdf again, does it show normally or black?
in other words, does this only happen when printing?
can you convert the pdf to something else and then print it normally?
I can see all the PDF correctly with any software, the problem is only when printing.

I tried to ''print'' in a file (pdf or ps) and print it after that, but the problems still the same.

And curiously, I don't have any problem with most of my PDF documents, only some of them get this ''disease''....Is there some PDF that is different than others?

Thanks,

Martin
 
Old 01-15-2017, 07:33 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I think your printer needs maintenance.

Last edited by Habitual; 01-15-2017 at 07:34 PM.
 
Old 01-15-2017, 07:36 PM   #5
mchenier
Member
 
Registered: Feb 2008
Location: Lorraine, Québec, Canada
Distribution: Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by Habitual View Post
I think your printer needs maintenance.
Nope, my printer work fine.
 
Old 01-15-2017, 08:37 PM   #6
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,951

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
Ok, so a print test via the CUPS web interface works fine?
http://localhost:631/printers

Maybe it is a driver-related issue. Which printer driver is in use? If you're not sure, the following command might help us to determine that...

Code:
grep 'Filter' /etc/cups/ppd/*
For example HPLIP (hpcups) should report something like
Code:
/etc/cups/ppd/HP.ppd:*cupsFilter: "application/vnd.cups-raster 0 hpcups"
Some additional info might be useful...
Which distro and version?
CUPS version?
 
Old 01-15-2017, 08:58 PM   #7
mchenier
Member
 
Registered: Feb 2008
Location: Lorraine, Québec, Canada
Distribution: Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
/etc/cups/ppd/Hewlett-Packard-HP-LaserJet-Professional-M1212nf-MFP.ppd:*cupsFilter: "application/vnd.cups-postscript 100 foomatic-rip"
/etc/cups/ppd/Hewlett-Packard-HP-LaserJet-Professional-M1212nf-MFP.ppd:*cupsFilter: "application/vnd.cups-pdf 0 foomatic-rip"
/etc/cups/ppd/Hewlett-Packard-HP-LaserJet-Professional-M1212nf-MFP.ppd:*driverType F/Filter: ""
/etc/cups/ppd/PDF.ppd:*% cupsFilter: "application/vnd.cups-postscript 0 pstitleiconv"

I use Ubuntu Mate 16.04.1 LTS (Xenial Xerus) 64-bit
CUPS 2.1.3
I use hplip-3.16.11

Another clue? If I tried to print those problematic PDF document from a Windows computer, it works.
 
Old 01-15-2017, 10:30 PM   #8
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,951

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
The output shows that you're using foomatic-rip, so perhaps that is the problem here. Since you have HPLIP installed, I would advise you to reconfigure the printer using the 'hp-setup' utility.
 
Old 01-15-2017, 10:33 PM   #9
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,951

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
Check if you have the 'hplip-gui' package installed. This guide might be helpful to you...
https://ubuntu-mate.community/t/how-...-in-ubuntu/879
 
Old 01-16-2017, 09:05 PM   #10
mchenier
Member
 
Registered: Feb 2008
Location: Lorraine, Québec, Canada
Distribution: Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ferrari View Post
The output shows that you're using foomatic-rip, so perhaps that is the problem here. Since you have HPLIP installed, I would advise you to reconfigure the printer using the 'hp-setup' utility.
What is foomatic-rip?

It works! thanks, but I don't understand why.
 
Old 01-16-2017, 09:36 PM   #11
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,951

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
Quote:
What is foomatic-rip?
You can read about foomatic filters here:
https://wiki.linuxfoundation.org/ope...abase/foomatic
It looks like the conversion process isn't always working for some PDF files.

Quote:
It works! thanks, but I don't understand why.
FWIW, many LaserJet models are supported by a number of candidate drivers. Yours is one of those.
So, I assume that you're now using the HLIP (hpcups) driver? You can run the command (I gave previously) again to confirm.
 
Old 01-16-2017, 09:40 PM   #12
mchenier
Member
 
Registered: Feb 2008
Location: Lorraine, Québec, Canada
Distribution: Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
grep 'Filter' /etc/cups/ppd/*

/etc/cups/ppd/HP_LaserJet_Professional_M1212nf_MFP_fax.ppd:*cupsFilter: "image/tiff 0 hpcupsfax"
/etc/cups/ppd/HP_LaserJet_Professional_M1212nf_MFP.ppd:*cupsFilter: "application/vnd.cups-raster 0 hpcups"
/etc/cups/ppd/PDF.ppd:*% cupsFilter: "application/vnd.cups-postscript 0 pstitleiconv"

Thanks a lot.
 
Old 01-16-2017, 11:18 PM   #13
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,951

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
Code:
/etc/cups/ppd/HP_LaserJet_Professional_M1212nf_MFP.ppd:*cupsFilter: "application/vnd.cups-raster 0 hpcups"
This entry confirms that HPLIP is in use. Glad to have been of help.
 
Old 01-16-2017, 11:19 PM   #14
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,951

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
Accidental duplicate posting...

Last edited by ferrari; 01-16-2017 at 11:20 PM. Reason: Duplicate post
 
Old 01-17-2017, 07:49 PM   #15
mchenier
Member
 
Registered: Feb 2008
Location: Lorraine, Québec, Canada
Distribution: Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
I had this problem for years on and off and didn't spend any time resolving it. Another piece of knowledge to add in my Linux world...Thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I display a tick in a pdf document. The document uses forms with tick choices. philp1863 Linux - Software 5 09-25-2014 09:47 AM
Can't open any pdf document Sandlin Puppy 1 03-07-2010 05:10 PM
Using pdftk to get all first pages of many pdf's into one pdf document zest n zeal Linux - Newbie 1 01-15-2008 10:07 AM
PDF document printing..choose printer smiley_lauf Linux - Newbie 2 01-23-2006 03:20 AM
How can I edit a pdf document? geraldomanaus Linux - Software 5 04-22-2003 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration