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

TOPIC:

Hide annotation 10 years 9 months ago #3021

  • BeApp
  • BeApp's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Is it possible to hide annotations ?
I use AddAnnotBitmap to add annotation to my pdf.
I understand that i can remove all annotation with "vpage.GetPage().GetAnnot(j).RemoveFromPage();" inside a loop.
But i don't want to delete them, just hide them ! For example with a button to show/hide annot.

Is it possible ?

Thanks
The topic has been locked.

Hide annotation 10 years 9 months ago #3023

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
invoke Global.hideAnnots(true);
but in this way all annotations are hidden.
The topic has been locked.

Hide annotation 10 years 9 months ago #3028

  • BeApp
  • BeApp's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Thanks, that's exactly that i wanted !
The topic has been locked.

Hide annotation 10 years 5 months ago #4415

  • itrjwyss
  • itrjwyss's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
But Global.hideAnnots(true); is a private method, is impossible access to it.
Last edit: by xzibit68.
The topic has been locked.

Hide annotation 10 years 5 months ago #4421

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Change it from private to public
The topic has been locked.

Hide annotation 10 years 2 months ago #5051

  • bsautere
  • bsautere's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
I tried to change the method hideAnnots to public in Global.java but got this : java.lang.UnsatisfiedLinkError: Native method not found: com.radaee.pdf.Global.hideAnnots:(Z)V . I use 2.9.7 final.

What worked was modifying method default_config() with an annot transparency of 0x00000000.
The topic has been locked.
  • Page:
  • 1
  • 2
Powered by Kunena Forum