Topic: RepGen 2.1 w/ Arabic (or utf-8) char Support

RepGen 2.1 w/ Arabic (or utf-8) char Support:

in the repgen.inc (file exist in the Folder ../Modules/Repgen)

Go to around Line # 1263 , you will find :

       $rep->pdf = new Cpdf('A4');

Delete it & Replace it with the Following :

////////////////////////////////////////////////////////////////////////////      kalido
$l = array(
'a_meta_charset'   => strtoupper($_SESSION['language']->encoding),
'a_meta_dir'          => ($_SESSION['language']->dir === 'rtl' ? 'rtl' : 'ltr'),
'a_meta_language' => $code = $_SESSION['language']->code,
'w_page'               => 'page'
);

$rep->pdf = new Cpdf('A4',$l);
///////////////////////////////////////////////////////////////////////////    kalido

And " VOILA ", You will have RepGen Generate Reports Supporting the
Arabic Language as per the Standard Method That Generate them FrontAccount.

NB:
Surely, you need to install the Arabic Language Fonts from :

https://frontaccounting.com/wbt/pages/download/download-fonts.php

and install them as described per FrontAccount Authors.

Now :

1. I hope for the future that somebody made a Simple/Easy Payroll System and
    link it to FA as an Integrated Module.

2. Reports From RepGen Need to be Outputed as Excel Files Like Reports   
   Generated by FA


Regards,

Kalido (Khaled)

Re: RepGen 2.1 w/ Arabic (or utf-8) char Support

Thanks Khaled,
I am glad you resolved this for the community.

I will fix this for the download version 2.1 on the Website.

/Joe