How can I find out the page number of an OutlineItemCollection?

There doesn’t seem to be a straight-forward way to get this information.

This message was posted using Page2Forum from [/community/public/documentation](https://forum.aspose.com/community/public/documentation)

Hi Tim,

Thanks for using our products.

You can find the page number of an OutlineItemCollection by using below line of code.

int pageNo = ((Aspose.Pdf.InteractiveFeatures.ExplicitDestination)(((Aspose.Pdf.InteractiveFeatures.GoToAction)(outlineItem.Destination)).Destination)).PageNumber;

Please feel free to contact support in case you need any further assistance.

Thanks & Regards,

Thanks for the answer, but like I said… there is certainly no straight-forward way to get that.

Hi Tim,

Thank you very much for your feedback. Yes, you are right currently, there is no straight forward way to get the value of this property and It is great to hear that atleast your issue has been resolved. You are always welcome and please feel free to ask if you have any query in future.

We apologize for your inconvenience.

Thanks & Regards,