Retrieve data between page numbers range

Hi Team,

Working on the below task but am not able to get how to retrieve data in the range of page numbers.

Give Page number range: 2 to 4 out of 5 pages
Retrieve data to another document(only 2 to 4 pages).

Can I know how can we achieve this?

@kkumaranil485 You can achieve this using Document.ExtractPages method, which does exactly what you need.