-
Notifications
You must be signed in to change notification settings - Fork 0
Broken RU encoding in specific document #4
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
Comments
Hi @ava5412 , sorry for the late reply. We truly appreciate your feedback. The sample document uses the Times New Roman font series, but since the PDF file does not embed this font and the mobile system does not have it pre-installed, the related text cannot be displayed properly. This issue also exists in version v2.0.1. To resolve this, you can manually import the Times New Roman font and set it as the default font by referring to the following code. We sincerely apologize for the inconvenience and will continue to optimize font support. // First, copy the Times New Roman.ttf file to the filesDir directory
String ttfPath = new File(getFilesDir(), "Times New Roman.ttf").getAbsolutePath();
CPDFSdk.setDefaultFontPath(this, ttfPath);
CPDFSdk.useDefaultFont(true);
CPDFSdk.init(this, "your compdfkit license", true); |
Hi @ava5412 , I would like to ask if there is a solution to your problem. If it is solved, I will close the issue. |
Hi @youna12345
|
Hi @ava5412 , sorry for the late reply. We truly appreciate your feedback. |
Steps:
0. get ComPdf Android 2.2.2
Actual result

RU letters not displayed
Expected result

like
Note
(probably, it works in ComPdf Android 2.0.1...)
The text was updated successfully, but these errors were encountered: