pombreda / xhtml2pdf

Automatically exported from code.google.com/p/xhtml2pdf
GNU General Public License v2.0
0 stars 0 forks source link

Support for CJK wrapping in XHTML2PDF [Patch included] #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There is apparently no way to specify how the text should wrap from the CSS 
or HTML, but pisa has a nice feature for wrapping CJK languages and a 
style.wordWrap attribute.
The attached patch adds a style -pdf-word-wrap with only one possible value, 
CJK. If CJK is used, then the word wrapping will be done CJK style, if not it 
will be done the normal style.
The word wrapping was already done in reportlab_paragraph.py 

Original issue reported on code.google.com by lasco...@gmail.com on 6 May 2010 at 1:16

Attachments:

GoogleCodeExporter commented 9 years ago
Very nice.  A must have for CJK users!

Original comment by tokyo...@gmail.com on 19 Aug 2010 at 12:33

GoogleCodeExporter commented 9 years ago
Some time ago Pisa AKA XHTML2PDF has been rereleased under the completely free 
Apache License. Since I personally don't have the time and resources to 
continue the project like before I would kindly ask you to fork the project on 
GitHub and add your patches etc. Maybe someone likes to create a new unified 
version and publish it on PyPI. If you need more help on this get in contact 
with me or write to the XHTML2PDF mailing list. Thank you all very much for 
your effort!

Project on GitHub:
http://github.com/holtwick/xhtml2pdf

Original comment by dirk.holtwick on 23 Aug 2010 at 5:27