PDF create chinese characters

PDF create chinese characters

yskapellyskapell Posts: 47Questions: 14Answers: 3

Hello,

When I an trying to export a PDF with chinese ideograms instead of "好“ I get two blocks.

Can I specify fonts which support also chinese ideograms?

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    This thread discusses how to include other fonts in the PDF export,

    Colin

  • yskapellyskapell Posts: 47Questions: 14Answers: 3

    Hello colin,

    I tried customize: function (doc) { doc.defaultStyle.font = 'arial.ttf'; }

    but nothing changed.

    If I use

                    // Add fonts to PDF Maker
                    pdfMake.fonts = {
                        Arial: {
                            normal: 'arial.ttf',
                            bold: 'arialbd.ttf',
                            italics: 'ariali.ttf',
                            bolditalics: 'arialbi.ttf'
                        }
                    };
    

    I get error and export does not work

  • kthorngrenkthorngren Posts: 21,343Questions: 26Answers: 4,954

    What is the error you are getting?

    Did you follow the steps in the PDFMake docs to use your font with PDFMake?

    Please provide a link to your page or a test case showing the issue so we can help debug.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

Sign In or Register to comment.