Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

how to change the color of rect

  • ankur123987
  • Topic Author
  • Offline
  • User is blocked
  • User is blocked
  • Available as freelancer (ex website to app 30min)
More
10 years 9 months ago #10129 by ankur123987
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
More
10 years 9 months ago #10130 by Davide
Hi,
to change the color of the border I suggest you to look at :
Code:
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:
Code:
m_annot.SetFillColor(int color)
For more info check this: www.radaeepdf.com/documentation/javadocs...ml#SetFillColor(int)
  • ankur123987
  • Topic Author
  • Offline
  • User is blocked
  • User is blocked
  • Available as freelancer (ex website to app 30min)
More
10 years 9 months ago #10142 by ankur123987
thanks davide one more question how can i get the m_annot object ?
More
10 years 9 months ago #10144 by radaee
2 ways :
--call back method PDFReader.OnAnnotClicked() shall pass annotation object to u.
--Page.ObjsStart(), Page.GetAnnotCount() and Page.GetAnnot(index) can be used.
  • ankur123987
  • Topic Author
  • Offline
  • User is blocked
  • User is blocked
  • Available as freelancer (ex website to app 30min)
More
10 years 9 months ago #10154 by ankur123987
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?
More
10 years 9 months ago #10162 by Davide
Hi,
you can get annotation using:
Code:
page.GetAnnot(int);
or
Code:
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)
Time to create page: 0.365 seconds
Powered by Kunena Forum