We use the Aspose.PDF library with great satisfaction. Now we have a problem when printing a few PDF converted CAD drawings. When printing, the library return the print status “Das Objekt wird bereits an anderer Stelle verwendet.” (translated from german: “The object is already used elsewhere”) and does not print.
Stacktrace of PrintStatus:
for System.Drawing.Graphics.Flush(FlushIntention intention)
for System.Drawing.Graphics.Flush()
for Aspose.Pdf.Facades.PdfViewer.(Int32 , Graphics , Single , Single , Int32 , Int32 , Boolean , Margins , Single , Int32 , VerticalAlignment , HorizontalAlignment )
at Aspose.Pdf.Facades.PdfViewer.(Int32 , PrintPageEventArgs )
at Aspose.Pdf.Facades.PdfViewer.(PrintPageEventArgs )
with Aspose.Pdf.Facades.PdfViewer.(Object , PrintPageEventArgs )
for System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs e)
for System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)
for System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
for System.Drawing.Printing.PrintController.Print(PrintDocument document)
for System.Drawing.Printing.PrintDocument.Print()
at Aspose.Pdf.Facades.PdfViewer.PrintDocumentWithSettings(PageSettings pageSettings, PrinterSettings printerSettings)
The file is not large approx. 84kB in size and is displayed by all viewers without errors.
The behaviour could be reproduced with version 9.8 and 19.11
Is this error known? Could it be a property of the PDF file that causes the error?
Kind regards