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.

Tue Sep 30, 2014 1:24 pm

Hi we are experiencing issues with printing Chinese characters using PdfDocument.LoadFromFile

For testing purposes we save the pdf doc to the desktop

The saved pdf file displays all the characters correctly but when we come to call PrintDoccument.Print() some of the Chinese characters are missing. It seems strange that only certain characters are missing and not others.

Attached are screenshots of the results.

Code snippet below:
Code: Select all
await stream.CopyToAsync(memStream).ConfigureAwait(false);
                                doc.LoadFromStream(memStream);
                                doc.PrinterName = safePrinterName;
                                doc.PageSettings.Size = PdfPageSize.A4;
                                doc.PrintDocument.DefaultPageSettings.Landscape = true;
                                doc.PrintDocument.DefaultPageSettings.Margins = new Margins();
                                doc.PageScaling = PdfPrintPageScaling.FitSize;
                                doc.SaveToFile(@"C:\Users\ben.saunders\Desktop\msg.pdf");
                                doc.PrintDocument.Print();


Data that should be displayed:
6937601700203 乐购三色圆椒
2363563000000 乐购多宝鱼
6947098800072 乐购大葱
2313949000000 乐购条装国产柠檬
2313905000000 乐购椰子
2313911000000 乐购海南椰皇
6950726900600 乐购精选袋装进口橙
2363864000000 乐购超值猕猴桃
6937601700197 乐购青圆椒
2313335000000 佳沛奇异果

bsaunders2
 
Posts: 3
Joined: Tue Sep 30, 2014 12:53 pm

Wed Oct 01, 2014 6:36 am

Dear bsaunders2,

Thanks for your inquiry.

Please upload your document file and code snippet to help us resolve it.
You can also send it to burning.liu@e-iceblue.com.

Best regards,
Burning
E-iceblue Support Team
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Wed Oct 01, 2014 7:40 am

Hi, thanks for the quick response.
I just sent the document file and code snippet

thanks

bsaunders2
 
Posts: 3
Joined: Tue Sep 30, 2014 12:53 pm

Thu Oct 02, 2014 3:38 pm

Hello,

I have noticed the issue you mentioned, which has been posted to our Dev team, once there are any progress, we will let you know.

Sincerely
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Fri Oct 03, 2014 4:21 am

amy.zhao , can you help me with my profile login?

catkiv@gmail.com
 
Posts: 2
Joined: Thu Oct 02, 2014 7:28 am

Fri Oct 03, 2014 6:13 am

Hello,

Sorry for the delay response.
Lrina has been used by other user hence we changed it for lrina2014.


Best wishes,
Amy
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Wed Oct 08, 2014 10:12 am

amy.zhao wrote:Hello,

Sorry for the delay response.
Lrina has been used by other user hence we changed it for lrina2014.


Best wishes,
Amy


ok, but here forum/member68911.html nothing changed

Irina2014
 
Posts: 1
Joined: Fri Oct 03, 2014 4:22 am

Thu Oct 09, 2014 3:53 am

Hello,

Sorry, we have changed it, please check it.

Best wishes,
Amy
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Wed Nov 12, 2014 8:41 am

Dear bsaunders2,

We just released a new version of Spire.PDF (Spire.PDF Pack Version:3.2.0) to fix the issue "Chinese characters not displayed", you can download it via link below:
http://www.e-iceblue.com/downloads/spire.pdf_3.2.0.zip

Best Regards,
Burning
E-iceblue Support Team
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Thu Dec 18, 2014 3:02 pm

we have tested the updated library and it is now working.

thanks guys :)

bsaunders2
 
Posts: 3
Joined: Tue Sep 30, 2014 12:53 pm

Fri Dec 19, 2014 1:15 am

Dear bsaunders2,

Please feel free to contact us if you have any problems.
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Return to Spire.PDF