Extract single doc from document is not working in aspose word

Hi,
I am using below line of code to extract single page from document having 2 page but extracted document is also a two page.
code:–

Document doc = new Document("doc-demo.docx");
Document extractPages = doc.extractPages(0, 1);
extractPages.save("doc-extract.docx");

doc-demo.docx (38.4 KB)

@ravikmr474
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-27241

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.