Aspose.Pdf.Examples.CSharp.AsposePDFFacades.TechnicalArticles.PDFToTIFFConversion.NewApproach C# (CSharp) Method

NewApproach() public static method

public static NewApproach ( ) : void
return void
        public static void NewApproach()
        {
            // ExStart:NewApproach
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_TechnicalArticles();

            // Create PdfConverter object and bind input PDF file
            PdfConverter pdfConverter = new PdfConverter();           
            pdfConverter.BindPdf(dataDir + "inFile.pdf");
            pdfConverter.DoConvert();

            // Create TiffSettings object and set CompressionType
            TiffSettings tiffSettings = new TiffSettings();            
            // Convert to TIFF image
            pdfConverter.SaveAsTIFF(dataDir + "PDFToTIFFConversion_out.tif", 300, 300, tiffSettings, new WinAPIIndexBitmapConverter());
            pdfConverter.Close();
            // ExEnd:NewApproach                      
        }
    }
PDFToTIFFConversion