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

TOPIC:

How to get the x and y position when their is underline,highlight and strikeout 4 years 8 months ago #14466

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 67
  • Thank you received: 0
The annot which i have added now i want to remove the same annot

in vSelMarkup function i am saving the annot as below code:

PDFVPage *vpage = [m_view vGetPage:pos.pageno];
PDFPage *page = [vpage GetPage];
[self setModified:[vpage SetSelMarkup:type :color] force:NO];
[actionManger push:ASAdd alloc] initWithPage:pos.pageno page:page index:(page.annotCount - 1);

float xPos = [defaults floatForKey:@"XStartPos"];
float yPos = [defaults floatForKey:@"YStartPos"];
NSString *AnnotationID = [NSString stringWithFormat:@"%d_%f_%f",[self vGetCurrentPage], xPos, yPos];
PDFAnnot *annot = [page annotAtIndex: [page annotCount] - 1];
[annot setName:AnnotationID];

[self updateLastAnnotInfoAtPage:page];
[m_view vRenderSync:pos.pageno];
[self refresh];
here now i am updating the annot name and then i want to delete the same annot with name but it is giving me null in the function which i have shared previously.

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum