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
        }
Ejemplo n.º 2
0
 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
 }
Ejemplo n.º 4
0
        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();
        }