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

TOPIC:

Falling into DictSetItem() 3 years 7 months ago #15256

  • MaxM
  • MaxM's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 19
  • Thank you received: 0
Hello Radaee.
I use:
long ref = annot.GetRef();
Obj obj = new Obj(ref);
Obj nameOb = obj.DictGetItem("T");

I want to save and read some values using the methods DictSetItem() / DictGetItem(), but it crashes DictGetItem(), what could be the reason?

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

Falling into DictSetItem() 3 years 7 months ago #15257

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
dear user:
you shall do codes like:
Ref ref = annot.Advance_GetRef();
Obj obj = m_doc.Advance_GetObj(ref);
Obj nameOb = obj.DictGetItem("T");
you can only get reference of annotation/page/document object.
and Document.Advance_GetObj()
is the only method to get object data.
The following user(s) said Thank You: MaxM

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

Last edit: by radaee.

Falling into DictSetItem() 3 years 7 months ago #15261

  • MaxM
  • MaxM's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 19
  • Thank you received: 0
Thanks for the answer.
But this method requires a premium license, and I only have a professional one. Then tell me why, having a professional license, the annot.GetModifyDate () method does not work for me.
I use:
boolean isSave = annotation.SetModifyDate(CommonUtil.getCurrentDate()); -> (isSave = false)
and
String date = annot.GetModifyDate(); -> (date = null)

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

Last edit: by MaxM.

Falling into DictSetItem() 3 years 7 months ago #15262

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
dear user:
we checked this method, SetModifyDate() will return false in these condition:
1. annotation is locked.(Annotation.IsLocked() => true)
2. string value is null
3. at least, you need a professional license.
we checked on Android version, and it works.
The following user(s) said Thank You: MaxM

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

Last edit: by radaee.
  • Page:
  • 1
Powered by Kunena Forum