←Select platform

ConvertToRasterFile Method

Summary

Converts the stream input to the desired RasterImageFormat according to the LoadDocumentOptions class.

Syntax
C#
[IteratorStateMachineAttribute(System.Type)] 
public IEnumerable<string> ConvertToRasterFile( 
   Stream input, 
   LoadDocumentOptions documentOptions, 
   RasterImageFormat outputFormat, 
   string workingDirectory 
) 

Parameters

input

Stream input containing the image or document to convert.

documentOptions

The document options to use when loading the input.

outputFormat

The desired output format to convert the input to.

workingDirectory

The path to the directory where temporary work is to be done. If null is passed, the directory will default to the current system's temporary folder.

Return Value

Returns an IEnumerable string.

Remarks

The returned IEnumerable string contains either 1 string if the output format is multipage or multiple strings if the input was multipage and the output format selected is single-page.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.CloudServices Assembly