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.

Mon Dec 17, 2018 3:35 pm

Hello,

I'm using the 4.11.12.2035 of Spire .PDF, and the printing on a shared printer is really slow, it takes twice the time of printing simply with Sumatra PDF (a PDF reader).
I don't use special treatment, simply :
Code: Select all
            DateTime dt0 = DateTime.Now;
            PdfDocument pdfDocument = new PdfDocument();
            pdfDocument.LoadFromFile(fichier);
            pdfDocument.PrintSettings.PrinterName = imprimante;
            pdfDocument.Print();
            DateTime dt2 = DateTime.Now;
            TimeSpan ts = dt2 - dt0;



Just to test it.
I have tried to change UsePsDirectlyForConvert without result, disable the "advance printing settings", etc.

FlorianB
 
Posts: 7
Joined: Fri Jun 16, 2017 1:01 pm

Tue Dec 18, 2018 3:38 am

Dear Sandra,

Thanks for your inquiry.
Firstly, I suggest you try to use the latest Spire.PDF Pack(Hot Fix) Version:4.12.2 which has more improvements than old version. If the issue still exists, to help us investigate further, please share us with following information.
1. Your sample file
2. The name of your shared printer, e.g. HP LaserJet P1007
3. The OS and Region information, e.g. Win7 64bit, China/Chinese
4. The time of printing your file

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Tue Dec 18, 2018 8:19 am

Betsy.jiang wrote:Dear Sandra,

Thanks for your inquiry.
Firstly, I suggest you try to use the latest Spire.PDF Pack(Hot Fix) Version:4.12.2 which has more improvements than old version. If the issue still exists, to help us investigate further, please share us with following information.
1. Your sample file
2. The name of your shared printer, e.g. HP LaserJet P1007
3. The OS and Region information, e.g. Win7 64bit, China/Chinese
4. The time of printing your file

Sincerely,
Betsy
E-iceblue support team

Hi, thanks for your answer.

I have made more test and it's strange : I print from different servers and I have different results. I will try the new version to see if it fixes it.
What I know for the moment is that on server on Windows 2003 64 bits (French) is slow, One in 2008 32bits too (English), but I also have the same server that are quick. I will make more test tomorrow, but the difference of time is big : normally, it will takes 15 seconds to print, when it's slow, it takes 3 to 5 minutes.

FlorianB
 
Posts: 7
Joined: Fri Jun 16, 2017 1:01 pm

Tue Dec 18, 2018 9:31 am

Hi,

I am looking forward to your feedback after trying the latest version.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Wed Dec 19, 2018 9:29 am

Betsy.jiang wrote:Hi,

I am looking forward to your feedback after trying the latest version.

Sincerely,
Betsy
E-iceblue support team


Hello,
I have tested with the last DLL (4.12.7.2035) and it's still slow :

- Using your DLL it takes 6 minutes and 10 seconds
- Using another one (an old version of QuickPDF) : 27 seconds

I print from a server to a shared printer on another printer.
The server is Windows 2018 Standard edition with SP2 (english version) 32bits
The program printing is a service developped in .Net 3.5, so I use this version of your dll
I try to print on different printers, it's always slow. (For exemple, I print with the driver Konica MINOLTA 554eSeriesPCL)
I try to print with different PDF with the same result.


Do you have a version of the DLL that add logs during the Print() method to see what can happens ?

FlorianB
 
Posts: 7
Joined: Fri Jun 16, 2017 1:01 pm

Wed Dec 19, 2018 10:32 am

Hi,

Sorry to hear that.
And sorry that is no version which could add logs.
As for your issue, to help us do an accurate testing and locate the root of your issue, could you please provide a sample file that shows your issue?
Besides, here is another way to print the PDF using XpsPrintHelper. Maybe you could have a try to check if there is any improvement.
Code: Select all
MemoryStream ms = new MemoryStream();
PdfDocument doc = new PdfDocument();
doc.LoadFromFile("Sample.pdf");
doc.SaveToStream(ms, FileFormat.XPS);
ms.Position = 0;
XpsPrint.XpsPrintHelper.Print(ms, "Microsoft XPS Document Writer", "Print", true);


Thanks,
Betsy
E-iceblue support team
User avatar

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

Wed Dec 19, 2018 3:41 pm

Betsy.jiang wrote:Hi,

Sorry to hear that.
And sorry that is no version which could add logs.
As for your issue, to help us do an accurate testing and locate the root of your issue, could you please provide a sample file that shows your issue?
Besides, here is another way to print the PDF using XpsPrintHelper. Maybe you could have a try to check if there is any improvement.
Code: Select all
MemoryStream ms = new MemoryStream();
PdfDocument doc = new PdfDocument();
doc.LoadFromFile("Sample.pdf");
doc.SaveToStream(ms, FileFormat.XPS);
ms.Position = 0;
XpsPrint.XpsPrintHelper.Print(ms, "Microsoft XPS Document Writer", "Print", true);


Thanks,
Betsy
E-iceblue support team

On a Windows 2016 Server it's faster (but I have encoding problem), on the Windows 2008 server, It's slower with this new method.

FlorianB
 
Posts: 7
Joined: Fri Jun 16, 2017 1:01 pm

Thu Dec 20, 2018 6:58 am

Hi,

Thanks for your information.
From your information that the print result would not be the same in different computers with a same printer, and some are fast while some are slow. It seems that your issue is related to your servers. Please compare the fast server and slow server to find if there is any different configuration. If possible, we suggest you upgrade the device/configuration.

Meanwhile, please provide a sample file so that we could do the corresponding test on our side.

Thanks,
Betsy
E-iceblue support team
User avatar

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

Tue Dec 25, 2018 6:12 am

Hi,

Hope you are doing well.
How is your issue going now? Could you please give us some feedback at your convenience?

Sincerely,
Betsy
E-icbelue support team
User avatar

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

Return to Spire.PDF