add PdfScribe as a local printer that uses the print spooler by default, rather than direct printing

This commit is contained in:
S T Chan 2019-05-31 02:26:31 -04:00
parent 5b913b6500
commit 415ddbbf0f

View File

@ -881,7 +881,7 @@ namespace PdfScribeCore
pdfScribePrinter.pDriverName = DRIVERNAME; pdfScribePrinter.pDriverName = DRIVERNAME;
pdfScribePrinter.pPrintProcessor = PRINTPROCESOR; pdfScribePrinter.pPrintProcessor = PRINTPROCESOR;
pdfScribePrinter.pDatatype = "RAW"; pdfScribePrinter.pDatatype = "RAW";
pdfScribePrinter.Attributes = 0x00000002; pdfScribePrinter.Attributes = 0x00000040;
int pdfScribePrinterHandle = NativeMethods.AddPrinter(null, 2, ref pdfScribePrinter); int pdfScribePrinterHandle = NativeMethods.AddPrinter(null, 2, ref pdfScribePrinter);
if (pdfScribePrinterHandle != 0) if (pdfScribePrinterHandle != 0)