ghostscriptsharp icon indicating copy to clipboard operation
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

Open astw opened this issue 11 years ago • 1 comments

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

astw avatar Sep 10 '14 22:09 astw

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

Lukejkw avatar Apr 21 '16 15:04 Lukejkw