Click or drag to resize

PdfDocumentToJpegImages Method (String, Int32)

Renders the pages of the PDF as JPEG files and saves them to disk.

Specific image dimensions and page numbers may be given as optional parameters

FileNamePattern should normally contain an asterisk (*) character which will be substituted for the page numbers

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.3.2.0 (2020.3.2.0)
Syntax
public string[] ToJpegImages(
	string FileNamePattern,
	int DPI = 72
)

Parameters

FileNamePattern
Type: SystemString
A full or partial file path for the output files containing an asterisk. E.g. C:\images\pdf_page_*.jpg
DPI (Optional)
Type: SystemInt32
The desired resolution of the output Images.

Return Value

Type: String
An array of the file paths of the image files created.
See Also