You can do this with: sudo lpadmin -p to_file \ I think this is wrong, but I don't know for sure and I don't know how to change this.
When running the cupsfilter command with the option -list-filters On some investigation, I can see that some of PJL headers are different for both methods. lp -o Duplex=DuplexNoTumble -o PageSize=A4 -o landscape my_document.pdf I can now send this file to the printer with the raw option (avoiding any cupsfilters) lp -o raw my_document.psīut the drawback is that the printing result is not correct and not the same as when I print the normal way to my default printer. Use 'cupsfilter' cupsfilter -m application/vnd.cups-postscript \ I have two solutions, but both have drawbacks.
In OSX, I want to print to a file from the terminal.