[reportlab-users] how to use rml2pdf generate chinese pdf document

Andy Robinson andy at reportlab.com
Sun Dec 4 15:59:02 EST 2005


li xian wrote:
> thanks all!
> I am a new reportlab user
> .
> I want to use rml2pdf generate chinese simplfiy font pdf document.

Are you talking about the open source 'Tiny RML2PDF'?  This is made by 
someone else and I cannot provide any support for it; I would be very 
surprised if the author has done the needed work.

If you use Python code and the ReportLab library directly, then
you can look at the script tests
   test_multibyte_chs.py
   test_multibyte_cht.py
to see how to generate text in Simplified and Traditional Chinese.
But these use the Acrobat Reader language packs; they don't give you
a big choice of fonts.   You should be able to use multibyte TrueType
fonts according to our manual, but I guess there will be a
performance issue.

We will hopefully be doing quite a lot of work in Jan-Mar 2006 on Asian 
language support and Unicode - we have some possible projects which
require this coming up.  So please let us know if you find any problems
or have any suggestions on Chinese support.

Best Regards,


Andy Robinson









More information about the reportlab-users mailing list