- Posts: 5
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Adding Text using Android 11
IP: 89.243.233.110
3 years 10 months ago #15742
by marksdl
Adding Text using Android 11 was created by marksdl
I am trying to run the sample app (and also integrate) the library but I am finding the text boxes on Android 11 devices you can't enter text and they disappear completely when you have finished editing. Is there a fix for this?
IP: 111.196.243.33
3 years 10 months ago #15743
by radaee
Replied by radaee on topic Adding Text using Android 11
dear user:
this depends on font setting of annotation.
in method Global.Init();
there is code line:
if (//!setAnnotFont("DroidSansFallback") &&
!setAnnotFont("Arimo") && face_name != null) {
setAnnotFont(face_name);
}
plz check the font exists in your project, and type only latin for "Arimo".
if you want support other language, plz set annotation font to other font.
this depends on font setting of annotation.
in method Global.Init();
there is code line:
if (//!setAnnotFont("DroidSansFallback") &&
!setAnnotFont("Arimo") && face_name != null) {
setAnnotFont(face_name);
}
plz check the font exists in your project, and type only latin for "Arimo".
if you want support other language, plz set annotation font to other font.
IP: 89.243.233.110
3 years 10 months ago #15744
by marksdl
Replied by marksdl on topic Adding Text using Android 11
Hi,
Thanks, further investigation it appears this call:boolean success = page.AddAnnotEditbox(rect, 0xFFFF0000, vpage.ToPDFSize(3), 0, 12, 0xFFFF0000);is returning FALSE - so the edit box isn't being added. Because it is a native call there isn't any error showing in the log, do you know why this might error?
Thanks, further investigation it appears this call:boolean success = page.AddAnnotEditbox(rect, 0xFFFF0000, vpage.ToPDFSize(3), 0, 12, 0xFFFF0000);is returning FALSE - so the edit box isn't being added. Because it is a native call there isn't any error showing in the log, do you know why this might error?
IP: 111.196.243.33
3 years 10 months ago - 3 years 10 months ago #15745
by radaee
Replied by radaee on topic Adding Text using Android 11
1. plz confirm a premium license actived for your app.
2. PDF file is editable. Document.CanSave() shall return true.
3. setAnnotFont() invoked succeeded.
4. page object has rendered, or the page object invoked Page.ObjsStart().
2. PDF file is editable. Document.CanSave() shall return true.
3. setAnnotFont() invoked succeeded.
4. page object has rendered, or the page object invoked Page.ObjsStart().
Last edit: 3 years 10 months ago by radaee.
IP: 89.243.233.110
3 years 10 months ago #15746
by marksdl
Replied by marksdl on topic Adding Text using Android 11
Hi,
1. I have a Professional licence activated (does it need to be Premium instead? Professional features list text annotation)
2. Yes editable (line and polygons work for instance)
3. I iwll check
4. I will check
1. I have a Professional licence activated (does it need to be Premium instead? Professional features list text annotation)
2. Yes editable (line and polygons work for instance)
3. I iwll check
4. I will check
IP: 111.196.243.33
3 years 10 months ago #15747
by radaee
Replied by radaee on topic Adding Text using Android 11
this is not text annotation. this called "Free Text" annotation.
the text annotation is an icon, which will popup texts when you click on icon.
text annotation is called "Sticky Text" or note annotation.
the text annotation is an icon, which will popup texts when you click on icon.
text annotation is called "Sticky Text" or note annotation.
Time to create page: 0.382 seconds