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

How to get the x and y position when their is underline,highlight and strikeout

More
IP: 123.252.243.145 6 years 7 months ago #14466 by apdeveloper
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.
Time to create page: 0.348 seconds
Powered by Kunena Forum