Aspose.Tasks.Examples.CSharp.Articles.RenderMultipageTIFF.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);

            // ExStart:RenderMultipageTIFF
            // Source file to be converted to TIFF
            string file = "Project2.mpp";
            Project project = new Project(dataDir + file);

            // Save the project to TIFF
            project.Save(dataDir + "RenderMultipageTIFF_out.tif", SaveFileFormat.TIFF);

            // Save the project with CCITT4 compression
            ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.TIFF);
            options.TiffCompression = TiffCompression.Ccitt4;
            project.Save(dataDir + "RenderMultipageTIFF_options_out.tif", options);

            // Remove the compression
            options.TiffCompression = TiffCompression.None;
            project.Save(dataDir + "RenderMultipageTIFF_comp_none_out.tif", options);
            // ExEnd:RenderMultipageTIFF
        }
    }
RenderMultipageTIFF