- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- convert pdf to pcl w/ghostscript...
Operating System - HP-UX
1819929
Members
3077
Online
109607
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
Discussions
Discussions
Discussions
Forums
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
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
тАО04-07-2005 06:57 AM
тАО04-07-2005 06:57 AM
convert pdf to pcl w/ghostscript...
The developers are creating pdf output, which they would like to print.
Initially acroread from adobe, looked like the solution:
convert pdf to postscript and print....but I found that some of our older laserjet printers (laserjet4) had issues when they received any postscript print request.
Now I am looking at ghostscript to go from pdf to pcl which all printers can support.
I am using the following command to convert the file from pdf to pcl:
/usr/local/bin/gs -sDEVICE=laserjet -sOutputFile=laserjet.prn -dNOPAUSE -q -dBATCH b.1558648.00.out.pdf -c quit
$ file b.1558648.00.out.pdf
b.1558648.00.out.pdf: lex command text
$ file laserjet.prn
laserjet.prn: PCL
Since I am new to ghostscript, are there any arguments I can take advantage of?
maybe cleanup the syntax listed above?
thanks for your assistance,
manuel
Initially acroread from adobe, looked like the solution:
convert pdf to postscript and print....but I found that some of our older laserjet printers (laserjet4) had issues when they received any postscript print request.
Now I am looking at ghostscript to go from pdf to pcl which all printers can support.
I am using the following command to convert the file from pdf to pcl:
/usr/local/bin/gs -sDEVICE=laserjet -sOutputFile=laserjet.prn -dNOPAUSE -q -dBATCH b.1558648.00.out.pdf -c quit
$ file b.1558648.00.out.pdf
b.1558648.00.out.pdf: lex command text
$ file laserjet.prn
laserjet.prn: PCL
Since I am new to ghostscript, are there any arguments I can take advantage of?
maybe cleanup the syntax listed above?
thanks for your assistance,
manuel
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2005 08:03 AM
тАО04-07-2005 08:03 AM
Re: convert pdf to pcl w/ghostscript...
I am particularly looking for a way to incorporate the actual printing of the new PCL file.
a ONEliner would be great...
thanks,
manuel
a ONEliner would be great...
thanks,
manuel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2005 10:19 AM
тАО04-07-2005 10:19 AM
Re: convert pdf to pcl w/ghostscript...
ok, I found my one liner...I think:
cat b.1558648.00.out.pdf | /usr/local/bin/gs -sDEVICE=laserjet -q -dNOPAUSE -dPDFFitPage -dBATCH -sOutputFile=- - 2> /dev/null | lp -d printerID
the only problem is that the output tends to be high and to the right...
I have tried several ghostscript options to try and scale the image, unfortunately none have yet to work...
any ideas?
manuel
cat b.1558648.00.out.pdf | /usr/local/bin/gs -sDEVICE=laserjet -q -dNOPAUSE -dPDFFitPage -dBATCH -sOutputFile=- - 2> /dev/null | lp -d printerID
the only problem is that the output tends to be high and to the right...
I have tried several ghostscript options to try and scale the image, unfortunately none have yet to work...
any ideas?
manuel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2005 05:12 AM
тАО04-14-2005 05:12 AM
Re: convert pdf to pcl w/ghostscript...
Now that I can convert pdf to pcl and print, I would like to write something to recognize the file TO BE printed.
I was thinking that I could utilize the "file" command, as pdf files/output (regardless of file extention) indicates "lex command text"...
$ file tps_tcdockinv_format.pdf
tps_tcdockinv_format.pdf: lex command text
Is there another way to determine that a file is a PDF file?
thanks,
manuel
I was thinking that I could utilize the "file" command, as pdf files/output (regardless of file extention) indicates "lex command text"...
$ file tps_tcdockinv_format.pdf
tps_tcdockinv_format.pdf: lex command text
Is there another way to determine that a file is a PDF file?
thanks,
manuel
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP