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

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 年 前
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
12 年 前
You're absolutely. I'll create a work item for this issue
12 年 前
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?
12 年 前
I'm working on it right now. I'll post a solution a bit later
12 年 前
And here we go. Please see changeset 88fd1699a5ae
12 年 前
Andrei,

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

Thanks
12 年 前
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).
12 年 前
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"
12 年 前
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.
12 年 前
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?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.