Cancel Conversion Task
ComPDF Conversion SDK supports interrupting an ongoing conversion task at any time through the cancel callback passed to the conversion API. The following example demonstrates how to interrupt the current conversion task.
objective-c
__block BOOL shouldCancel = NO;
WordOptions *options = [[WordOptions alloc] init];
[CPDFConversion startPDFToWord:@"input.pdf"
password:@"password"
outputPath:@"path/output.docx"
options:options
progress:nil
cancel:^BOOL{
return shouldCancel;
}];