Set the PostScript paper type.
void pdfSetPSPaperType(char *size)
This function sets the paper size for PostScript output. The available options are "letter" (the default), "legal", "A4", "A3", and "match".

PDF pages which are larger than the specified paper type will be scaled down to fit.

The last option, "match", is a special setting which instructs XpdfPS to set the paper size to match whatever is specified in the PDF file.

The pdfSetPSPaperType function is a shortcut to calling pdfSetPSPaperSize with the corresponding width and height. pdfSetPSPaperSize can be used to set an arbitrary paper size.

This setting is global, i.e., it affects XpdfPS calls on all PDF handles.