I have a .ps file that I want to print from my mac. I'm trying to use lpr. But every time I print it all I get is the actual bytes just printed with like hundreds of pages and this is not what I want. I want the printer to just print the ps directly. What command should I use to make this work?
I have a .ps file that I want to print from my mac. I'm trying to use lpr. But every time I print it all I get is the actual bytes just printed with like hundreds of pages and this is not what I want. I want the printer to just print the ps directly. What command should I use to make this work?
# Printing PostScript Files on Mac It sounds like your printer isn't interpreting the PostScript code properly and is instead treating it as plain text. Here are some solutions: ## Best Options 1. **Convert to PDF first (recommended)**:
1 2 3 | ps2pdf your_file.ps your_file.pdf lpr your_file.pdf |
1 2 | open -a Preview your_file.ps |
1 2 | lpr -o raw your_file.ps |
1 2 | lpr -l your_file.ps |
Testing if the previous output contains the string -l
: True
Testing if the previous output contains the string -o raw
: True
I have a .ps file that I want to print from my mac. I'm trying to use lpr. But every time I print it all I get is the actual bytes just printed with like hundreds of pages and this is not what I want. I want the printer to just print the ps directly. What command should I use to make this work?
I have a .ps file that I want to print from my mac. I'm trying to use lpr. But every time I print it all I get is the actual bytes just printed with like hundreds of pages and this is not what I want. I want the printer to just print the ps directly. What command should I use to make this work?
# Printing PostScript Files on Mac When printing PS files with `lpr` directly, macOS often treats them as text files, which results in the raw PostScript code being printed instead of the rendered document. ## Solution Options 1. **Specify the document format (recommended)**:
1 2 | lpr -o document-format=application/postscript your_file.ps |
1 2 3 | pstopdf your_file.ps lpr your_file.pdf |
1 2 | lpr -o raw your_file.ps |
1 2 | open -a Preview your_file.ps |
1 | lpr -P printer_name -o document-format=application/postscript your_file.ps |
Testing if the previous output contains the string -l
: False
Testing if the previous output contains the string -o raw
: True