Jeckky / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

Hindi text displaying as ? (question mark) #503

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I tried to produce PDF from HTML which have some Hindi and English text, PDF 
generated successfully but hindi text displaying as ? (question mark) 

What is the expected output? What do you see instead?
I want hindi text will display like it is displaying in HTML.

What version of dompdf are you using? What version of PHP? On what
operating system?
DOMPDF 0.6.0 beta 3

Please provide the HTML source code you want to convert, or any additional
information.

Original issue reported on code.google.com by dmiepub....@gmail.com on 11 Jun 2012 at 2:22

Attachments:

GoogleCodeExporter commented 9 years ago
Have you read the Unicode How-to on the wiki? The document was written with 
v0.6.0 beta 2 in mind but it is still relevant to beta 3.

Original comment by eclecticgeek on 11 Jun 2012 at 2:31

GoogleCodeExporter commented 9 years ago
Yes, i have read and already enable 'UNICODE' related parameters but still not 
working with hindi text

Original comment by dmiepub....@gmail.com on 11 Jun 2012 at 2:36

GoogleCodeExporter commented 9 years ago
If you have any live example please share it so that i can implement it.

Original comment by dmiepub....@gmail.com on 11 Jun 2012 at 2:37

GoogleCodeExporter commented 9 years ago
You have to do more than enable Unicode. You also have to supply a font that 
supports your characters and style the relevant text with that font. I don't 
see anything in the attached documents that indicate this has been done. You 
might want to review the Unicode How-To one more time.
http://code.google.com/p/dompdf/wiki/CPDFUnicode

I used your sample HTML in the following render:
http://eclecticgeek.com/dompdf/debug.php?identifier=21f7e3a0261071092887162ae752
5213

I used the Siddhanta font to support the Hindi text. You can find that font 
here:
http://svayambhava.org/index.php/en/fonts

Original comment by eclecticgeek on 11 Jun 2012 at 6:12

GoogleCodeExporter commented 9 years ago
Thank you for your suggestion, I have created a pdf with hindi text by dompdf 
but the text are not rendering properly while it is displaying properly if i 
use the same html to print the pdf file by openoffice or frontpage.

I am attaching both pdf's please check and suggest why text are not rendering 
properly. 

Original comment by dmiepub....@gmail.com on 12 Jun 2012 at 8:23

Attachments:

GoogleCodeExporter commented 9 years ago
When I open the file it displays correctly. What viewer are you using?

Original comment by eclecticgeek on 12 Jun 2012 at 2:49

GoogleCodeExporter commented 9 years ago
We are viewing PDF_DMONPDF.pdf on adobe reader and also on browser, everywhere 
left mataras are coming on right letter, while the other pdf created by 
openoffice render correctly. 

Original comment by dmiepub....@gmail.com on 13 Jun 2012 at 5:03

GoogleCodeExporter commented 9 years ago
Today, i study your wiki and know that ttf2pt1 is needed to intall new font 
with DOMPDF, i have download setup file and installed on ,y machine, now i need 
to change the path in dompdf_config.inc.php.

Which line we need to change this path, please help me out in this.

Original comment by dmiepub....@gmail.com on 13 Jun 2012 at 9:03

GoogleCodeExporter commented 9 years ago
I was wondering if maybe my system was performing font substitution of some 
sort, but I'm also using Adobe Reader so we should see the same results. 
PDF_DOMPDF.pdf does appear to be fairly small to have an embedded font, but 
that may be due to font subsetting (if enabled in your dompdf configuration). 
I'd have to decompress and break apart the document to see what's actually 
going on.

FYI, in 0.6.0 beta 3 you no longer need ttf2pt1. A newer, PHP-based library has 
been included. So all you need to do is run load_font.php to set up your font 
with dompdf.

Original comment by eclecticgeek on 13 Jun 2012 at 3:12

GoogleCodeExporter commented 9 years ago
Could you please attach screenshot, how PDF_DOMPDF.pdf file displaying at your 
end. I have tried but all the left matras are displying with right letter while 
it should display with left letter as it is displaying in open office pdf.

Original comment by dmiepub....@gmail.com on 13 Jun 2012 at 3:18

GoogleCodeExporter commented 9 years ago
Sorry. I think I was misunderstanding the problem you are now having. I thought 
you were still having problems with the text only displaying as "?". However, 
that doesn't sound like the current problem. So to clarify: are you able to 
render your Hindi text, except that some of the characters are incorrect? If so 
it might be an character encoding issue. Can you post a sample document?

Original comment by eclecticgeek on 13 Jun 2012 at 10:03

GoogleCodeExporter commented 9 years ago

 भूलना भूल जाओगे
Forget Forgetting
यह विश्व की प्रथम एवं एक मात्र 
हिन्दी निमोनिक्स की पुस्तक 
है। लेखक एन एल श्रमण ने  अपने 
पचास वर्षों के  अनुभवों से 
इसकी रचना की है। इस पुस्तक को 
सम्पादित करने में दस वर्षों 
से अधिक समय लगा है। इस पुस्तक  
की विषय वस्तु  चार वर्ष या अधिक 
 आयु के व्यक्तियों द्वारा याद 
की जा सकती है। यह पुस्तक न केवल 
इक्यावन  से अधिक विषयों को याद 
करने का मार्गदर्शन करती है 
अपितु  उससे सम्बंधित  
तकनीकियों की जानकारी भी देती 
है। यह पुस्तक स्मरण शक्ति से 
सम्बंधित तमाम मिथकों को 
तोड़ती है। इस पुस्तक की 
दृष्टि में स्मरणशक्ति कोई 
दैवीय वरदान नहीं अपितु इसे 
थोड़े से प्रयास से कई गुणा 
बढ़ाया जा सकता है। इस पुस्तक 
में ऐसी जानकारियाँ दी गयी है 
जो इस पुस्तक के अतिरिक्त  
अन्यत्र शायद ही कहीं उपलब्ध 
हो सकें। एक बार जब आप इस पुस्तक 
को पढ़ लेंगे तो आप को इस बात का 
पछ्तावा अवश्य हो सकता है कि यह 
पुस्तक आपको काफी पहले क्यों 
पढ़ने को नहीं मिली। इस पुस्तक 
को पढ़ने से आप अथाह 
आत्मविश्वास प्राप्त करेंगे, 
परीक्षा का नाम सुनकर आपका 
चेहरा खिल उठेगा, आपकी 
कमज़ोरियाँ खूबियों में बदल 
जायेंगी, ख्याति बढ़ेगी व आपकी 
जिन्दगी एकदम बदल जायेगी, आपकी 
अवस्था चाहे कुछ भी हो। यह 
पुस्तक न केवल छात्रों के लिये 
अपितु हर आयु वर्ग के लिये 
अत्यंत

Original comment by memorygu...@gmail.com on 22 Sep 2012 at 4:00

GoogleCodeExporter commented 9 years ago
FYI, there *appears* to an issue around font sub-setting (though we need more 
time to investigate the issue). If you are experiencing issues with the display 
of characters in your PDF first step would be to make sure 
DOMPDF_ENABLE_FONTSUBSETTING is set to false.

Original comment by eclecticgeek on 24 Sep 2012 at 2:31

GoogleCodeExporter commented 9 years ago
I am having the same matra problem...the matras are displayed on the left when 
they should be displayed on the right

Original comment by arihant2...@gmail.com on 9 Oct 2012 at 7:13

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:16