DeHighLight / Remove HighLight - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1
  • 2

TOPIC: DeHighLight / Remove HighLight

DeHighLight / Remove HighLight 5 years 4 months ago #2888

  • truculent
  • truculent's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 64
  • Thank you received: 0
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 :(]

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

Last edit: by patel_patel_patel.

DeHighLight / Remove HighLight 5 years 4 months ago #2890

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
Annotation.RemoveFromPage shall be OK.
to get annotation object:
--Page.GetAnnot(index)
--Page.GetAnnotFromPoint(x,y)

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

DeHighLight / Remove HighLight 5 years 4 months ago #2921

  • truculent
  • truculent's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 64
  • Thank you received: 0
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] :(

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

DeHighLight / Remove HighLight 5 years 4 months ago #2925

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
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 );

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

Last edit: by .

DeHighLight / Remove HighLight 5 years 4 months ago #2968

  • truculent
  • truculent's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 64
  • Thank you received: 0
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];

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

DeHighLight / Remove HighLight 5 years 4 months ago #2969

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
please see:
[m_view vGetPos:&pos:x:y];

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum