Hello guys,
So I ran into an issue where when i try to export a grid using PDF a special char will make the export fail and give the following error,
Uncaught (in promise) Error: ArgumentOutOfRangeException:index, The character is not supported by the font.
at t.items (_shared.js:7212)
at t.getCharWidthInternal (_shared.js:7212)
at t.getLineWidth (_shared.js:7212)
at e.getLineWidth (_shared.js:7212)
at e.layoutLine (_shared.js:7212)
at e.doLayout (_shared.js:7212)
at e.layout (_shared.js:7212)
at e.measureWidth (_shared.js:7212)
at e.get [as width] (_shared.js:7212)
at t.measureColumnsWidth (_shared.js:7212)
Excel export however works fine.
I Am using ej2 js version of the export which is failing, with the PDFExportOptions being set as,
{
pageOrientation: 'Landscape',
pageSize: 'A3',
contentType: "Text"
}
is there perhaps a option that I am missing currently? For the data I am trying to export, I dont control the data that comes back, so any form of special chars can be added to a field.
Kind regards
Johandre