On 11/04/2020 13.46, Masaru Nomiya wrote:
Hello,
In the Message;
Subject : Re: [opensuse] command line printing question Message-ID :
Date & Time: Sat, 11 Apr 2020 13:31:08 +0200 [CER] == "Carlos E. R." <> has written:
...
CER> > Whatever I try, the document is always printed A5 portrait CER> > mode on the A4 paper with the document's lower edge close CER> > to the bottom of the A4 paper.
CER> I assume the document is one page only?
CER> Have you tried on another computer and/or printer?
CER> Perhaps add another page to the document, then use a concoction to print 2 pages CER> on one sheet.
CER> > CER> > I tried these commands, and all gives exactly the same result: CER> > CER> > lpr -P printer -o media=a4 file.pdf CER> > lpr -P printer -o media=a5 -o orientation-requested=4 file.pdf CER> > lpr -P printer -o media=a4 -o orientation-requested=4 file.pdf CER> > lpr -P printer -o media=a5 file.pdf CER> > lp -d printer -o media=a4 -o orientation-requested=4 file.pdf CER> > lp -d printer -o media=a5 -o orientation-requested=4 file.pdf CER> > lp -d printer -o media=a5 -o landscape file.pdf
CER> Perhaps:
CER> lpr -P printer -o media=a4 -o landscape file.pdf
CER> I got good results when printing envelopes with this concoction:
CER> lpr -P cp1510n_ps -o PageSize=Custom.340x493 \ CER> -o InputSlot=Tray1_Man envelope.pdf
CER> Of course, in your case we have to find first the a5 size in points.
CER> 148 x 210 mm 5,8 x 8,3 inches.
cer@Telcontar:~> units 148mm pspoint CER> * 419.52756 CER> / 0.0023836336 cer@Telcontar:~> units 210mm pspoint CER> * 595.27559 CER> / 0.0016798942 CER> cer@Telcontar:~>
CER> So it might be something like:
CER> lpr -P printer -o PageSize=Custom.596x419 file.pdf
CER> if not try reverse the sizes (I'm not clear on that).
CER> You could share the pdf with us (on susepaste.org). If the file CER> is private, just generate a sample one we can use and try on our CER> printers.
Amazing!
With which printer and cups, did you get the above result?
Is it a POSTSCRIPT printer?
Yes, it is. A Hewlet Pacard CP1515n -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)