im trying to print an existing PDF's of CAD drawings programmatically from a C# .NET 3.5 application. However the printout is missing some small details like small drilling holes (https://i.imgur.com/tdh46Jd.png). I'll include the PDF and a scan of the printout. I tried playing around with the quality settings but that didnt help at all. I tried both the free version and the commercial evaluation version as well as two completly different printers. Printing via Adobe Reader works fine.
The code im using:
- Code: Select all
string filename = args[1];
this.Visible = false;
string printerName = GetDefaultPrinter();
Spire.Pdf.PdfDocument doc = new Spire.Pdf.PdfDocument();
doc.LoadFromFile(filename);
doc.PrinterName = printerName;
doc.PrintToPage = 1;
doc.CompressionLevel = PdfCompressionLevel.None;
doc.PrintDocument.DefaultPageSettings.PrinterResolution.Kind = PrinterResolutionKind.High;
doc.PrintDocument.Print();
doc.Dispose();
Any advice?