Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Fri Jul 07, 2017 7:38 am

Hi,

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();

Julien
 
Posts: 4
Joined: Thu Jul 06, 2017 4:01 pm

Fri Jul 07, 2017 7:43 am

Dear Julien,

Thanks for your inquiry.
Sorry that I didn't find the sample files here, could you please upload it again ? Or send it to us(support@e-iceblue.com) via email.

Many thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Jul 07, 2017 7:45 am

Here's the link :
stormbox.free.fr/sample.zip

Thank you for your response !

Julien
 
Posts: 4
Joined: Thu Jul 06, 2017 4:01 pm

Fri Jul 07, 2017 8:50 am

Dear Julien,

Thanks for the files.
I have also tested the file with the Spire.PDF Pack(Hot Fix) Version:3.9.189, yet the result on my side is better than yours, and there are no issues you mentioned, you could check it on attachment. To help us reproduce your issue on our side, please provide following information.
1) OS and Region/Language Information, e.g. Win7 64bit, China/Chinese.
2) The printer name

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Jul 07, 2017 9:08 am

Hey Betsy,

Thank you for the quick troubleshoot.

I'm running win10 x64 with French Region and currently trying to print with the 'Microsoft to PDF' printer. THis happens also on our Dell Printer.

Also, when I try to get the list of fonts used by the pdf :
Code: Select all
PdfUsedFont[] fonts = doc.UsedFonts;

But I get a Null Exception..

Julien
 
Posts: 4
Joined: Thu Jul 06, 2017 4:01 pm

Fri Jul 07, 2017 9:36 am

Ok my bad,
I was using the free version (v3.2.0) that I found on NuGet...

This version was published the 2015-01-14....

Any chance to update the free version to a more recent version ?

I'm a student, this was for my school project, I can not spend $599 for this :'(

Julien
 
Posts: 4
Joined: Thu Jul 06, 2017 4:01 pm

Fri Jul 07, 2017 10:14 am

Dear Julien,

Thanks for your feedback.
So sorry that we don't have any plan to update free version at present.
About the questions about purchase, please contact our sales team(sales@e-iceblue.com).

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF