get page with custom dimensions

Jul 31, 2014 at 2:56 PM
Is there any ability to set custom page width and height when exporting pdf page to an image?
Now I can only set custom dpi for x and y but it not affects on page size. I need to get images with at least 3000px width
Aug 1, 2014 at 10:31 AM
anybody here?
Coordinator
Aug 1, 2014 at 10:50 AM
Edited Aug 1, 2014 at 10:51 AM
Hi,

For this, you should use one of the image devices. Take a look at this example: https://github.com/jhabjan/Ghostscript.NET/blob/master/Ghostscript.NET.Samples/Samples/DeviceUsageSample.cs

To change page size, you can add custom switches like 'dev.CustomSwitches.Add("-dSomeSwitch");'.
You can find answer which switches to use here: http://stackoverflow.com/questions/10091655/ghostscript-pdf-to-png-output-is-always-595x842-a4