Problem Export PDF With Lang Arabic

Problem Export PDF With Lang Arabic

marwene8marwene8 Posts: 5Questions: 1Answers: 0

i have problem when i export my table to pdf all the arabic cartcter remplaced by anther carcter

Answers

  • kthorngrenkthorngren Posts: 21,117Questions: 26Answers: 4,916

    Please start by posting your Datatables code so we can see what you are doing.

    Kevin

  • marwene8marwene8 Posts: 5Questions: 1Answers: 0

    thx for answer of my question
    this is my data table i need to export pdf

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Please start by posting your Datatables code so we can see what you are doing.

    That means your code, not a screenshot of a table.

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    This is almost certainly due to the fact that the default font pdfmake comes with does not include the characters you require. Their Wiki contains information on how to create your own font that it can use with the characters you need.

    Allan

  • marwene8marwene8 Posts: 5Questions: 1Answers: 0

    allan
    thx for repons
    i cannot fix the problem
    my projetect is to parse arabic data json file in data table and make pdf
    if i can i send the page who conten the problem and help me to fixed please

  • marwene8marwene8 Posts: 5Questions: 1Answers: 0
    edited April 2017

    pleas help me :'(

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    Have you read the pdfmake wiki page that I linked to above? That gives the instructions for how to create your own font file.

    Allan

  • marwene8marwene8 Posts: 5Questions: 1Answers: 0

    in vfs_fonts.js :
    {
    trado: {
    normal: 'trado.ttf',
    }
    };

    in pdfmake.min.js :
    defaultStyle: {
    font: 'trado'
    }

    not work

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    This is really a question for the pdfmake people.

This discussion has been closed.