System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

print .pdf file from linux box

avizen9
Esteemed Contributor

print .pdf file from linux box

HI everyone,

i am using RHEL 4, recently need to print .pdf file with it, i am using a network printer model HP Laser Jet 9050, i can print word document (.doc) everything is good with it, but .pdf it does not support, print all junk charactor.

please advice on this what i should do, thanks
9 REPLIES
Dennis Handly
Acclaimed Contributor

Re: print .pdf file from linux box

You could install Adobe Reader.
avizen9
Esteemed Contributor

Re: print .pdf file from linux box

reader already installed how to print? i am having many files which requier to print i cant open that all files in reader and print, i want to print through command line, let me know if you have any other solusion for this, thanks,
Vitaly Karasik_1
Honored Contributor

Re: print .pdf file from linux box

Do your PDFs contain non-english symbols?
May be you need to install some fonts.
avizen9
Esteemed Contributor

Re: print .pdf file from linux box

i dont think fonts are missing..... we need to install some filter which make printer undestand to print .pdf....but not sure what should be solusion
Heironimus
Honored Contributor

Re: print .pdf file from linux box

Does your "all junk" output start with something like "%PDF-1.3"? If so, CUPS isn't recognizing it and is trying to print it as flat text. I think it is possible to get CUPS to handle PDF directly, but it's probably easier to use Acrobat Reader to convert to Postscript ("acroread -help" for command-line usage) and then print.
Dennis Handly
Acclaimed Contributor

Re: print .pdf file from linux box

>Heironimus: "acroread -help" for command-line usage

From this doc:
http://update.adobe.com/pub/adobe/acrobatreader/win/5.x/enu/reader.pdf
Printing PDF documents from the command line (UNIX)
... you can print PDF files from the command line. To print the file sample.pdf to the default printer, type the following:
cat sample.pdf | acroread -toPostScript | lp
avizen9
Esteemed Contributor

Re: print .pdf file from linux box

hi , i tried with acroread, i converted .pdf into postscript and then i had tried to print but it also doest work for me. ;(

i had used below command.
acroread toPostScript a.doc
lpr -P hplaserjet a.ps

its printing one line on top of page junk charactor.

any other help i can get here.
Dennis Handly
Acclaimed Contributor

Re: print .pdf file from linux box

It seems to imply you might use:
acroread -toPostScript < a.pdf | lpr -P hplaserjet

Does lpr have a -opost option?
avizen9
Esteemed Contributor

Re: print .pdf file from linux box

this issue has resolved
i had put my printer on hp drivers which already in RHEL also changed printer spool, it work fine.