Problem with pdf creation
Moderator: Thorsten
Problem with pdf creation
I am working in greek translation of phpmyfaq. I have made the mojority of the job, i have a lang file named greek.php (iso 8859-7) but i have a serious problem with pdf creation: the .pdf files are not correctly encoded and the greek are not displayed correctly.
Any idea?
Any idea?
http://onscreen.gr
One-stop-shop for digial services in Greece
http://sitekeepers.gr
Official registar for .gr domains
One-stop-shop for digial services in Greece
http://sitekeepers.gr
Official registar for .gr domains
Hi,
Greek should be working inside the exported PDFs due to the fact that the used module, FPDF supports Greek. Could you send or post a Greek PDF file?
bye
Thorsten
Greek should be working inside the exported PDFs due to the fact that the used module, FPDF supports Greek. Could you send or post a Greek PDF file?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
http://onscreen.gr
One-stop-shop for digial services in Greece
http://sitekeepers.gr
Official registar for .gr domains
One-stop-shop for digial services in Greece
http://sitekeepers.gr
Official registar for .gr domains
Hi,
I can see the problem. I'll look for a solution!
bye
Thorsten
I can see the problem. I'll look for a solution!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
thank you, in advance!
http://onscreen.gr
One-stop-shop for digial services in Greece
http://sitekeepers.gr
Official registar for .gr domains
One-stop-shop for digial services in Greece
http://sitekeepers.gr
Official registar for .gr domains
Hi,
okay, I've found a solution. You have to create a font file with Greek support, like described on this page: http://www.fpdf.org/en/tutorial/tuto7.htm
bye
Thorsten
okay, I've found a solution. You have to create a font file with Greek support, like described on this page: http://www.fpdf.org/en/tutorial/tuto7.htm
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 14
- Joined: Fri May 02, 2014 12:48 pm
Re: Problem with pdf creation
Hi Thorsten,
i reopen this post after 10 years because the problem with export pdf in greek language still exist. You told above to make a greek font file. How i will use it?
i reopen this post after 10 years because the problem with export pdf in greek language still exist. You told above to make a greek font file. How i will use it?
Re: Problem with pdf creation
Hi,
this answer from 2004 is obsolete as we now use TCPDF. Please paste some greek text here and I'll debug the issue.
bye
Thorsten
this answer from 2004 is obsolete as we now use TCPDF. Please paste some greek text here and I'll debug the issue.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 14
- Joined: Fri May 02, 2014 12:48 pm
Re: Problem with pdf creation
Σε ευχαριστώ πολύ για την άμεση απάντηση
(Translate: Thank you for the quick reply)
P.S. I attached you the result of pdf export in when i use greek text
(Translate: Thank you for the quick reply)
P.S. I attached you the result of pdf export in when i use greek text
Last edited by chocoholic on Fri Nov 20, 2015 7:26 pm, edited 1 time in total.
Re: Problem with pdf creation
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 14
- Joined: Fri May 02, 2014 12:48 pm
Re: Problem with pdf creation
Thanks Thorsten for the solution. As you can see things are much better now.Thorsten wrote:Hi,
that's the fix: https://github.com/thorsten/phpMyFAQ/co ... 968c6d48b5
bye
Thorsten
The only problem is that there is always a space after letters with accents. (more information about what accent is you can find here http://en.wikipedia.org/wiki/Greek_diacritics)
If you can find a solution for this malfunction i will be grateful.
Thanks again.
Last edited by chocoholic on Fri Nov 20, 2015 7:26 pm, edited 1 time in total.
Re: Problem with pdf creation
Hi,
well, it's hard, I'm just using a diferent font for Greek. I can test other fonts as well, but they have to support Greek as well and sadly there aren't many free fonts for Greek.
bye
Thorsten
well, it's hard, I'm just using a diferent font for Greek. I can test other fonts as well, but they have to support Greek as well and sadly there aren't many free fonts for Greek.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist