VintaSoft PDF .NET Plug-in Discussions

Questions, comments and suggestions concerning VintaSoft PDF .NET Plug-in.

Board index < VintaSoft Imaging < VintaSoft PDF .NET Plug-in Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Finding the page an annotation is on in code



Finding the page an annotation is on in code

Post by IntegraMike »

Hello,

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.

Thanks!
Mike


Re: Finding the page an annotation is on in code

Post by Alex »

Hello Mike,

The PdfAnnotation.Page property returns a PDF page associated with annotation:
https://www.vintasoft.com/docs/vsimagin ... /Page.html

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.

Best regards, Alexander


Re: Finding the page an annotation is on in code

Post by IntegraMike »

We're looking to note the page number of the document that the annotation is on so thanks for confirming we're doing the right thing!


Page 1 from 1: 1