When I print with LPR on Linux, I could print with A5 with -omedia= A5, but Windows (powershell) doesn't work the same way with the same option.
If you change the default size in the printer settings in the device settings, you will ignore it and print it in A4.
Is there any way to print PDF with LPR by specifying the size?
Rather than using LPR, I would like to print PDF by specifying the size from the command line without installing the application, so please let me know if it is a separate solution.
Get-Printer | Set-PrintConfiguration-PaperSize A5
If you run lpr after setting it up like this, you can do it.
© 2024 OneMinuteCode. All rights reserved.