PdfToImageConverterConvertToThumbnails(String, Int32, Int32) Method |
Converts the PDF pages from the specified PDF file to thumbnails: images that fit in a box of the specified size,
keeping the aspect ratio of each page.
Namespace: ExpertPdfAssembly: eppdftoimage (in eppdftoimage.dll) Version: 10.0
Syntaxpublic Image[] ConvertToThumbnails(
string pdfFilePath,
int maxWidth,
int maxHeight
)
Public Function ConvertToThumbnails (
pdfFilePath As String,
maxWidth As Integer,
maxHeight As Integer
) As Image()
Parameters
- pdfFilePath String
- The PDF file from where the pages will be converted.
- maxWidth Int32
- The maximum width of a thumbnail in pixels. 0 means that only the height is limited.
- maxHeight Int32
- The maximum height of a thumbnail in pixels. 0 means that only the width is limited.
Return Value
ImageOne thumbnail for each converted page. A thumbnail is as large as the box allows: its width is
maxWidth or its height is
maxHeight.
RemarksThe converted pages are given by the StartPageNumber and EndPageNumber properties. The Resolution
property is not used: each page is rendered at the resolution its thumbnail needs.
See Also