RadaeePDF.com :: Topic: Remove Highlight (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Remove Highlight

Remove Highlight 2 years 9 months ago #7437

  • barqawi.88
  • barqawi.88's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hello

I managed to select text with your library and Highlight it with yellow color but how about if i want to remove the text Highlight :( or undo this effect.

please advice B)
The administrator has disabled public write access.

Remove Highlight 2 years 9 months ago #7442

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
in demo project:
single tapped on the markup annotation, and then click remove button.
as souce codes, to add markup Annotation(in PDFView.vSetSelMarkup):
if( m_pages[pcur].SetSelMarkup(type) )
{
vRenderSync(m_pages[pcur]);
Page page = m_pages[pcur].GetPage();
int markup_index = page.GetAnnot(page.GetAnnotCount()-1);
//....
return true;
}
to remove markup:
Page page = m_pages[pcur].GetPage();
if( page != null )
{
Annotation annot = page.GetAnnot(annot_index);
annot.RemoveFromPage();
annot = null;
vRenderSync(m_pages[pcur]);
}
Last Edit: 2 years 9 months ago by .
The administrator has disabled public write access.

Remove Highlight 2 years 8 months ago #7742

Hi,

I do not understand this response very well. I understand that the highlights are treated as markups, but if what I want is to clear just part of a highlight, how can I do it?. Suppose I have this text

Lorem ipsum ad his scripta blandit partiendo, eum fastidii accumsan euripidis in, eum liber hendrerit an

And I want to clear just part of the highlight in order to get something like this

Lorem ipsum ad his scripta blandit partiendo, eum fastidii accumsan euripidis in, eum liber hendrerit an

On the other hand, how can I get all the markups for a given selection?

Thanks in advance!
The administrator has disabled public write access.
Powered by Kunena Forum