pdfPrintSetPrintToFile

Set the name for the print output file.
void pdfPrintSetPrintToFile(PDFHandle pdf, wchar_t *file)
This function forces print-to-file and sets the name of the output file (as a Unicode string).

pdfPrintResetParams resets this to its default value, which is to print to the printer's default port.

C:
pdfPrintSetPrintToFile(pdf, L"c:\\output.pcl");
pdfPrintResetParams