Problem with pdf creation

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
ippiko
Posts: 3
Joined: Mon Jun 14, 2004 10:23 am

Problem with pdf creation

Post by ippiko »

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?
http://onscreen.gr
One-stop-shop for digial services in Greece
http://sitekeepers.gr
Official registar for .gr domains
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

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
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ippiko
Posts: 3
Joined: Mon Jun 14, 2004 10:23 am

Post by ippiko »

Hi,

have a look, please...

http://www.onscreen.gr/faq/php/4.pdf

Thank you in advance!
http://onscreen.gr
One-stop-shop for digial services in Greece
http://sitekeepers.gr
Official registar for .gr domains
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I can see the problem. I'll look for a solution!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ippiko
Posts: 3
Joined: Mon Jun 14, 2004 10:23 am

Post by ippiko »

thank you, in advance!
http://onscreen.gr
One-stop-shop for digial services in Greece
http://sitekeepers.gr
Official registar for .gr domains
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

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
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
chocoholic
Posts: 14
Joined: Fri May 02, 2014 12:48 pm

Re: Problem with pdf creation

Post by chocoholic »

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?
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Problem with pdf creation

Post by Thorsten »

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
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
chocoholic
Posts: 14
Joined: Fri May 02, 2014 12:48 pm

Re: Problem with pdf creation

Post by chocoholic »

Σε ευχαριστώ πολύ για την άμεση απάντηση

(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.
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Problem with pdf creation

Post by Thorsten »

phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
chocoholic
Posts: 14
Joined: Fri May 02, 2014 12:48 pm

Re: Problem with pdf creation

Post by chocoholic »

Thorsten wrote:Hi,

that's the fix: https://github.com/thorsten/phpMyFAQ/co ... 968c6d48b5

bye
Thorsten
Thanks Thorsten for the solution. As you can see things are much better now.



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.
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Problem with pdf creation

Post by Thorsten »

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
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply