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

TOPIC:

how to change the color of rect 10 years 1 day ago #10129

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
Hi radaeepdf team ,

I want to change the color of rect blue to white but unable to detect the lines of code where can i change it . is there any method to change the color via from activity class i tried with in library but color is not reflected i wanted white color from border of rect also

please reply
thanks

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

how to change the color of rect 10 years 23 hours ago #10130

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
to change the color of the border I suggest you to look at :
m_annot.SetStrokeColor(int color)
For more info check this: www.radaeepdf.com/documentation/javadocs...#SetStrokeColor(int)

To change annotation's background you should use:
m_annot.SetFillColor(int color)
For more info check this: www.radaeepdf.com/documentation/javadocs...ml#SetFillColor(int)

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

how to change the color of rect 10 years 30 minutes ago #10142

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
thanks davide one more question how can i get the m_annot object ?

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

how to change the color of rect 9 years 11 months ago #10144

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
2 ways :
--call back method PDFReader.OnAnnotClicked() shall pass annotation object to u.
--Page.ObjsStart(), Page.GetAnnotCount() and Page.GetAnnot(index) can be used.

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

how to change the color of rect 9 years 11 months ago #10154

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
but these method does not provide the m_annot object . i tried the Page.objstart , page.getAnnontcount() ( its provide the total number of count, ) what would pass in index.
how can i call m_annot from activity class?

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

how to change the color of rect 9 years 11 months ago #10162

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
you can get annotation using:
page.GetAnnot(int);
or
page.GetAnnotFromPoint(float, float)

For more info check this:
www.radaeepdf.com/documentation/javadocs...e.html#GetAnnot(int)
or
www.radaeepdf.com/documentation/javadocs...ml#GetAnnotFromPoint(float, float)

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

  • Page:
  • 1
Powered by Kunena Forum