I try to print a PDF with Spire.Pdf and C#.
I have a problem with barcode.
The document is OK but lines of barcode are "crooked".
You can see my PDF and printed page on attachments.
I have the same problem with all my printers. But no problem with printer "Microsoft print to PDF".
My code :
- Code: Select all
PdfDocument pdfdocument = new PdfDocument();
pdfdocument.LoadFromFile(myPDF);
pdfdocument.PrinterName = myPrinter;
pdfdocument.PrintDocument.PrinterSettings.Copies = 1;
pdfdocument.PrintDocument.Print();
pdfdocument.Dispose();
Thank you for help.