Click or drag to resize

PdfDocumentRasterizeToImageFiles Method (String, ImageType)

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: 4.4.9.15720 (4.4.9.0)
Syntax
public string[] RasterizeToImageFiles(
	string FileNamePattern,
	ImageType ImageFileType = ImageType.Default
)

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

Return Value

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