- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- PCL files
Operating System - HP-UX
1819682
Members
3567
Online
109605
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
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
11-28-2005 11:08 AM
11-28-2005 11:08 AM
Does anyone know how to handle PCL files
when trying to view and print them from
a PC via Samba share.
Printing a PCL file from the UNIX side is
not a problem. Although you can't view it
very well. But trying to print from Windows
does not work nor is PCL recognized by any
apps on PC, unless there is some tool that
needs to be installed.
Basically we would like to view and print
PCL files from Windows.
when trying to view and print them from
a PC via Samba share.
Printing a PCL file from the UNIX side is
not a problem. Although you can't view it
very well. But trying to print from Windows
does not work nor is PCL recognized by any
apps on PC, unless there is some tool that
needs to be installed.
Basically we would like to view and print
PCL files from Windows.
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 11:38 AM
11-28-2005 11:38 AM
Solution
PCL is actually a plain old ASCII file with a few (to thousands) of escape sequences to format the text. Unlike PDF or JPG files, the format is not suitable for display at all--it is a printer language and would require a printer formatter to display the result. About all you can see (on Unix or Windows) is simple text. All the rest of the codes control font downloads, graphics elements, even macros within the printer. And there are several versions of PCL with the higher levels (PCL 3,4,5,etc) customized to the target printer.
PCL contains too much variation to be easily converted to a display device like a screen. The other popular printer language is Postscript and although there are 3 versions, it is a page layout and definition language, and more generalized so that different printers can interpret the codes to match the capabilities of the print engine. And note that unlike Windows where the printer interface between the program and printer driver is a generalized meta language, no such facility exists in Unix.
As far as Samba file sharing, remember that text files are incompatibile between Unix and Windows. You can fix them on the Unix side with ux2dos and dos2ux, but Windows lacks usefulo tools in this regard. The reason is that Windows uses CR+LF at the end of each line while Unix use just LF. This is very likely the cause of the PCL printing problems. The PCL file on Unix has LF at the end of each line but when Windows prints the file, the missing CR causes a stairstep down the paper. You could filter the program with ux2dos but if the PCL file also contains imbedded fonts and/or graqphics content, ux2dos will incorrectly interpret some binary codes aqs text terminators and insert CR in the middle of a font description.
There is no easy solution. If you have HP printers, you can use a separator page to tell the printer to interpret LF as CR+LF in text strings. When fonts are being downloaded, the printer is smart enough to turn off the LF mapping.
Bill Hassell, sysadmin
PCL contains too much variation to be easily converted to a display device like a screen. The other popular printer language is Postscript and although there are 3 versions, it is a page layout and definition language, and more generalized so that different printers can interpret the codes to match the capabilities of the print engine. And note that unlike Windows where the printer interface between the program and printer driver is a generalized meta language, no such facility exists in Unix.
As far as Samba file sharing, remember that text files are incompatibile between Unix and Windows. You can fix them on the Unix side with ux2dos and dos2ux, but Windows lacks usefulo tools in this regard. The reason is that Windows uses CR+LF at the end of each line while Unix use just LF. This is very likely the cause of the PCL printing problems. The PCL file on Unix has LF at the end of each line but when Windows prints the file, the missing CR causes a stairstep down the paper. You could filter the program with ux2dos but if the PCL file also contains imbedded fonts and/or graqphics content, ux2dos will incorrectly interpret some binary codes aqs text terminators and insert CR in the middle of a font description.
There is no easy solution. If you have HP printers, you can use a separator page to tell the printer to interpret LF as CR+LF in text strings. When fonts are being downloaded, the printer is smart enough to turn off the LF mapping.
Bill Hassell, sysadmin
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