patch 9.1.0907: printoptions:portrait does not change postscript Orientation
Problem: printoptions:portrait does not change postscript Orientation
Solution: Set Orientation depending on portrait suboption.
fixes: #16156
closes: #16174
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/hardcopy.c b/src/hardcopy.c
index 8abfff2..785a3f5 100644
--- a/src/hardcopy.c
+++ b/src/hardcopy.c
@@ -2742,7 +2742,7 @@
prt_dsc_textline("CreationDate", get_ctime(time(NULL), FALSE));
prt_dsc_textline("DocumentData", "Clean8Bit");
- prt_dsc_textline("Orientation", "Portrait");
+ prt_dsc_textline("Orientation", prt_portrait ? "Portrait" : "Landscape");
prt_dsc_atend("Pages");
prt_dsc_textline("PageOrder", "Ascend");
// The bbox does not change with orientation - it is always in the default