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

Basically what the subject says. I am displaying a list of PDF files in the app. The names are nonsensical and don’t mean anything to anyone, however, if I showed a thumbnail of the 1st page, it would actually guide the person to the right file.

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.


1 Like