Set setPages property of the ConvertOptions instance with list of desired page number to be converted
Call convert method of Converter class instance and pass filename for the converted document and the instance of ConvertOptions from the previous steps
Following code snippet shows how to convert first and third pages from the source document: