Print PDF file directly from Solaris 9

Posted on 2008-02-05
Medium Priority
Last Modified: 2013-12-27
I am trying to figure out how to print PDF file directly from Solaris 9.  Based on other suggestions, I downloaded and installed Acrobat Reader for Solaris and run the following command:

./acroread -toPostScript <  /tmp/invcdoc2.pdf | lp -d mc035

The output is:
lp: stdin is empty, so no job has been sent.
ksh: 13302 Segmentation Fault

Any suggestions on how to overcome this error or another way to print a PDF would be appreciated.

Question by:shannon_adams
LVL 27

Expert Comment

ID: 20828993
If you use CDE or GNOME, I would recommend you to install CUPS: http://www.sun.com/bigadmin/content/submitted/install_cups.html
Configure your printer, then just open PDF in Acrobat and choose 'print'.

LVL 17

Accepted Solution

Hanno P.S. earned 2000 total points
ID: 20830342
When you open the PDF file in Acrobat Reader, you can print it on any
installed postscript printer without problems. Alternatively, you may
use PCL printers as well.

Here is how to add a networked postscript printer in Solaris:
Please add a networked postscript  printer in Solaris this way only:
a) Make sure you have a host entry for your printer's ip address
    Example entry in /etc/hosts (aka. /etc/inet/hosts):      laser01
b) Add the printer with local name <queue>, where <print_dest> is the hostname (or
    IP address as stated above):
    # lpadmin -p <queue> -o protocol=bsd,dest=<print_dest> -T PS -I postscript \
       -v /dev/null -i /usr/lib/lp/model/netstandard
c) Enable the printer queue and the printer itself:
   # accept <queue> ; enable <queue>
Now you can print using standard Unix System V commands like
  # lp myfile

If myfile is not a postscript file, it will not be converted to postscript automatically.
To install the required filters to perform this job automatically when sending a text
file to your printer's queue, use these commands:
# cd /etc/lp/fd
# lpfilter -f download -F download.fd
# lpfilter -f dpost -F dpost.fd
# lpfilter -f postdaisy -F postdaisy.fd
# lpfilter -f postdmd -F postdmd.fd
# lpfilter -f postio -F postio.fd
# lpfilter -f postior -F postior.fd
# lpfilter -f postmd -F postmd.fd
# lpfilter -f postplot -F postplot.fd
# lpfilter -f postprint -F postprint.fd
# lpfilter -f postreverse -F postrevers.fd
# lpfilter -f posttek -F posttek.fd

To get rid of the banner page, you have to change the file /etc/lp/interfaces/<queue>
   1) nobanner=no  has to be changed to nobanner=yes
   2) In the line with the definition von "NETPR=..." add option "-b"

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month3 days, 7 hours left to enroll

598 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