public static void Run()
{
// ExStart:ConvertRangeOfDjVuPages
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_DjVu();
// Load a DjVu image
using (DjvuImage image = (DjvuImage)Image.Load(dataDir + "Sample.djvu"))
{
// Create an instance of TiffOptions with preset options and IntRange and initialize it with range of pages to be exported
TiffOptions exportOptions = new TiffOptions(TiffExpectedFormat.TiffDeflateBw);
IntRange range = new IntRange(0, 2);
// Initialize an instance of DjvuMultiPageOptions while passing instance of IntRange and Call Save method while passing instance of TiffOptions
exportOptions.MultiPageOptions = new DjvuMultiPageOptions(range);
image.Save(dataDir + "ConvertRangeOfDjVuPages_out.djvu", exportOptions);
}
// ExEnd:ConvertRangeOfDjVuPages
}
}