I am trying to print a PDF document via the command line. The PDF has the format of a business card. The paper I am printing on is in A6 format.
I have tried the following command:
lpr -P -o media=A6 ./BusinessCard.pdf
The job is sent to the printer (HP Officejet Pro 8620). Then the printer displays the following error message:
>Selected print format does not match the paper format.
As soon as I confirm the error, the print job is deleted from the queue.
Is it possible to print a PDF with a smaller format than the paper loaded via the command line. I want the PDF to be printed in the upper left corner.
# EDIT
I went through the lpstat lpinfo lpq lpadmin pdfinfo pdftk xpdf
man pages but could not find an option to overcome the format issue. Do I have to change my PDF before sending it to the printer?
Asked by Molitoris
(101 rep)
Apr 26, 2021, 06:54 PM
Last activity: Apr 27, 2021, 01:08 PM
Last activity: Apr 27, 2021, 01:08 PM