Call the setPages method of the ConvertOptions instance with the list of the desired page numbers to be converted.
Call the convert method of the Converter class instance and pass the filename of the converted document and the instance of the ConvertOptions from the previous steps.
The following code snippet shows how to convert the first and the third pages from the source document: