Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #671
| From | Gerhard Trummer <gtrum@gmail.com> |
|---|---|
| Newsgroups | comp.lang.postscript |
| Subject | Printing two A5 pages to A4 |
| Date | 2012-05-04 18:29 +0200 |
| Organization | albasani.net |
| Message-ID | <jo104u$o8a$1@news.albasani.net> (permalink) |
Hi,
I'm trying to print two A5 pages to A4 sheet (landscape), but it doesn't
work as expected. Here is my test source:
$ cat a5.ps
%!PS-Adobe-3.0
%%BoundingBox: 0 0 420 595
%%Creator: GNU Emacs
%%Pages: 8
%%EndComments
%%BeginProlog
<< /PageSize [420 595] >> setpagedevice
/SetFont {/Helvetica-Bold findfont 288 scalefont setfont} def
/Frame {
1 1 moveto 418 0 rlineto
0 593 rlineto
-418 0 rlineto
closepath stroke
} def
%%EndProlog
%%Page: 1 1
Frame
SetFont 72 72 moveto (1) show
showpage
%%Page: 2 2
/Helvetica-Bold findfont 288 scalefont setfont
Frame
SetFont 72 72 moveto (2) show
showpage
%%Page: 3 3
/Helvetica-Bold findfont 288 scalefont setfont
Frame
SetFont 72 72 moveto (3) show
showpage
%%Page: 4 4
/Helvetica-Bold findfont 288 scalefont setfont
Frame
SetFont 72 72 moveto (4) show
showpage
%%Page: 5 5
/Helvetica-Bold findfont 288 scalefont setfont
Frame
SetFont 72 72 moveto (5) show
showpage
%%Page: 6 6
/Helvetica-Bold findfont 288 scalefont setfont
Frame
SetFont 72 72 moveto (6) show
showpage
%%Page: 7 7
/Helvetica-Bold findfont 288 scalefont setfont
Frame
SetFont 72 72 moveto (7) show
showpage
%%Page: 8 8
/Helvetica-Bold findfont 288 scalefont setfont
Frame
SetFont 72 72 moveto (8) show
showpage
%%EOF
It produces 8 pages A5 and is displayed as expected. But if I try to
print it:
$ lpr -P PDF -o "number-up=2 number-up-layout=lrtb page-set=odd" a5.ps
The media is A4 and landscape, but the two A5 pages are to small. It
seems Ghostscript thinks the original format is A4 not A5. I suppose my
source is wrong, but I can't figure out why.
What I really want to achieve is to produce the following output with a
small script:
| 1 3 | 5 7 |
| 8 6 | 4 2 |
in two batches, because my inkjet has no duplex printing and I'd like to
print two A5 pages (double-sided) on one A4 sheet and cut the pages in
half in the end. I use CUPS 1.5.2 and Ghostscript 9.05 on Linux. Can
anybody give me a clue?
G.
Back to comp.lang.postscript | Previous | Next — Next in thread | Find similar | Unroll thread
Printing two A5 pages to A4 Gerhard Trummer <gtrum@gmail.com> - 2012-05-04 18:29 +0200
Re: Printing two A5 pages to A4 Helge Blischke <h.blischke@acm.org> - 2012-05-04 20:44 +0200
Re: Printing two A5 pages to A4 Gerhard Trummer <gtrum@gmail.com> - 2012-05-05 08:05 +0200
Re: Printing two A5 pages to A4 Gerhard Trummer <gtrum@gmail.com> - 2012-05-08 01:04 +0200
csiph-web