You can use the mPDF library for this purpose. To display Marathi text, simply download a Marathi font from Google Fonts and integrate it into mPDF. You can then use the font directly, as demonstrated in this official mPDF font usage guide.