From 59a8c88178b00fa51077458479fe43dfab1349bf Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Sun, 4 Aug 2024 07:55:55 -0400 Subject: [PATCH] Use %%PageOrientation, not %%Orientation in DSC comments. --- rem2pdf/bin/rem2pdf.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rem2pdf/bin/rem2pdf.in b/rem2pdf/bin/rem2pdf.in index 726f26cd..20414e3e 100644 --- a/rem2pdf/bin/rem2pdf.in +++ b/rem2pdf/bin/rem2pdf.in @@ -227,7 +227,7 @@ eval { $surface->set_metadata('subject', 'Calendar'); }; if ($settings->{ps}) { $surface->dsc_comment('%%Title: Calendar'); $surface->dsc_comment('%%Producer: rem2pdf (https://dianne.skoll.ca/projects/remind/)'); - $surface->dsc_comment('%%Orientation: ' . (($settings->{landscape}) ? 'Landscape' : 'Portrait')); + $surface->dsc_comment('%%PageOrientation: ' . (($settings->{landscape}) ? 'Landscape' : 'Portrait')); $surface->dsc_begin_setup(); } @@ -238,7 +238,7 @@ my $warned = 0; while(1) { if ($settings->{ps}) { $surface->dsc_begin_page_setup(); - $surface->dsc_comment('%%Orientation: ' . (($settings->{landscape}) ? 'Landscape' : 'Portrait')); + $surface->dsc_comment('%%PageOrientation: ' . (($settings->{landscape}) ? 'Landscape' : 'Portrait')); } my ($obj, $err) = Remind::PDF->create_from_stream(*STDIN, {color => 1,