We're currently in the process of implementing the ability for our application to update annotations through code/business logic and one of the strange things we ran into is in order to get the page that an annotation is on we have to call PdfAnnotation.Document.Pages.IndexOf(PdfAnnotation.Page). It seems like there is probably an easier/better way to do this, so any direction you can provide would be appreciated.
Do you need to get page index in PDF document? If yes, you are using correct code because only PdfPageCollection.IndexOf method can return index of element in collection.