Non-English customer data in PDF forms of invoice & packaging slip

10 years ago
Hi

I have nopCommerce v.2.2 without any modification hosted on Arvixe.
When I generate PDF invoice or packaging slip I can't see any non-English characters for personal data like customer name, address and so on. Also if interface language set to Russian then I can't see fields label in Russian too. When interface language set to English then labels displayed but values.

Sorry if it is not bug but I can't find a solution of problem in other place.
This thouble begun after upgrade nC from 1.9->2.0->2.1->2.2 sequentially.

Thank you in advance
10 years ago
You're absolutely. I'll create a work item for this issue
10 years ago
a.m. wrote:
You're absolutely. I'll create a work item for this issue


Andrey, thank you for yr reply.

Can you display solution for fixing bug "manually" before next release?
10 years ago
I'm working on it right now. I'll post a solution a bit later
10 years ago
And here we go. Please see changeset 88fd1699a5ae
10 years ago
Andrei,

Your solution will fix other non English languages such as Chinese, Korean, Japanese, etc. as well?

Thanks
10 years ago
The used font doesn't support all characters. If your font is not supported, then you can use any other Unicode font. Just copy it into \App_Data\Pdf directory.

P.S. I know what ArialUni.ttf font (provided with MS Office) support almost languages, but we can't distribute it with nopCommerce because it's not allowed (not open source).
10 years ago
a.m. wrote:
And here we go. Please see changeset 88fd1699a5ae


Hi Andrei,

Thank you very much - bug corrected successfully in 2.3 release.
But need one minor change - invoice date in PDF form ignore current culture (language) settings of interface.
So I see date in format "Monday, November 7, 2011 instead 7.11.2011 when interface language set "Russian"
10 years ago
Just tested it in Russian culture (in public store). The date is formatted as "24 ноября 2011 г.". So everything works fine. I presume that you did it from admin area. In this case the should can be because culture of admin area is always set to 'en-Us' because of some Telerik issues.
10 years ago
a.m. wrote:
The used font doesn't support all characters. If your font is not supported, then you can use any other Unicode font. Just copy it into \App_Data\Pdf directory.

P.S. I know what ArialUni.ttf font (provided with MS Office) support almost languages, but we can't distribute it with nopCommerce because it's not allowed (not open source).


Hi, I copied ARIALUNI.TTF to the folder. It didn't work.

And I changed pdf file to ARIALUNI.TTF at line 4455 in installationService.cs file.
EngineContext.Current.Resolve<IConfigurationProvider<PdfSettings>>()
                .SaveSettings(new PdfSettings()
                {
                    Enabled = true,
                    LetterPageSizeEnabled = false,
                    RenderOrderNotes = true,
                    FontFileName = "ARIALUNI.TTF", /////////////////////FontFileName = "FreeSerif.ttf",
                });

Still doesn't work. please let me if I mssed anything?