itextsharp library instead of PdfSharp and rtl support

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
i think for nop that support multilaguage is important to support
1.rtl and unicode language full for example in pdf created files i suppose to use itextsharp
2.create one property with the name IsRTL in language table to inject  RTL css to pages.
3.support hijri or persian calender i suppose to use jquery calender ui instead of telerik calender
12 years ago
+1 request.
itexhSharp to support rtl languages and jquery ui calendar to support persian date.

also some changes that might help people with persian language:

in NopDatePicker the code that fills the dropdownlist should change like this:

for (int i = this.LastYear, j = this.LastYearByCulture; i >= this.FirstYear; i--, j--)
            {
                ListItem tempItem = new ListItem();
                tempItem.Text = j.ToString();
                tempItem.Value = i.ToString();
                lstYears.Items.Add(tempItem);
            }

and a new property is needed:

public int LastYearByCulture

which by "get" should return:

Thread.CurrentThread.CurrentCulture.Calendar.GetYear(DateTime.Now);

which also needs assigning the PersianCalendar to persian CultureInfo in SetCulture method, the calendar is not the default calendar unfortunately.
12 years ago
i know how can i impelement it but i request to add this features by default.
do you have iranian bank payments?
10 years ago
fix for it
change pdfservice page and add this line for each new table


const string regex_match_arabic_hebrew = @"[\u0600-\u06FF,\u0590-\u05FF]+";
    if (Regex.IsMatch("מה קורה", regex_match_arabic_hebrew, RegexOptions.IgnoreCase))
    {
        table.RunDirection = PdfWriter.RUN_DIRECTION_RTL;
    }
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.