let currentFont: pdftron.PDFNet.Font = await Font.create(pdfDoc, Font.StandardType1Font.e_times_roman);
element = await eb.createTextRun(value, currentFont, currentFontSize);
and trying to write a “—” (em dash) character as the value, am seeing — on screen.
Have couple of questions regarding this:
Are there any other options rather than using StandardType1Font fonts in Web API. Unicode fonts for example?
what format does the createTextRunUnsigned function expect for the text_data? Whatever I pass. am getting following error in the console: Uncaught (in promise) abort(16). Build with -s ASSERTIONS=1 for more info.
any approaches to solve the problem? My guess is it won’t be just limited to the “em dash” character.
It looks like createUnicodeTextRun was just added to our main PDFTron SDK in the latest release so this API will be integrated into the Web SDK in its next release which is planned for June.