Skip to content

Latest commit

 

History

History

MakePageThumbnail

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Make PDF page thumbnail in C# and VB.NET

This sample shows how to make a thumbnail of a PDF page in .NET using Docotic.Pdf library.

Use PdfDrawOptions.CreateFitSize method to set up drawing options. It will cause the page to be drawn as an image of the specified size. Then pass created PdfDrawOptions to PdfPage.Save method to save the thumbnail of the page to a stream or a file.

There are also PdfDrawOptions.CreateFitWidth and PdfDrawOptions.CreateFitHeight methods. These methods are useful when you need thumbnail images of specified width or height and have no requirements for the second dimension of thumbnail images.

See also