- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Batch PDF Printing to PostScript Printer
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2007 05:56 AM
тАО01-12-2007 05:56 AM
Has anyone else done this and what did you do?
I am open to using GhostScript, but I have no clue how to get it set up on my system, let alone use it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2007 09:01 PM
тАО01-12-2007 09:01 PM
Re: Batch PDF Printing to PostScript Printer
-toPostScript [options] pdf_file ... [ps_dir]
-toPostScript [options] -pairs pdf_file_1 ps_file_1 ...
-toPostScript [options]
Converts the given pdf_files to PostScript.
On page 5 of the acroread help it says:
To display a list of all Acrobat Reader command-line options (UNIX), start the Acrobat Reader product with the -help option. For example: acroread -help
Page 10 has:
Printing PDF documents from the command line (UNIX)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2007 03:15 AM
тАО01-13-2007 03:15 AM
Re: Batch PDF Printing to PostScript Printer
try setting the DISPLAY variable like this:
$ export DISPLAY=127.0.0.1:0
and then try acroread like this:
$ /path/to/acroread -toPostScript -shrink < /path/to/whatever.pdf | lp -d myprinter
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2007 02:17 PM
тАО01-13-2007 02:17 PM
Re: Batch PDF Printing to PostScript Printer
(acroread:27492): Gtk-WARNING **: cannot open display:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2007 06:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2007 03:36 AM
тАО01-15-2007 03:36 AM
Re: Batch PDF Printing to PostScript Printer
xinit /usr/local/bin/printpdf.sh -ld {printer} {pdf_file} -- /usr/bin/X11/Xvfb :0
I wrote a wrapper for acroread to specify the PATH and LD_LIBRARY_PATH for GTK+. It also specifies some options I needed set for acroread.
Again, thanks everyone for the help!