I use your library ton print some PDF file on our desktop client.
Everything works fine but we got some trouble with a couple of PDF.
We use the Spire.PDF library for C# v3.9.189
Those files are printed with text overlaps and incorrect characters.
Here is some 2 samples file, the source-PDF that i want to print and the result printed with your utility:
stormbox.free.fr/sample.zip
Let me know if you want more info !
Also, here's the code used by our software :
- Code: Select all
string _printerName = string.Empty;
var config = ConfigurationManager.GetSection("printingService") as NameValueCollection;
if (config.AllKeys.Contains("UseInstalledPrinterFirst"))
{
_useInstalledPrinterFirst = bool.Parse(config["UseInstalledPrinterFirst"]);
}
if (config.AllKeys.Contains("PrinterName"))
{
_printerName = config["PrinterName"];
}
var doc = new PdfDocument();
doc.LoadFromFile(url.OriginalString);
string printerName = _printerName;
var setting = new PrinterSettings {PrinterName = _printerName};
doc.PrinterName = printerName;
doc.PrintDocument.PrinterSettings = setting;
doc.PrintDocument.Print();