Export to PDF problem in the data of table

Export to PDF problem in the data of table

mesa_sanemesa_sane Posts: 4Questions: 2Answers: 0
edited November 2018 in Free community support

Hi all
I've problem in export data to PDF, the direction of phrases not correct like the example:
before convert: word1 word2 word3
after convert to PDF: word1 word3 word2 (change words position)
The language is arabic, i've change the font to cairo for uni-coding
any help please.
Thanks in advance.

Answers

  • colincolin Posts: 15,152Questions: 1Answers: 2,587

    Hi @mesa_sane ,

    That's not normal, so it'll be down to your implementation. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • mesa_sanemesa_sane Posts: 4Questions: 2Answers: 0

    Thanks @colin for your help,

    I think my problem because i'm exporting RTL data.
    Is there any specific feature i have to add to make table columns start from right to left on the PDF?

  • colincolin Posts: 15,152Questions: 1Answers: 2,587
    edited March 2019

    Hi @mesa_sane ,

    I've just searched around, and I think this is a limitation of PDFmake, the library DataTables uses to create the PDF file. It seems you can specify RTL fonts, but it doesn't then follow any ability for the text direction.

    That said, this example here may help. This converts a checkbox for PDF export, you could so something similar with orthogonal data and remap that field to reverse any words.

    Cheers,

    Colin

This discussion has been closed.