- Posts: 1
- Thank you received: 0
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
Remove Highlight
- barqawi.88
- Topic Author
- Offline
- New Member
-
Less
More
IP: 192.168.0.71
11 years 5 months ago #7437
by barqawi.88
Remove Highlight was created by barqawi.88
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
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
please advice
IP: 192.168.0.71
11 years 5 months ago - 11 years 5 months ago #7442
by radaee
Replied by radaee on topic Remove Highlight
in demo project:
single tapped on the markup annotation, and then click remove button.
as souce codes, to add markup Annotation(in PDFView.vSetSelMarkup):
to remove markup:
single tapped on the markup annotation, and then click remove button.
as souce codes, to add markup Annotation(in PDFView.vSetSelMarkup):
Code:
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;
}
Code:
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: 11 years 5 months ago by .
- rurodriguez
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
IP: 192.168.0.71
11 years 4 months ago #7742
by rurodriguez
Replied by rurodriguez on topic Remove Highlight
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!
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!
Time to create page: 0.404 seconds