I'm using GhostScriptSharp to generate images from PDF documents. It works for single pages, but what I'm after is getting it to generate one image from the whole document.
Here's my code:
GhostscriptWrapper.GenerateOutput(sourcePdfFilePath, destinationPngFilePath,
new GhostscriptSettings
{
Device = GhostscriptDevices.pngalpha,
Page = new GhostscriptPages
{
AllPages = true
},
Resolution = new Size
{
Height = 72,
Width = 72
},
Size = new GhostscriptPageSize
{
Native = GhostscriptPageSizes.a4
}
}
);