On this page
Guides
If you're interested in all of the features mentioned in the overview section, please go through our guides to quickly add PDF converting Word | Excel | PPT to your application. The following sections list some examples to show you how to add functionality to Apple apps using our ComPDFKit Conversion SDK API.
Instance
Related Callback Conversion Task for CPDFConverter Instance
objective-c
/**
* Called when a conversion operation begins.
*/
- (void)converter:(CPDFConverter *)converter didStartConvert:(NSError *)error;
/**
* Called when a conversion operation finishes.
*/
- (void)converter:(CPDFConverter *)converter didEndConvert:(NSError *)error;
/**
* Called when a conversion operation finishes working on a page in a document.
*/
- (void)converter:(CPDFConverter *)converter pageIndex:(NSUInteger)index pageCount:(NSUInteger)count;
Interrupt Conversion Task for CPDFConverter Instance
objective-c
[converter cancel];
Create the Corresponding Conversion Classes
We use the factory method to create the conversion classes. See the sample code below to create the corresponding conversion classes.
CPDFConverter * converter = [[CPDFConverterFactory createConvertoerWithURL:[NSURL fileURLWithPath:path] password:nil type:CPDFConvertTypeWord] autorelease];