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

TOPIC:

Highlighter color 5 years 7 months ago #14157

  • rishikesh@appristine.in
  • rishikesh@appristine.in's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 0
hello everyone, I buy a license of PDF, I make highlighter color change dynamically.
When I highlight the text and repeatably highlight on same text, then color get darker and darker...
Please, help me it is very important for me.
Early feedback is appreciated.

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

Highlighter color 5 years 7 months ago #14158

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
You're simply applying more and more highlight annotations one on the top of the previous one.

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

Highlighter color 5 years 7 months ago #14159

  • rishikesh@appristine.in
  • rishikesh@appristine.in's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 0
Exactly, u r right sir but my question is how to replace the old highlight color to new color without make it overlap.

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

Highlighter color 5 years 7 months ago #14162

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
it seems you shall modify some codes.
current AddAnnotMarkup implement:
public boolean AddAnnotMarkup( int cindex1, int cindex2, int type )
{
int color = Global.highlight_color;
if( type == 1 ) color = Global.underline_color;
if( type == 2 ) color = Global.strikeout_color;
if( type == 4 ) color = Global.squiggle_color;
return addAnnotMarkup2( hand, cindex1, cindex2, color, type );
}

so, you can add a new method:
public boolean AddAnnotMarkup( int cindex1, int cindex2, int type, int color )
{
return addAnnotMarkup2( hand, cindex1, cindex2, color, type );
}
this way, you shall add parameter to a new wrapping.

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

  • Page:
  • 1
Powered by Kunena Forum