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
What replaces WordConverter.AbortConversion ?
Re: What replaces WordConverter.AbortConversion ?
Support · Nov 14, 2023Hi,
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