←Select platform

CovertRedact(Stream,string,LoadDocumentOptions,RasterImageFormat,DocumentFormat) Method

Summary

Converts the input stream to the RasterImageFormat or DocumentFormat passed with the associated LoadDocumentOptions while redacting the words that match the provided regex pattern.

Syntax
C#
VB
C++
Public Function CovertRedact( 
   ByVal input As Stream, 
   ByVal pattern As String, 
   ByVal documentOptions As LoadDocumentOptions, 
   ByVal rasterImageFormat As RasterImageFormat, 
   ByVal documentFormat As DocumentFormat 
) As IList(Of String) 

Parameters

input

Input stream containing the Document to convert.

pattern

The Regex pattern to match the words to be redacted.

documentOptions

Document options for the conversion.

rasterImageFormat

The desired RasterImageFormat to convert the input to. If a DocumentFormat is desired, must be set to Unknown.

documentFormat

The desired DocumentFormat to convert the input to. If a RasterImageFormat is desired, must be set to User.

Return Value

Returns a List of strings containing the paths to the output documents.

Remarks

This method converts an input into either a RasterImageFormat or a DocumentFormat. If a DocumentFormat is used, the RasterImageFormat must be set to RasterImageFormat.Unknown. If a RasterImageFormat is desired, the DocumentFormat must be set to DocumentFormat.User.

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