doonfrs / pluto_grid_plus

PlutoGrid is a dataGrid for flutter that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS.
https://pluto.weblaze.dev
MIT License
18 stars 20 forks source link

Broken Arabic Characters in PDF on pluto_grid_plus_export #41

Closed IdrisQashan closed 2 months ago

IdrisQashan commented 3 months ago

Dear Pluto Grid Plus Export Team,

I'm encountering an issue with generating PDF files using the Pluto Grid Plus Export package (version 1.0.4). When I include Arabic text in the exported data, the resulting PDF displays the Arabic characters broken and reversed.

Steps to Reproduce:

  1. Install the pluto_grid_plus_export package (version 1.0.4) in a Flutter project.
  2. Create a Pluto Grid widget and populate it with data containing Arabic text.
  3. Use the PlutoGridDefaultPdfExport class to generate a PDF from the Pluto Grid.
  4. Open the generated PDF file.

Expected Behavior:

The Arabic characters should appear correctly in the PDF, aligned from right to left and maintaining their original glyphs.

Observed Behavior:

The Arabic characters are displayed broken and reversed in the PDF. Individual characters are separated and appear in the wrong order.

Additional Information:

Request:

I kindly request your assistance in investigating this issue and providing a solution to ensure proper rendering of Arabic characters in PDF files generated using the Pluto Grid Plus Export package.

Thank you for your time and attention to this matter.

doonfrs commented 2 months ago

I don't think this can be solved easily, most pdf converters do not support Unicode easily, better to depend on third-party services or server-side generation for your pdf.