aboutsummaryrefslogtreecommitdiff
path: root/postscript/prologues/Nroundpage.ps
diff options
context:
space:
mode:
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