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>
This commit is contained in:
Christian Brabandt
2024-12-06 17:19:25 +01:00
parent 41afa308d6
commit ee9bc68f03
3 changed files with 30 additions and 1 deletions

View File

@ -2742,7 +2742,7 @@ mch_print_begin(prt_settings_T *psettings)
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