How to print a4 (European) pagesize in PDQ

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
menno
Posts: 80
Joined: Thu 03 Nov 2005, 23:21
Location: Bedum (Nederland)
Contact:

How to print a4 (European) pagesize in PDQ

#1 Post by menno »

In Europa we use mostly a4 as paperformat . You can change the papersize in PDQ to a4 . (Puppy use letter as standard) After that has been done I found that not all the PS file could be printed because of the fact that some of them didnot converd to a4 but still stay in letter format . My printer does not know what to do with that and hangs . Knowing that PDQ use GS as convertor I looked at the documentation of GS (http://ghostscript.com/doc/current/Use.htm) and that says the changes with -dPaperSize=a4 is not working if the PS file contains /setpagesize . To work arround this there are 2 ways to do .
1) change the default in /usr/shared/ghostscript/8.51/lib/gs_init.ps .
2) add -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 to the gs commands in your driver .
If your printer cann't clip then the best way is to add also -dFIXEDMEDIA to it . (If you also print PDF files that put also -dPDFFitPage in it . )

How this is solved in CUPS I donn't know .

example :

Code: Select all

	if [ "$paper" = "letter" ]; then 
		DEVICESIZE="-dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dFIXEDMEDIA "
	else  #default a4
		DEVICESIZE="-dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -dFIXEDMEDIA "
	fi   
	gs \
   	-q -dBATCH -dSAFER -dNOPAUSE \
   	-sDEVICE=ijs \
   	-sIjsServer=/usr/bin/ijsgimpprint \
   	-sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel=pcl-5 \
   	-dIjsUseOutputFD \
   	-sOutputFile=$OUTPUT \
   	-sPaperSize=$paper \
	 $DEVICESIZE \

Post Reply