Advertisement
Guest User

Untitled

a guest
Apr 7th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1.     GhostscriptPngDevice dev = new GhostscriptPngDevice(GhostscriptPngDeviceType.Png16m);
  2.     dev.GraphicsAlphaBits = GhostscriptImageDeviceAlphaBits.V_4;
  3.     dev.TextAlphaBits = GhostscriptImageDeviceAlphaBits.V_4;
  4.     dev.ResolutionXY = new GhostscriptImageDeviceResolution(96, 96);
  5.     dev.InputFiles.Add(@"E:\gss_test\indispensable.pdf");
  6.     dev.Pdf.FirstPage = 2;
  7.     dev.Pdf.LastPage = 4;
  8.     dev.CustomSwitches.Add("-g<width in pixels>x<height in pixels>");
  9.     dev.CustomSwitches.Add("-dFitPage");
  10.     dev.OutputPath = @"E:\gss_test\output\indispensable_color_page_%03d.png";
  11.     dev.Process();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement