javascript - About reportlab -
i have problem with reportlab. want create pdfs data coming javascript code chinese or other non-roman letters in it. tried using different techniques in unicode still appears black boxes in pdf. have in js these , want make text "warranty ....." chinese or something.
content.find('#wtc') .html('<br/><span style="font-size:20px;color:rgb(9,79,163);"> warranty general terms , conditions</span>');
when in roman characters, fine. however, if insert [&]#21512; doesn't show should >> 合
can me here? in advance!
ps, please bear me. i'm new here in reportlab.
maybe need add reportlab fonts support encoding want? example:
dfmetrics.registerfont(ttfont('times-italic', 'timesi.ttf', 'utf-8')) pdfmetrics.registerfont(ttfont('times-bolditalic', 'timesbi.ttf', 'utf-8')) reportlab.lib.fonts import addmapping addmapping('times', 0, 0, 'times') #normal addmapping('times', 0, 1, 'times-italic') #italic
place fonts in \site-packages\reportlab\fonts
Comments
Post a Comment