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> [1 ]
CER> [1.1 ]
CER> On 09/04/2020 00.46, Istvan Gabor wrote:
CER> > Hello:
CER> >
CER> > I have a pdf file which is A5 paper size in landscape mode.
CER> > When I open it in a pdf viewer (acroread, kdpf, okular) it
CER> > is shown in landscape mode.
CER> >
CER> > pdfinfo shows:
CER> >
CER> > Producer: GPL Ghostscript 9.15
CER> > CreationDate: Wed Apr 8 23:20:35 2020
CER> > ModDate: Wed Apr 8 23:20:35 2020
CER> > Tagged: no
CER> > Pages: 1
CER> > Encrypted: no
CER> > Page size: 596 x 421 pts (A5)
CER> > File size: 43191 bytes
CER> > Optimized: no
CER> > PDF version: 1.5
CER> >
CER> > I would like to print this file, using lp or lpr command,
CER> > onto the upper half of a portrait A4 paper, that is the
CER> > A5 file is placed in landscape mode on a portrait A5
CER> > paper's upper half.
CER> >
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?
Regards,
---
┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp
┃\/彡
┗━━┛ "No Windows, no gains!" ..... "Why, I am wrong?"
-- Bill --
--
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse+owner@opensuse.org