Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

DeHighLight / Remove HighLight

More
IP: 192.168.0.70 12 years 8 months ago - 12 years 8 months ago #2888 by truculent
hi again!

we cant find any method for remove annuotation from pdf! (Like remove highLighted or remove Line or .....)
but in your android version we can do it!
please explain how we can do it :(


& there is not any BOOL for check high light can be apply or no [like you draw mode]
your draw mode have 2 button for cancel it!

i have another question!
can i change time of longpress for select text in pdf [by defualt it very long :(]
Last edit: 12 years 8 months ago by patel_patel_patel.
More
IP: 192.168.0.70 12 years 8 months ago #2890 by radaee
Annotation.RemoveFromPage shall be OK.
to get annotation object:
--Page.GetAnnot(index)
--Page.GetAnnotFromPoint(x,y)
More
IP: 192.168.0.70 12 years 8 months ago #2921 by truculent
Page_getAnnot(PDFpage, int index)

what is index ?
how i can select an annotation & delete it!
i dont know how in can select annote [know an annoot selected & remove it] :(
More
IP: 192.168.0.70 12 years 8 months ago - 12 years 8 months ago #2925 by radaee
index start from 0 to Page.GetAnnotCount().

just like do:
Annotation annot = Page.GetAnnot(index);
annot.RemoveFromPage();
annot = null;

or like do:
PDFVPos pos = PDFView.vGetPos( x, y );
PDFVPage vpage = PDFView.vGetPage( pos.pageno );
Page page = vpage.GetPage();
Annotation annot = Page.GetAnnotFromPoint( pos.x, pos.y );
annot.RemoveFromPage();
annot = null;
PDFView.vRenderPage( pos.pageno );
Last edit: 12 years 8 months ago by .
More
IP: 192.168.0.70 12 years 8 months ago #2968 by truculent
why this is not work :|


we use it in RDPDFViewController.m

an in method -(void)OnSingleTapped:(float)x :(float)y [] [only for test]
struct PDFV_POS pos;
[m_view vGetPos:&pos];

PDFVPage *vpage = [pdf_view vGetPage:pos.pageno];
PDF_PAGE page = vpage.GetPage;
PDF_ANNOT annot = Page_getAnnotFromPoint(page, pos.x, pos.y);
Page_removeAnnot(page, annot);
annot = NULL;
[pdf_view vRenderPage:pos.pageno];
More
IP: 192.168.0.70 12 years 8 months ago #2969 by radaee
please see:
[m_view vGetPos:&pos:x:y];
Time to create page: 0.436 seconds
Powered by Kunena Forum