Delete highlight from page - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Delete highlight from page

Delete highlight from page 1 year 1 month ago #12913

  • vlad91
  • vlad91's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hello,
I'm trying to delete highlights. I get a reference to the annotation using document.GetPage(pageno).GetAnnot(index) and the I call RemoveFromPage(), however this method returns false. I'm sure that the license setup is correct, selection and highlighting work as expected.
I also noticed that document.CanSave() is always false!

Can some help me please?

Kind regards,
Vlad

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

Last edit: by vlad91.

Delete highlight from page 1 year 1 month ago #12924

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
you need to call page.ObjsStart(); before m_annot.RemoveFromPage();.
For more info check this : www.radaeepdf.com/documentation/javadocs...age.html#ObjsStart--

Document.CanSave() dipends on how you open the doc, it returns false if you open it in memory for example using OpenMem, in this case is opened in read only mode and you can't even add annots..
The following user(s) said Thank You: vlad91

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

Delete highlight from page 1 year 1 month ago #12930

  • vlad91
  • vlad91's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
I used OpenMem, that was causing my problems, hopefully it will be smooth sailing from now on. Cheers!

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

  • Page:
  • 1
Powered by Kunena Forum