Inheritance: GhostscriptImageDevice
Ejemplo n.º 1
0
        public static void Process(GhostscriptPngDeviceType pngDeviceType, string[] inputFiles, string outputPath, GhostscriptStdIO stdIO_callback)
        {
            GhostscriptPngDevice dev = new GhostscriptPngDevice(pngDeviceType);

            dev.InputFiles.AddRange(inputFiles);
            dev.OutputPath = outputPath;
            dev.Process(stdIO_callback);
        }
Ejemplo n.º 2
0
 private void Extract_Pdf_Pages_As_Png_And_Add_Watermark()
 {
     GhostscriptPngDevice dev = new GhostscriptPngDevice(GhostscriptPngDeviceType.Png16m);
     dev.GraphicsAlphaBits = GhostscriptImageDeviceAlphaBits.V_4;
     dev.TextAlphaBits = GhostscriptImageDeviceAlphaBits.V_4;
     dev.ResolutionXY = new GhostscriptImageDeviceResolution(96, 96);
     dev.InputFiles.Add(@"E:\gss_test\indispensable.pdf");
     dev.Pdf.FirstPage = 2;
     dev.Pdf.LastPage = 4;
     dev.PostScript = POSTSCRIPT_APPEND_WATERMARK;
     dev.OutputPath = @"E:\gss_test\output\indispensable_color_page_%03d.png";
     dev.Process();
 }
 public static void Process(GhostscriptPngDeviceType pngDeviceType, string[] inputFiles, string outputPath, GhostscriptStdIO stdIO_callback)
 {
     GhostscriptPngDevice dev = new GhostscriptPngDevice(pngDeviceType);
     dev.InputFiles.AddRange(inputFiles);
     dev.OutputPath = outputPath;
     dev.Process(stdIO_callback);
 }