[Remind-Fans] Patch to make rem2ps set the page size in the PostScript file
Jonathan Kamens
jik at kamens.us
Tue Jan 5 17:12:45 EST 2021
When I tell rem2ps to format my calendar for Legal paper and then print
it or view it in a PostScript viewer, it is displayed or printed using
whatever the default paper size for the printer or viewer is, because
rem2ps doesn't indicate in the PostScript what size the page is. The
attached (simple) patch fixes this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dianne.skoll.ca/pipermail/remind-fans/attachments/20210105/3beec1fc/attachment.htm>
-------------- next part --------------
From 38184dca4dc969314a986bd6db3eecc600ad71fc Mon Sep 17 00:00:00 2001
From: Jonathan Kamens <jik at kamens.us>
Date: Tue, 5 Jan 2021 17:04:07 -0500
Subject: [PATCH] rem2ps: Put page size in output
Set the page size in the PostScript output so the file displays and
prints properly without the user having to specify the size.
---
src/rem2ps.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/rem2ps.c b/src/rem2ps.c
index 216d6dc..0fc1531 100644
--- a/src/rem2ps.c
+++ b/src/rem2ps.c
@@ -590,6 +590,7 @@ void WriteProlog(void)
printf("%%%%Pages: (atend)\n");
printf("%%%%Orientation: %s\n", PortraitMode ? "Portrait" : "Landscape");
printf("%%%%EndComments\n");
+ printf("<< /PageSize [%d %d] >> setpagedevice\n", x, y);
for (i=0; PSProlog1[i]; i++) puts(PSProlog1[i]);
if (!MondayFirst)
--
2.27.0
More information about the Remind-fans
mailing list