I am using below code to convert a pdf file to postscript file -
PdfDocument document = new PdfDocument();
document.LoadFromFile("test.pdf");
document.PrintSettings.PrinterName = "DuplexPrinter";
document.SaveToFile("test.ps", FileFormat.POSTSCRIPT);
Question 1 - Will above commands help me to create a postscript file according to the printer settings that i have made for the "DuplexPrinter"?
'DuplexPrinter' was created using Add Printer and i am using the printer preferences to set the printer style, color, landscape, Three punch settings etc..
Question 2 - After the postscript is created, i want to search the postscript file for Duplex ON/OFF. How can i do that?