I am currently using Arch linux. I am trying to print a pdf file for the command line, it is easier that way as I need to print several range of pages.

Just for testing I issue a command to print a text file:

lpr a.txt

And it prints ok. Now I want to print the pdf file:

 lpr -P HP_LaserJet_2300_series 
 -o page-ranges=80-81 
 -o media=a4 
 -o sides=two-sided-long-edge 
 -o scaling=110
 "Introductory and Intermediate Algebra - Aufmann 4th.pdf"

When I issue lpq this is the result:

HP_LaserJet_2300_series is ready
Rank    Owner   Job     File(s)                           Total Size 
1st     alber   321     Introductory and Intermediate A   32868352 bytes

So the file is in the queue but is not printing and there are no processing jobs on the printer either.

I then access CUPS web interface. I look at state of the pending jobs and the following message appears:

stopped  "Exception: /var/spool/cups/d00321-001 
(file position 32580806): unknown token while reading object (PDF)"
  • Does lpr "Introductory and Intermediate Algebra - Aufmann 4th.pdf" print? Does lpr -P HP_LaserJet_2300_series a.txt print? – slm Apr 21 '14 at 6:15
  • @slm No. It adds a queue but not printing: 2nd alber 322 Introductory and Intermediate A 32868352 bytes – milarepa Apr 21 '14 at 6:17
  • 1
    What about: lpr -P HP_LaserJet_2300_series a.txt? – slm Apr 21 '14 at 6:17
  • @slm lpr -P HP_LaserJet_2300_series a.txt prints ok, but still can't print the pdf file. – milarepa Apr 21 '14 at 6:18
  • 2
    Please post (in the question) /etc/cups/printers.conf. Also, please look in /var/log/cups. Check particularly access.log and errors.log for anything that looks relevant. Also look at page.log. – Faheem Mitha Apr 21 '14 at 8:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.