Use the setPageNumbers method of DocumentConvertOptions to convert only selected pages (or worksheets) from the source document. Page numbering starts from 1.
Using static method
importcom.groupdocs.markdown.*;publicclassSpecificPagesStatic{publicstaticvoidmain(String[]args){DocumentConvertOptionsoptions=newDocumentConvertOptions();options.setPageNumbers(newint[]{1,3});// Convert only pages 1 and 3
MarkdownConverter.toFile("business-plan.docx","specific-pages-static.md",options);}}
business-plan.docx is a sample file used in this example. Click here to download it.

**Meridian Outdoor Co. — Business Plan**
FY2026 Strategic Plan
# **1. Executive Summary**
Meridian Outdoor Co. is a direct-to-consumer outdoor apparel and gear brand serving thru-hikers, backcountry travelers, and weekend adventurers. This plan outlines our strategy for fiscal year 2026, a year in which we expect to grow revenue by forty percent, expand into three new retail categories, and launch our sustainability certification program.
[TRUNCATED]
business-plan.docx is a sample file used in this example. Click here to download it.

**Meridian Outdoor Co. — Business Plan**
FY2026 Strategic Plan
# **1. Executive Summary**
Meridian Outdoor Co. is a direct-to-consumer outdoor apparel and gear brand serving thru-hikers, backcountry travelers, and weekend adventurers. This plan outlines our strategy for fiscal year 2026, a year in which we expect to grow revenue by forty percent, expand into three new retail categories, and launch our sustainability certification program.
[TRUNCATED]