HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- printing pdf documents using ghostscript on hp-ux ...
Operating System - HP-UX
1829087
Members
2395
Online
109986
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
02-18-2004 02:56 AM
02-18-2004 02:56 AM
printing pdf documents using ghostscript on hp-ux 11.x
I have loaded Ghostscript 7.07. Now Im trying to print a PDF document but I get the output below. What is happening?
On a laser jet 4000 I can run the following successfully:
cat file.pdf | /opt/Acrobat4/bin/acroread -toPostscript -shrink | lp -dprinter
This works, but it does not work to a LaserJet 5si or Laserjet 4, which is why Im trying to use ghostscript.
/home/tbowden # gs -dPrinted - < o2453781.pdf
GNU Ghostscript 7.07 (2003-05-17)
Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 3.
Page 1
Loading NimbusMonL-Bold font from /usr/local/share/ghostscript/fonts/n022004l.pfb... 1999456 643587 1662720 370378 2 done.
Loading NimbusSanL-Bold font from /usr/local/share/ghostscript/fonts/n019004l.pfb... 2039648 688135 1682816 381216 2 done.
Page 2
Page 3
Loading NimbusMonL-Regu font from /usr/local/share/ghostscript/fonts/n022003l.pfb... 2099936 745047 1682816 387701 2 done.
Im not sure what is happening, but if someone could help I would be much appreciated.
Todd
On a laser jet 4000 I can run the following successfully:
cat file.pdf | /opt/Acrobat4/bin/acroread -toPostscript -shrink | lp -dprinter
This works, but it does not work to a LaserJet 5si or Laserjet 4, which is why Im trying to use ghostscript.
/home/tbowden # gs -dPrinted - < o2453781.pdf
GNU Ghostscript 7.07 (2003-05-17)
Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 3.
Page 1
Loading NimbusMonL-Bold font from /usr/local/share/ghostscript/fonts/n022004l.pfb... 1999456 643587 1662720 370378 2 done.
Loading NimbusSanL-Bold font from /usr/local/share/ghostscript/fonts/n019004l.pfb... 2039648 688135 1682816 381216 2 done.
Page 2
Page 3
Loading NimbusMonL-Regu font from /usr/local/share/ghostscript/fonts/n022003l.pfb... 2099936 745047 1682816 387701 2 done.
Im not sure what is happening, but if someone could help I would be much appreciated.
Todd
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2004 03:37 AM
02-18-2004 03:37 AM
Re: printing pdf documents using ghostscript on hp-ux 11.x
Hi Todd,
How about installing the acrobat reader on hpux ?
http://ftp.uni-koeln.de/WWW/acrobat-reader-3/unix/00index.htm
HTH,
Robert-Jan
How about installing the acrobat reader on hpux ?
http://ftp.uni-koeln.de/WWW/acrobat-reader-3/unix/00index.htm
HTH,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2004 03:43 AM
02-18-2004 03:43 AM
Re: printing pdf documents using ghostscript on hp-ux 11.x
Thanks,
Acrobat reader 4.0 is already installed. The problem is trying to print to printers like HP Laserjet 5si. Im not sure why I cant print to this printer. I think it has something to do with PS vs. PCL.
I can print with no problem to a hp 4000 printer using Acrobat.
Acrobat reader 4.0 is already installed. The problem is trying to print to printers like HP Laserjet 5si. Im not sure why I cant print to this printer. I think it has something to do with PS vs. PCL.
I can print with no problem to a hp 4000 printer using Acrobat.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2004 06:41 PM
02-18-2004 06:41 PM
Re: printing pdf documents using ghostscript on hp-ux 11.x
Hello Todd,
The laserjet 4 is only PCL and acrobatreader on hpux prints only in PS.
So you are right to use gs, but you should add the parameter ljet4 in the command :
gs -sDEVICE=ljet4 files ...
But as far as I know, gs cannot read pdf. So
you can arrange a script I use to concatenate pdf files :
acroread -toPostScript -size a4 files.pdf
gs -dNOPAUSE -dBATCH -dQUIET -sDEVICE=ljet4 -sOutputFile=file.lj -sPAPERSIZE=a4 files.ps
lp file.lj
Gerard
The laserjet 4 is only PCL and acrobatreader on hpux prints only in PS.
So you are right to use gs, but you should add the parameter ljet4 in the command :
gs -sDEVICE=ljet4 files ...
But as far as I know, gs cannot read pdf. So
you can arrange a script I use to concatenate pdf files :
acroread -toPostScript -size a4 files.pdf
gs -dNOPAUSE -dBATCH -dQUIET -sDEVICE=ljet4 -sOutputFile=file.lj -sPAPERSIZE=a4 files.ps
lp file.lj
Gerard
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP