8/18/2023 0 Comments Sinhala unicode to font converterNOTE: Please see upper two images, that can be easy to understand the issue When I generate the PDF, it shows as follows: On a normal page(HTML view), it shows as follows: Could somebody please guide me on how to load the font correctly. However, when I am trying to load the font in the PDF, the font does not display correctly. When I load my html page normally, the font works perfectly. $pdf = PDF::loadview('templates.letterSinhala', ) Laravel controller: $path = Storage::disk('local')->path("letters(".$letterCount."-letters).pdf") I have used css in my blade file as follows: ) format("truetype") To do this, I downloaded my external fonts and copied the font folder and then it load to storage/fonts directory by load_font.php. I need to load custom unicode fonts(sinhala) in to the pdf. I am using barryvdh/laravel-dompdf to load PDF's in my laravel application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |