- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Print to a file
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
Forums
Discussions
Discussions
Discussions
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
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
07-30-2002 05:28 AM
07-30-2002 05:28 AM
Is it a easy way to configure a printer on hpux which prints to a file (pdf format) ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 05:30 AM
07-30-2002 05:30 AM
Re: Print to a file
no, its not easy, and in fact I think its impossible (to a pdf format anyway).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 05:47 AM
07-30-2002 05:47 AM
Re: Print to a file
The best way is to have an ascii dump and then ftp to a PC and then change the format to whatever you desire , as Unix primarily is good in processing rather tahn formatting.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 05:57 AM
07-30-2002 05:57 AM
Re: Print to a file
i think it is impossible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 06:24 AM
07-30-2002 06:24 AM
Re: Print to a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 06:29 AM
07-30-2002 06:29 AM
Re: Print to a file
The ascii to PDF conversion was discussed recently.
see
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0b1f4b3ef09fd611abdb0090277a778c,00.html
First try the solutions shown and if 1 works for you then put it in the dummy printer scripts.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 06:45 AM
07-30-2002 06:45 AM
SolutionThe pdf part makes it a little more difficult.
You will need to get a ps to pdf conversion utility.
See http://www.ps2pdf.com or search in http://hpux.cs.utah.edu
Then create a print queue using an existing laserjet printer if you can.
Copy /usr/spool/lp/model/postscript to /etc/lp/interface/model.orig/
Edit the /etc/lp/interface/
It will be a lot easier if you can get a pdf conversion utility that takes ascii input.
Then you can create a "dumb" printer.
lpadmin -p
which will only produce the /etc/lp/interface/
Then you can modify it to do what you want.
Here is a summary of the variables that the spooler passes to the /etc/lp/interface/
$1 = Job
$2 = User Name
$3 = Title
$4 = Numb. Copies
$5 = Options
$6 and up = files to print
Good Luck,
Rich
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 10:02 AM
07-30-2002 10:02 AM
Re: Print to a file
can start with that.
http://www.aladdin.com/
http://www.ghostscript.com/
http://www.cs.wisc.edu/~ghost/
If you're starting with ASCII text, you'll want GNU
enscript or somesuch to convert your text from ASCII
to Postscript.
The trick is in writing the appropriate printer interface
script. You can probably arrange for the user to
supply the filename via a "-o" option. Then you'll
have to deal with file ownership and permissions.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 10:09 AM
07-30-2002 10:09 AM
Re: Print to a file
I do it through the acrobat reader. In this case, no need for any special configuration for the printer.
Hope i understood your question ;-)
-raj