How to send a binary PostScript file to an ASCII-only printer?
Many network printers don’t accept PS files containing binary data. Sometimes it is impossible to re-create the file as 7-bit ASCII but any file is easy to convert to ASCII stream and execute it through the corresponding decoding filter. The following script converts standard input to hexadecimal stream and adds the decoding code. All DSC comments will be hidden but most printers ignore them anyway. The script was tested on bash and GNU/Linux system.
Related Questions
- When merging directly to file (rather than to a printer), I am producing output as PostScript files. How do I create PDF files rather than PostScript files?
- Can I send the printer output to a file and then later on print it on a Dot Matrix, Laser Printer or an Image Setter?
- How to send a binary PostScript file to an ASCII-only printer?