[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#365506: gs-gpl: should respect /etc/papersize



Hi,
gs-esp honors /etc/papersize, if you compare the gs_init.ps files, you can
see how:

@@ -73,6 +73,13 @@
 % devices that default to letter or A4 can be changed by setting
 % DEFAULTPAPERSIZE.
 % /DEFAULTPAPERSIZE (a4) def
+% Debian: Libpaper's default is in DEFPAPERSIZE; use that if the
+%         current device is not "cups".
+currentdict /DEFPAPERSIZE known
+currentdict /DEVICE known { DEVICE } { () } ifelse
+(cups) ne and
+  { DEFPAPERSIZE /PAPERSIZE where { pop pop } { /PAPERSIZE exch def } ifelse }
+if

It should not be difficult to include something similar in gs-gpl?

Christian




Reply to: