Is it possible to create a thumbnail of the 1st page of the PDF?

Hi Robert,

Here is how you can create a thumbnail from the first PDF page:

using var document = PdfDocument.Load("Input.pdf");

var imageOptions = new ImageSaveOptions(ImageSaveFormat.Jpeg);
imageOptions.Width = 200;

document.Save("Output.jpg", imageOptions);

I hope this helps.

Regards,
Mario

1 Like