In our application we are using SpirePDF 3.6.167 to print pdf files. Printing works fine when we run a single print job. But when we try to print multiple pdf files for multiple printers the CPU goes up to 100% in the printing process. In our application we are using two threads for a printing job. One thread downloads a file and gives the control to another thread to do the printing.
Printing Function
========================================
Spire.Pdf.PdfDocument pdfDocument = new Spire.Pdf.PdfDocument();
pdfDocument.LoadFromFile(fileName);
pdfDocument.PageScaling = Spire.Pdf.PdfPrintPageScaling.ActualSize;
pdfDocument.PrinterName = printerName;
var printDocument = pdfDocument.PrintDocument;
printDocument.DocumentName = documentName;
printDocument.PrintPage += printDocument_PrintPage;
printDocument.PrinterSettings.Copies = (short)printEvent.Copies;
printDocument.Print();
=========================================
Allocating new thread for printing
===========================================
IWorkItemResult<PrintEventResult> workItem = printSpooler.QueueWorkItem(
new Amib.Threading.Func<PrintEvent, PrintEventResult>(SendFileToPrinter), printEvent);
printSpooler.Start();
printSpooler.WaitForIdle();
============================================
Is this a common issue while printing multiple pdf files from SpirePDF? If not what might be the cause for such high CPU usage??