I am trying to create a pdf receipt in marathi but certain words are not displaying correctly such as श्री is displaying as 2 seperate characters which is incorrect. I have checked all other answers available but nothing seems to help such as using different fonts.
Below is my code
// Include the main TCPDF library (search for installation path).
require_once('tcpdf.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
//remove default header and footer
$pdf -> setPrintHeader(false);
$pdf -> setPrintFooter(false);
//add page
$pdf->AddPage();
$hypen = str_pad($hypen, 156, "-", STR_PAD_BOTH);
//add content here
$pdf->SetFont('freesans', '', 16);
$pdf->cell(30, 5, "॥ श्री मल्लिकार्जुन प्रसन्न ॥ ", 0, 1);
$pdf->cell(10, 5, " ", 0, 0);
$pdf->cell(130, 5, "नंबर: ".$_POST['id'], 0, 0);
$pdf->cell(40, 5, "दिनांक: ".$today_date, 0, 1);
$pdf->MultiCell(180, 5, "श्री__________________________________________________", 0, 'L');
$pdf->MultiCell(180, 5, "मु़._________________________यांनी___________________बद्दल दिले.", 0, 'L');
$pdf-> ln(4);
$pdf->Cell(180, 4, $hypen, 0, 1, 'L');
$pdf->cell(10, 5, "क्र ", 0, 0);
$pdf->cell(50, 5, "देवक्रत्य ", 0, 0,'C');
$pdf->cell(120, 5, "रु. ", 0, 1,'R');
$pdf->Cell(180, 4, $hypen, 0, 1, 'L');