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?
It sounds like your printer is not interpreting the PostScript file correctly. When you use `lpr` to print a `.ps` file, it should ideally be sent to a PostScript-capable printer which can interpret and print the file correctly. However, if your printer does not support PostScript natively, you might encounter the issue you're describing. Here’s what you can try to ensure proper printing of your PostScript file: 1. **Ensure you have a PostScript-capable printer**: Verify that your printer supports PostScript. If it does not, you'll need to convert the PostScript file to a format that your printer can handle. 2. **Using `lpr` with the correct mime type**: Sometimes specifying the mime type explicitly can help:
1 2 | lpr -P <your_printer_name> -o raw yourfile.ps |
1 2 3 | ps2pdf yourfile.ps yourfile.pdf lpr yourfile.pdf |
1 2 | brew install ghostscript |
1 2 | lp -d <your_printer_name> yourfile.ps |
Testing if the previous output contains the string -l
: False
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?
To print a PostScript (.ps) file directly from your Mac without it being interpreted as plain text, you need to ensure that the `lpr` command is aware that the file is in PostScript format. You can use the `-o` option with `lpr` to specify the document format. Here is the command you can use:
1 | lpr -o raw filename.ps |
1 | lp -o raw filename.ps |
Testing if the previous output contains the string -l
: False
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?
To print a PostScript (.ps) file directly from your Mac using the `lpr` command, you need to make sure that the file is sent to the printer in a format that the printer can understand. If your printer supports PostScript, you can use `lpr` with the `-o raw` option to send the file as-is without any additional processing. Here is the command you should use:
1 | lpr -o raw filename.ps |
1 2 | ps2pdf filename.ps filename.pdf lpr filename.pdf |
1 | brew install ghostscript |
Testing if the previous output contains the string -l
: False
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?
When you print a PostScript (.ps) file using `lpr` on a Mac, it's important to ensure that the file is correctly recognized as a PostScript file by the printer. If the printer is treating the file as plain text and printing the raw bytes, it indicates that the file is not being recognized correctly as a PostScript file. Here's the correct way to use the `lpr` command for a PostScript file: 1. **Use the `-o` option to specify the format**: The `-o` option allows you to specify the format of the file. For a PostScript file, you can use the `raw` option. 2. **Ensure the printer supports PostScript**: Make sure your printer supports PostScript printing. Here's the command you can use:
1 | lpr -o raw filename.ps |
1 | lpr -o document-format=application/postscript filename.ps |
Testing if the previous output contains the string -l
: False
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?
When printing a PostScript (.ps) file using the `lpr` command on your Mac, the printer must understand PostScript. If the printer supports PostScript, you should be able to use the `lpr` command directly. However, if you are seeing the raw bytes printed instead, it may be that the printer is not correctly interpreting the file as PostScript. First, ensure your printer supports PostScript. If it does, you can use the following command to print your PostScript file:
1 | lpr -P printer_name -o raw yourfile.ps |
1 | lpstat -p |
1 | ps2pdf yourfile.ps yourfile.pdf |
1 | lp -d printer_name yourfile.pdf |
1 2 | cupsfilter -i application/pdf yourfile.ps > yourfile.pdf lp -d printer_name yourfile.pdf |
Testing if the previous output contains the string -l
: False
Testing if the previous output contains the string -o raw
: True