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

TOPIC:

Remove Highlight 9 years 6 months ago #7437

  • barqawi.88
  • barqawi.88's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 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)

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

Remove Highlight 9 years 6 months ago #7442

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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]);
}

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

Last edit: by .

Remove Highlight 9 years 5 months ago #7742

  • rurodriguez
  • rurodriguez's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
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!

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

  • Page:
  • 1
Powered by Kunena Forum