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.
From 38184dca4dc969314a986bd6db3eecc600ad71fc Mon Sep 17 00:00:00 2001
From: Jonathan Kamens <[email protected]>
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
_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/