dompdf / dompdf

HTML to PDF converter for PHP
https://dompdf.github.io/
GNU Lesser General Public License v2.1
10.5k stars 1.79k forks source link

dompdf for indian language #1361

Open bideshpuja opened 7 years ago

bideshpuja commented 7 years ago

I am using cake php 3 ,for pdf generate library use dompdf 0.7.0 its a big issue for me to print Indian regional language .

bsweeney commented 7 years ago

What, exactly, is the issue you are encountering? We can only help you if you detail what you have tried and the issue you are experiencing.

Also, have you read through the Unicode How-To?

bideshpuja commented 7 years ago

Actually I want to generate a certificate in Hindi language but it is not printing properly . I have also tried using DejaVu font, still not working. Please provide me a demo code where I can generate a pdf in Hindi.

bsweeney commented 7 years ago

It's entirely likely DejaVu does not support the characters you want. You'll need to load a font into dompdf that does support your characters (you can use the @font-face declaration as indicated in the how-to), then you should be able to render your document.

There might be some issues, however, around how text is represented in the document. We're still seeing some issues with some character sets.

ridislam commented 7 years ago

already used @font-face in the view page header section but still not working, Can you provide a better documentation and example site for this huge used package..? lot of users using this package but their is no updated site for this package. where we can find proper solution for our need..

bsweeney commented 7 years ago

@ridislam rather than hi-jack someone else's issue (twice) with a general complaint you should post a question to the support forum, especially when you're not yet sure there's a bug to be addressed. "It's not working" is not a helpful way to ask for support. Help us help you by providing as much detail as you can: a sample of your HTML/CSS, the font used, what you expected, and the resulting PDF.