- Posts: 64
- 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 iOS development and PDF
DeHighLight / Remove HighLight
IP: 192.168.0.70
12 years 8 months ago - 12 years 8 months ago #2888
by truculent
DeHighLight / Remove HighLight was created 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
]
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.
IP: 192.168.0.70
12 years 8 months ago #2890
by radaee
Replied by radaee on topic DeHighLight / Remove HighLight
Annotation.RemoveFromPage shall be OK.
to get annotation object:
--Page.GetAnnot(index)
--Page.GetAnnotFromPoint(x,y)
to get annotation object:
--Page.GetAnnot(index)
--Page.GetAnnotFromPoint(x,y)
IP: 192.168.0.70
12 years 8 months ago #2921
by truculent
Replied by truculent on topic DeHighLight / Remove HighLight
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]
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]
IP: 192.168.0.70
12 years 8 months ago - 12 years 8 months ago #2925
by radaee
Replied by radaee on topic DeHighLight / Remove HighLight
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 );
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 .
IP: 192.168.0.70
12 years 8 months ago #2968
by truculent
Replied by truculent on topic DeHighLight / Remove HighLight
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];

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];
IP: 192.168.0.70
12 years 8 months ago #2969
by radaee
Replied by radaee on topic DeHighLight / Remove HighLight
please see:
[m_view vGetPos:&pos:x:y];
[m_view vGetPos:&pos:x:y];
Time to create page: 0.436 seconds