While we appreciate comments from our users, please follow our posting guidelines. Have you tried the Cyotek Forums for support from Cyotek and the community?

Styling with Markdown is supported

Original Comment



# Reply

I'm trying to convert a PDF to a PNG with a fixed size in pixels. My problem is that (no matter what I do) the images are always generated with the size 612 x 792 pixels (the default papersize = letter)? I set the TrimMode to PaperSize and I've tried A4, A3 and A0. My code:

var converter = new Pdf2Image(Document.FullName, new Pdf2ImageSettings { ImageFormat = Cyotek.GhostScript.ImageFormat.Png24, GridFitMode = GridFitMode.Topological, TrimMode = PdfTrimMode.PaperSize, PaperSize = PaperSize.A0 });