Bug 690532

Summary: a5 paper format not available for PCL devices
Product: Ghostscript Reporter: Peter Berndts <peter.berndts>
Component: Printer DriverAssignee: Marcos H. Woehrmann <marcos.woehrmann>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P2    
Version: 8.64   
Hardware: PC   
OS: Windows XP   
Customer: 661 Word Size: ---

Description Peter Berndts 2009-06-11 10:48:54 UTC
Though there are PCL printing systems with paper trays that can handle A5 
paper size, the PCL driver can not handle size A5, which is a "known paper 
size". 
The following command line, with an A5 size PDF as input, creates a C5 size 
PCL output:
gswin32 -dNOPAUSE -sDEVICE=ljet4d  -sPAPERSIZE=a5 -dNORANGEPAGESIZE -
sOutputFile=test.pcl -c "<< /InputAttributes << 0 << /PageSize [ 420 595 ] >> 
>> >> setpagedevice " -f test.pdf

The following line needs to be added in gdevpcl.c
CHECK_PAPER_SIZE( 5.83, 8.27,  PAPER_SIZE_A5);

The following line needs to be added in gdevpcl.h
#define PAPER_SIZE_A5 25	/* 14.8 cm x 21.0 cm */
Comment 1 Ray Johnston 2009-06-18 10:46:28 UTC
Assign to Marcos to evaluate the change and apply if it looks OK.
Comment 2 Marcos H. Woehrmann 2009-06-18 15:07:04 UTC
Fixed in r9802.  Thanks for the patch.
Comment 3 Marcos H. Woehrmann 2011-09-18 21:47:21 UTC
Changing customer bugs that have been resolved more than a year ago to closed.