What replaces WordConverter.AbortConversion ?

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Converter for .NET (v3)  /  Re: What replaces WordConverter.AbortConversion ?

DynamicPDF Converter for .NET (v3) Forum

In a piece of code with an old version of DynamicPdfConverter, we used :

var converter = new WordConverter(filename, options)
converter.ConvertAsync(newFilePath);
if (we're converting a corrupt file or a 1 GB file and the converter is not done after 10 seconds)
     converter.AbortConversion();

I downloaded the latest version of DynamicPdfConverter, and the AbortConversion() method doesn't exist anymore.

What should I do to get a similar behaviour ?

Thanks !

Yves
Posted by a ceTe Software moderator
Hi,

Yes, the AbortConversion() method is removed from the latest version.  You can achieve the same using the CancelToken property. The ConvertAsync method returns a Task and you can cancel that task after a specific amount of time as per your business needs. Please refer to the documentation on CancelToken here.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 7:34 AM.