aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Innes1998-11-11 14:35:27 +0000
committerAndrew Innes1998-11-11 14:35:27 +0000
commit9bf0a58762473229c16bbecde7ca66062c9d6ada (patch)
tree5f2790744864b5da07d6631bc9f95db5a75d8d20
parent4b2e75e6adacb911456ffe94514abc8f57d8b857 (diff)
downloademacs-9bf0a58762473229c16bbecde7ca66062c9d6ada.tar.gz
emacs-9bf0a58762473229c16bbecde7ca66062c9d6ada.zip
(ps-print-prologue-1): Only use old LandscapeMode handling if
setpagedevice is not available. (ps-begin-file): Fix typo.
-rw-r--r--lisp/ps-print.el24
1 files changed, 11 insertions, 13 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 69041c2f6a1..7a6a2287de4 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -2367,23 +2367,21 @@ StandardEncoding 46 82 getinterval aload pop
2367 /SpaceWidth /f0 findfont setfont ( ) stringwidth pop def 2367 /SpaceWidth /f0 findfont setfont ( ) stringwidth pop def
2368 % ---- save the state of the document (useful for ghostscript!) 2368 % ---- save the state of the document (useful for ghostscript!)
2369 /docState save def 2369 /docState save def
2370 /JackGhostscript where {pop 1 27.7 29.7 div scale}if
2370 % ---- [andrewi] set PageSize based on chosen dimensions 2371 % ---- [andrewi] set PageSize based on chosen dimensions
2371 /setpagedevice where { 2372 /setpagedevice where {
2372 pop 2373 pop
2373 1 dict dup 2374 1 dict dup
2374 /PageSize [ PrintPageWidth LeftMargin RightMargin add add 2375 /PageSize [ PrintPageWidth LeftMargin add RightMargin add
2375 LandscapePageHeight ] put 2376 LandscapePageHeight ] put
2376 setpagedevice 2377 setpagedevice
2377 } if 2378 }{
2378 % ---- [jack] Kludge: my ghostscript window is 21x27.7 instead of 21x29.7 2379 LandscapeMode {
2379 /JackGhostscript where { 2380 % ---- translate to bottom-right corner of Portrait page
2380 pop 1 27.7 29.7 div scale 2381 LandscapePageHeight 0 translate
2381 } if 2382 90 rotate
2382 LandscapeMode { 2383 }if
2383 % ---- translate to bottom-right corner of Portrait page 2384 }ifelse
2384 LandscapePageHeight 0 translate
2385 90 rotate
2386 } if
2387 /ColumnWidth PrintWidth InterColumn add def 2385 /ColumnWidth PrintWidth InterColumn add def
2388 % ---- translate to lower left corner of TEXT 2386 % ---- translate to lower left corner of TEXT
2389 LeftMargin BottomMargin translate 2387 LeftMargin BottomMargin translate
@@ -4562,7 +4560,7 @@ page-height == bm + print-height + tm - ho - hh
4562 4560
4563 (ps-mule-initialize) 4561 (ps-mule-initialize)
4564 4562
4565 (ps-output "%%EndPrologue\n%%BeginSetup\nBeginDoc\n%%EndSetup\n\n"))) 4563 (ps-output "%%EndPrologue\n%%BeginSetup\nBeginDoc\n%%EndSetup\n\n"))
4566 4564
4567(defun ps-header-dirpart () 4565(defun ps-header-dirpart ()
4568 (let ((fname (buffer-file-name))) 4566 (let ((fname (buffer-file-name)))