public static void Run()
        {
            // ExStart:ConvertToTIFFSettings
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Images();
            // Create PdfConverter object and bind input PDF file
            PdfConverter pdfConverter = new PdfConverter();

            // Create Resolution object with 300 as an argument
            Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(300);
            // Specify the resolution value for PdfConverter object
            pdfConverter.Resolution = resolution;
            // Bind the source PDF file
            pdfConverter.BindPdf(dataDir + "ConvertToTIFF-Settings.pdf");
            // Start the conversion process
            pdfConverter.DoConvert();
            // Create TiffSettings object and set ColorDepth
            TiffSettings tiffSettings = new TiffSettings();

            tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Format1bpp;
            // Convert to TIFF image
            pdfConverter.SaveAsTIFF(dataDir + "output_out_.tif", 300, 300, tiffSettings);
            // Close Converter object
            pdfConverter.Close();
            // ExEnd:ConvertToTIFFSettings
        }
 public static void Run()
 {
     // ExStart:ConvertToTIFF
     // The path to the documents directory.
     string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Images();
     // Create PdfConverter object and bind input PDF file
     PdfConverter pdfConverter = new PdfConverter();           
     // Bind the source PDF file
     pdfConverter.BindPdf(dataDir+ "ConvertToTIFF-Settings.pdf");
     // Start the conversion process
     pdfConverter.DoConvert();            
     // Convert to TIFF image
     pdfConverter.SaveAsTIFF(dataDir+ "output_out.tif");
     // Close Converter object
     pdfConverter.Close();
     // ExEnd:ConvertToTIFF
 }
Exemple #3
0
        public static void Run()
        {
            // ExStart:ConvertToTIFF
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Images();
            // Create PdfConverter object and bind input PDF file
            PdfConverter pdfConverter = new PdfConverter();

            // Bind the source PDF file
            pdfConverter.BindPdf(dataDir + "ConvertToTIFF-Settings.pdf");
            // Start the conversion process
            pdfConverter.DoConvert();
            // Convert to TIFF image
            pdfConverter.SaveAsTIFF(dataDir + "output_out.tif");
            // Close Converter object
            pdfConverter.Close();
            // ExEnd:ConvertToTIFF
        }
        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                      
        }
        public static void Main()
        {
            // The path to the documents directory.
            string dataDir = Path.GetFullPath("../../../Data/");
            //create PdfConverter object
            PdfConverter objConverter = new PdfConverter();

            //bind input pdf file
            objConverter.BindPdf(dataDir+ "input.pdf");

            //initialize the converting process
            objConverter.DoConvert();

            //save pdf as tiff image
            objConverter.SaveAsTIFF(dataDir+ "output.tif");

            //close the PdfConverter object
            objConverter.Close();
        }
        public static void Main()
        {
            // The path to the documents directory.
            string dataDir = Path.GetFullPath("../../../Data/");
            //create PdfConverter object
            PdfConverter objConverter = new PdfConverter();

            //bind input pdf file
            objConverter.BindPdf(dataDir + "input.pdf");

            //initialize the converting process
            objConverter.DoConvert();

            //save pdf as tiff image
            objConverter.SaveAsTIFF(dataDir + "output.tif");

            //close the PdfConverter object
            objConverter.Close();
        }
        public static void Run()
        {
            // ExStart:PDFToTIFFConversion
            // 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.Resolution = new Aspose.Pdf.Devices.Resolution(300);
            pdfConverter.BindPdf(dataDir + "inFile.pdf");
            pdfConverter.DoConvert();
            // Create TiffSettings object and set ColorDepth
            TiffSettings tiffSettings = new TiffSettings();
            tiffSettings.Depth = ColorDepth.Format1bpp;
            // Convert to TIFF image
            pdfConverter.SaveAsTIFF(dataDir + "PDFToTIFFConversion_out.tif", 300, 300, tiffSettings);
            pdfConverter.Close();
            // ExEnd:PDFToTIFFConversion                      
        }
        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
        }
        public static void Run()
        {
            // ExStart:PDFToTIFFConversion
            // 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.Resolution = new Aspose.Pdf.Devices.Resolution(300);
            pdfConverter.BindPdf(dataDir + "inFile.pdf");
            pdfConverter.DoConvert();
            // Create TiffSettings object and set ColorDepth
            TiffSettings tiffSettings = new TiffSettings();

            tiffSettings.Depth = ColorDepth.Format1bpp;
            // Convert to TIFF image
            pdfConverter.SaveAsTIFF(dataDir + "PDFToTIFFConversion_out.tif", 300, 300, tiffSettings);
            pdfConverter.Close();
            // ExEnd:PDFToTIFFConversion
        }
 public static void Main()
 {
     // The path to the documents directory.
     string dataDir = Path.GetFullPath("../../../Data/");
     //create PdfConverter object and bind input PDF file
     PdfConverter pdfConverter = new PdfConverter();
     // create Resolution object with 300 as an argument
     Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(300);
     // specify the resolution value for PdfConverter object
     pdfConverter.Resolution = resolution;
     // bind the source PDF file
     pdfConverter.BindPdf(dataDir+ "input.pdf");
     // start the conversion process
     pdfConverter.DoConvert();
     //create TiffSettings object and set ColorDepth
     TiffSettings tiffSettings = new TiffSettings();
     tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Format1bpp;
     //convert to TIFF image
     pdfConverter.SaveAsTIFF(dataDir+ "output.tif", 300, 300, tiffSettings);
     // close Converter object
     pdfConverter.Close();
 }
 public static void Run()
 {
     // ExStart:ConvertToTIFFSettings
     // The path to the documents directory.
     string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Images();
     // Create PdfConverter object and bind input PDF file
     PdfConverter pdfConverter = new PdfConverter();
     // Create Resolution object with 300 as an argument
     Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(300);
     // Specify the resolution value for PdfConverter object
     pdfConverter.Resolution = resolution;
     // Bind the source PDF file
     pdfConverter.BindPdf(dataDir+ "ConvertToTIFF-Settings.pdf");
     // Start the conversion process
     pdfConverter.DoConvert();
     // Create TiffSettings object and set ColorDepth
     TiffSettings tiffSettings = new TiffSettings();
     tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Format1bpp;
     // Convert to TIFF image
     pdfConverter.SaveAsTIFF(dataDir+ "output_out.tif", 300, 300, tiffSettings);
     // Close Converter object
     pdfConverter.Close();
     // ExEnd:ConvertToTIFFSettings
 }
        public static void Main()
        {
            // The path to the documents directory.
            string dataDir = Path.GetFullPath("../../../Data/");
            //create PdfConverter object and bind input PDF file
            PdfConverter pdfConverter = new PdfConverter();

            // create Resolution object with 300 as an argument
            Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(300);
            // specify the resolution value for PdfConverter object
            pdfConverter.Resolution = resolution;
            // bind the source PDF file
            pdfConverter.BindPdf(dataDir + "input.pdf");
            // start the conversion process
            pdfConverter.DoConvert();
            //create TiffSettings object and set ColorDepth
            TiffSettings tiffSettings = new TiffSettings();

            tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Format1bpp;
            //convert to TIFF image
            pdfConverter.SaveAsTIFF(dataDir + "output.tif", 300, 300, tiffSettings);
            // close Converter object
            pdfConverter.Close();
        }