ghostscriptsharp
ghostscriptsharp copied to clipboard
I want to generate the pdf to image, but I don't know what's the image size, how should I do
Hi I'm trying to generate the first pdf document to an image. According to the method, I need to specify the with and height, but I don't know that, how should I do?
public static void GeneratePageThumb(string inputPath, string outputPath, int page, int width, int height) Member of GhostscriptSharp.GhostscriptWrapper
I know that this is a very late answer but the sizes you pass in indicate the size of the thumbnail you want to output if I am not mistaken. I am using GhostScriptSharp and PdfSharp in tandem so calculate the width and heights for each PDF page based on the page being processed (usually 20% of the current size).
Cheers