Converter.ConvertToImages

Converter ConvertToImages method. Converts the input file pages to images.

ConvertToImages(string, ImageSaveOptions)

Converts the input file pages to images.

public static Stream[] ConvertToImages(string inputFile, ImageSaveOptions saveOptions)
ParameterTypeDescription
inputFileStringThe input file name.
saveOptionsImageSaveOptionsThe output’s image save options.

Return Value

Returns array of image streams. The streams should be disposed by the end user.

Examples

Demonstrates how to convert a DOCX document to images and save the output to an array of streams.

Stream[] pages = Converter.ConvertToImages(MyDir + "Simple.docx", new ImageSaveOptions(SaveFormat.Png));

See Also


ConvertToImages(Stream, ImageSaveOptions)

Converts the input stream pages to images.

public static Stream[] ConvertToImages(Stream inputStream, ImageSaveOptions saveOptions)
ParameterTypeDescription
inputStreamStreamThe input stream.
saveOptionsImageSaveOptionsThe output’s image save options.

Return Value

Returns array of image streams. The streams should be disposed by the end user.

See Also