Posted on 2004-11-16
Last Modified: 2010-04-20
How to print PDF, EXCEL, WORD files in Linux?
Question by:glogin
    LVL 38

    Expert Comment


    You need to have the following packages installed on your Linux:
    pdf:   Adobe acrobat-reader or xpdf
    excel: open office or kde office (koffice)
    word: open office, kde office or abiword


    Author Comment

    does it mean that after installing these packages, I can print these document using 'lp -d <print queue> <file name>' ??

    coz I want to trigger printing via shell mode

    pls suggest
    LVL 5

    Accepted Solution

    What printing package are you using?  CUPS has built in PDF processing support so that lp -d yourprinter sample.pdf or lpr -P yourprinter sample.pdf will work.  LPRng has file recognition support so that you have to hack the filter config file to point it to a program that will convert your pdf to a printer-friendly file.

    Author Comment

    Thanks paranoidcookie, how about Excel file printing in linux? Does CUPS supports MS Excel?
    LVL 5

    Expert Comment

    Im not sure on command line printing of excel I had a look round but most people use openoffice, I guess you could do some OO scripting to to the conversion and print from the command line.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now