-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[syncfusion_flutter_pdfviewer] Filling unicode character in PDF viewer occur Invalid argument (The character is not supported by the font.) Error #1741
Comments
I facing the same issue with this problem. Please help. |
Any solution? Same to me. |
We have analyzed your query, and we are able to reproduce the reported issue and currently, we are investigating the root cause of this issue at the source level at our end. |
In the document, the font assigned for the text field is 'Helvetica'. Helvetica font doesn't support Unicode characters, hence on saving the document, 'The character is not supported by the font' exception occurs. This is an expected behavior. |
@immankumarsync What is your suggested font for unicode? |
@aungzwin10, Arial Unicode MS font supports most Unicode characters. Please refer to the following on how to use custom font with syncfusion_flutter_pdf library. |
@immankumarsync Although I created a fillable form PDF with Arial Unicode MS font on Text field, the error still happen. I will attach the PDF for you to test too. |
@aungzwin10, we are able to replicate the issue, that the font is not retrieved properly when using a custom font. Currently, we are analyzing the root cause of this issue, and we will update further details upon finding the root cause. |
@immankumarsync Any Updates?Currently I'm facing a big trouble in my project with this error. |
Sorry for any inconvenience that may have caused. syncfusion_flutter_pdf supports only the below font families for drawing the text on the PDF page and for the Textbox form fields.
The limitation of using a font with a large number of glyphs in it is that only a subset of the font will be embedded in the PDF document. For example, when using the Arial Unicode MS font, if we use characters like 'a', 'b', and 'c', only these three characters will be embedded in the PDF document upon saving the PDF document. If you load the saved document again the syncfusion_flutter_pdf library, you need to assign the font for the particular field again to use the characters in that font.
To know more about the base fonts that are supported by the PDF, kindly refer to the link below. PDF - Wikipedia At present, the syncfusion_flutter_pdf library doesn't have the support to embed all the characters in the font into the PDF document upon saving. Please note that embedding all the characters in the font file into the PDF document will increase its size. We do not have any immediate plans to implement this support. At the planning stage of every release cycle, we review all open features and identify features for implementation based on specific parameters, including product vision, technological feasibility, and customer interest. Please use the below feedback to track the status of this feature. |
@immankumarsync For Example, Expected Result=>မြန်မြန် To reproduce this issue, please use the font attached. If you have any ideas about the problem’s cause or how to fix it, please let me know. Regards, |
@sAw-hTet-nAing,
At present, syncfusion_flutter_pdf library doesn't support for complex script of Myanmar(Burmese) Language. At the planning stage of every release cycle, we review all open features and identify features for implementation based on specific parameters, including product vision, technological feasibility, and customer interest. Please follow the feedback link to track the status of the feature, Complex script text drawing support in Flutter PDF |
@immankumarsync |
In syncfusion_flutter_pdfviewer version 25.1.35,
When filling unicode character in PDF viewer form filling, Invalid argument (The character is not supported by the font.) error is shown and cannot save the document.
Unicode character means all language unicode character(Not only Chinese).
See the example error screenshot below.
The text was updated successfully, but these errors were encountered: