Get Conversion Progress
ComPDF Conversion SDK obtains the conversion progress through per-call callback parameters. The following example demonstrates how to get the conversion progress while performing a PDF to Word task.
objective-c
WordOptions *options = [[WordOptions alloc] init];
[CPDFConversion startPDFToWord:@"input.pdf"
password:@"password"
outputPath:@"path/output.docx"
options:options
progress:^(int currentPage, int totalPage) {
NSLog(@"progress: %d / %d", currentPage, totalPage);
}
cancel:nil];