Skip to content

Commit 0bd8acb

Browse files
authored
Add some bank spaces in the PS /PageSize line in case we need to edit in psconvert. (#8743)
1 parent ac5d35b commit 0bd8acb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/postscriptlight.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4743,8 +4743,8 @@ int PSL_beginplot (struct PSL_CTRL *PSL, FILE *fp, int orientation, int overlay,
47434743
if (manual_feed) /* Manual media feed requested */
47444744
PSL_command (PSL, "PSLevel 1 gt { << /ManualFeed true >> setpagedevice } if\n");
47454745
else if (PSL->internal.p_width > 0.0 && PSL->internal.p_height > 0.0) /* Specific media selected */
4746-
PSL_command (PSL, "PSLevel 1 gt { << /PageSize [%.12g %.12g] /ImagingBBox null >> setpagedevice } if\n",
4747-
PSL->internal.p_width, PSL->internal.p_height);
4746+
PSL_command (PSL, "PSLevel 1 gt { << /PageSize [%.12g %.12g] /ImagingBBox null >> setpagedevice } if \n",
4747+
PSL->internal.p_width, PSL->internal.p_height); /* Leave some space for eventual PageSize change by psconvert */
47484748
if (PSL->init.copies > 1) PSL_command (PSL, "/#copies %d def\n", PSL->init.copies);
47494749
PSL_command (PSL, "%%%%EndSetup\n\n");
47504750

0 commit comments

Comments
 (0)