Once you install Cloudmersive Private Cloud, if you are using the Document Conversion APIs, you may wish to configure whether virus scanning is performed on input documents. By default all input documents are virus scanned, and this is our recommended configuration. However, in some cases, if the documents are highly trusted, you may wish to selectively disable virus scanning on the documents. To do this, you simply configure the client as described below.
To configure the .NET Framework client, simply add this line of code into your application, setting to true to disable virus scanning for this operation, setting to false or omitting to enable virus scanning for this operation (default):
Configuration.Default.AddDefaultHeader("disableVirusScan", "true");
To configure the .NET Core client, simply add this line of code into your application, setting to true to disable virus scanning for this operation, setting to false or omitting to enable virus scanning for this operation (default):
Configuration.Default.AddDefaultHeader("disableVirusScan", "true");
To configure the Python client, simply add this line of code into your application, setting to true to disable virus scanning for this operation, setting to false or omitting to enable virus scanning for this operation (default):
api_instance.api_client.set_default_header("disableVirusScan", "true")
To configure the Ruby client, simply add this line of code into your application, setting to true to disable virus scanning for this operation, setting to false or omitting to enable virus scanning for this operation (default):
CloudmersiveConvertApiClient.default_headers.push({'disableVirusScan', 'true'})
To configure the Java client, simply add this line of code into your application, setting to true to disable virus scanning for this operation, setting to false or omitting to enable virus scanning for this operation (default):
defaultClient.addDefaultHeader("disableVirusScan", "true");
To configure the Node.js client, simply add this line of code into your application, setting to true to disable virus scanning for this operation, setting to false or omitting to enable virus scanning for this operation (default):
defaultClient.defaultHeaders = {"disableVirusScan": "true"};
To configure the PHP client, simply modify this line of code in your application, setting to true to disable virus scanning for this operation, setting to false or omitting to enable virus scanning for this operation (default):
$apiInstance = new Swagger\Client\Api\CompareDocumentApi( new GuzzleHttp\Client( 'defaults' => [ 'headers' => ['disableVirusScan' => 'true'] ]), $config );