pdfPrintSetPSCustomPageSetup

Set a string to be included in the PostScript PageSetup section.
void pdfPrintSetPSCustomPageSetup(PDFHandle pdf, char *pageSetup)
This function provides a string of PostScript code to be inserted in the PostScript page setup section (%%BeginPageSetup .. %%EndPageSetup). This is useful for inserting device-specific calls to setpagedevice, etc.

This function can be called from the print status callback or in between calls to pdfPrintToDC2 in order to provide different setup code for each page.

This setting is only relevant for PostScript printing. It will be ignored when printing to a non-PostScript printer or if pdfPrintForceGDI is in effect.

C:
pdfPrintSetPSCustomPageSetup(pdf, "<< .... >> setpagedevice");
pdfPrintSetPSCustomDocSetup