Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC:

Adding Text using Android 11 4 days 22 hours ago #15742

  • marksdl
  • marksdl's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

Adding Text using Android 11 4 days 13 hours ago #15743

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1112
  • Thank you received: 71
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.

Please Log in or Create an account to join the conversation.

Adding Text using Android 11 4 days 11 hours ago #15744

  • marksdl
  • marksdl's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

Adding Text using Android 11 4 days 11 hours ago #15745

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1112
  • Thank you received: 71
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().
 

Please Log in or Create an account to join the conversation.

Last edit: by radaee.

Adding Text using Android 11 4 days 11 hours ago #15746

  • marksdl
  • marksdl's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Adding Text using Android 11 4 days 10 hours ago #15747

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1112
  • Thank you received: 71
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.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum