omaralalwi / Gpdf

Open Source HTML to PDF converter for PHP & Laravel Applications, Support store to s3 & supports Arabic content out-of-the-box and other languages.
MIT License
65 stars 3 forks source link

Arabic Characters Not Rendering Properly in Generated PDFs #11

Open rizwan952 opened 4 days ago

rizwan952 commented 4 days ago

Some Arabic text is not properly generated. But some text is rendered properly.

In HTML POS TERMINAL جھاز نقطة البیع

Actual generated text image

Current Versions "php": "^8.2", "barryvdh/laravel-dompdf": "^3.0", "laravel/framework": "^11.9", "omaralalwi/gpdf": "^1.0.4",

omaralalwi commented 4 days ago

can you remove barryvdh/laravel-dompdf because it will case conflict with GPDF , then clear config and cache then give me update please .

omaralalwi commented 4 days ago

also update your version of GPDF to v1.0.6 , we resolved some issues in new versions

rizwan952 commented 3 days ago

Yes, I have removed the package and cleared the cache and config, but some Arabic strings are still not proper. Current packages versions "require": { "php": "^8.2", "darkaonline/l5-swagger": "^8.6", "friendsofphp/consul-php-sdk": "^5.2", "laravel/framework": "^11.9", "omaralalwi/gpdf": "^1.0.6", "simplesoftwareio/simple-qrcode": "^4.2", "ext-gd": "*" }, image