PdfDocumentRasterizeToImageFiles Method (String, ImageType, Int32)

Renders the PDF and exports image Files in convenient formats. 1 image file is created for each page.

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[] RasterizeToImageFiles(
	string FileNamePattern,
	ImageType ImageFileType = ImageType.Default,
	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_*.png
ImageFileType (Optional)
Type: IronPdfImageType
Type of the image file. If not specified, a best guess will be taken from the FileNamePattern file extension
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