can the lastest version support utf-8 well?i need to write servel languages that may include chinese,japanese,korean,arab into one pdf.

398 views
Skip to first unread message

dou...@gmail.com

unread,
Jun 27, 2013, 3:53:37 AM6/27/13
to lib...@googlegroups.com
is there any way to do it?
i search topic here and find a topic named " UTF-8 support" .
in this topic,@clayman said :
-----------------------------------------------------------------------------------------------------------------------------------------------------------
If you need UTF-8 support in libHaru, you can take 
`hpdf_encoder_utf.c' from files section. 
Include it in makefiles, add prototype 

HPDF_EXPORT(HPDF_STATUS) 
HPDF_UseUTFEncodings   (HPDF_Doc   pdf); 

to `hpdf.h' and rebuild the library. 
After that this code should work perfectly 

HPDF_UseUTFEncodings(pdf); 
HPDF_SetCurrentEncoder(pdf, "UTF-8"); 
... 

My implementation support only 1- and 2-byte UTF-8 codes, it should be 
enough in most cases. 

-----------------------------------------------------------------------------------------------------------------------------------------------------------

can it work? because i can find HPDF_UseUTFEncodings in hpdf.h,but when link,the complie told can't find this function.

Dmitry Veltishev

unread,
Jun 27, 2013, 5:32:53 PM6/27/13
to lib...@googlegroups.com
 Current version of LibHaru supports UTF-8 encodings without any hacks.
Just build it and use function HPDF_UseUTFEncodings(), etc.
Of course, you should link your souce with libhpdf, libpng and zlib and all should be OK.

2013/6/27 <dou...@gmail.com>

--
--
---
libHaru.org development mailing list
To unsubscribe, send email to libharu-u...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "libHaru" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libharu+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Pradeep CK

unread,
Jul 24, 2013, 8:13:45 AM7/24/13
to lib...@googlegroups.com
Hi,

I need a little help. I am printing some utf8 characters in my pdf. While the pdf prints fine (in attached pdf), I notice that the characters are not copied properly when I do a copy and paste to word.

Is there something I am missing? Anything I can try out?

thanks in advance!

regards
Pradeep
test.pdf

Koen Deforche

unread,
Jul 24, 2013, 9:59:33 AM7/24/13
to lib...@googlegroups.com
Hey Pradeep,

This problem is solved in the latest git version, which contains a new
implementation of UTF-8 support (also supporting 3-byte UTF-8 codes).

Regards,
koen

Pradeep CK

unread,
Jul 24, 2013, 10:05:40 AM7/24/13
to lib...@googlegroups.com
Thanks very much Koen. That was pretty fast!

I will try it and let you know how it goes!


--
--
---
libHaru.org development mailing list
To unsubscribe, send email to libharu-u...@googlegroups.com
---
You received this message because you are subscribed to a topic in the Google Groups "libHaru" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/libharu/E0Er1kXQHO8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to libharu+u...@googlegroups.com.

Pradeep CK

unread,
Jul 25, 2013, 7:07:28 AM7/25/13
to lib...@googlegroups.com
Hi Koen, that worked! thanks.

A couple of characters are not showing up, but I have a feeling it is do with my input rather than the library. I will email if I am not able to get it to work.

Thanks again!


On Wednesday, July 24, 2013 7:35:40 PM UTC+5:30, Pradeep CK wrote:
Thanks very much Koen. That was pretty fast!

I will try it and let you know how it goes!
On Wed, Jul 24, 2013 at 7:29 PM, Koen Deforche <koen.d...@gmail.com> wrote:
Hey Pradeep,

This problem is solved in the latest git version, which contains a new
implementation of UTF-8 support (also supporting 3-byte UTF-8 codes).

Regards,
koen


--
--
---
libHaru.org development mailing list
To unsubscribe, send email to libharu-unsubscribe@googlegroups.com

---
You received this message because you are subscribed to a topic in the Google Groups "libHaru" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/libharu/E0Er1kXQHO8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to libharu+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages