aboutsummaryrefslogtreecommitdiff
path: root/postscript/prologues/Nroundpage.ps
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-05-15 23:45:13 +0000
committerrsc <devnull@localhost>2004-05-15 23:45:13 +0000
commit13f7391e4a38634221f4a63da9f58f58473e77b0 (patch)
tree65b538843c8fbfbb5000de18ad6145ce82531781 /postscript/prologues/Nroundpage.ps
parent36a9115fcbe8ddb0baacc07f8c33add9a9f7b307 (diff)
downloadplan9port-13f7391e4a38634221f4a63da9f58f58473e77b0.tar.gz
plan9port-13f7391e4a38634221f4a63da9f58f58473e77b0.tar.bz2
plan9port-13f7391e4a38634221f4a63da9f58f58473e77b0.zip
More files!
Diffstat (limited to 'postscript/prologues/Nroundpage.ps')
-rw-r--r--postscript/prologues/Nroundpage.ps11
1 files changed, 11 insertions, 0 deletions
diff --git a/postscript/prologues/Nroundpage.ps b/postscript/prologues/Nroundpage.ps
new file mode 100644
index 00000000..44a67a6d
--- /dev/null
+++ b/postscript/prologues/Nroundpage.ps
@@ -0,0 +1,11 @@
+%
+% A version of roundpage.ps that assumes a symmetric clipping path. Thanks
+% to Matthijs Melchior for the suggestion.
+%
+
+/roundpagebbox {
+ pagebbox dup 0 get pagebbox 2 get add 2 exch put
+ pagebbox dup 1 get pagebbox 3 get add 3 exch put
+ pagebbox 0 0 put
+ pagebbox 1 0 put
+} bind def