Share via


ISPConversionProcessor.PreProcess Method

Provides customization of file content before it is sent to the document converter.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Function PreProcess ( _
    request As SPExecutingConversionRequest, _
    fileData As Byte() _
) As Byte()
'Usage
Dim instance As ISPConversionProcessor
Dim request As SPExecutingConversionRequest
Dim fileData As Byte()
Dim returnValue As Byte()

returnValue = instance.PreProcess(request, _
    fileData)
byte[] PreProcess(
    SPExecutingConversionRequest request,
    byte[] fileData
)

Parameters

  • fileData
    Type: []

    A Byte array that contains the contents of the file that is about to be converted. The PreProcess method can be used to customize the file content before it is sent to the converter.

Return Value

Type: []
A Byte array that contains the file content.

See Also

Reference

ISPConversionProcessor Interface

ISPConversionProcessor Members

Microsoft.SharePoint Namespace