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 Lock annotation set from Radeepdf in iOS

More
IP: 86.98.77.35 6 years 8 months ago #14431 by [email protected]
Hi Team,

I am trying to find out an away to lock annotation in iOS as it done like in android with below code.


Highly appreciated your support.
//setting the all the annotation as read only
for (int i = 0; i < m_doc.PageCount; i++)
{
PDFPage page = m_doc.GetPage(i);
page.ObjsStart();
for (int j = 0; j < page.AnnotCount; j++)
{
PDFAnnot annot = page.GetAnnot(j);
annot.ReadOnly = true;
}
page.Close();
}
m_doc.Save();
More
IP: 212.97.62.176 6 years 8 months ago #14432 by federico
Dear user,
Here's a working lock annotations' code example for iOS:
Code:
for (int i = 0; i < pagecount; i++) { PDFPage *page = [m_doc page:i]; page.objsStart; for (int j = 0; j < page.annotCount; j++) { PDFAnnot *annot = [page annotAtIndex:j]; [annot setReadonly:YES]; } } [m_doc save];
Time to create page: 0.385 seconds
Powered by Kunena Forum