Skip to content
Guides

Convert PDF to PowerPoint

Overview

ComPDFKit Conversion SDK provides the function of converting PDF files to PowerPoint files and restoring the layout and format of the original document, which can meet the needs of users for the presentation and editing of document content in Microsoft PowerPoint.

Sample

This sample demonstrates how to convert from a PDF to PPTX file.

objective-c
// Get the path of the PDF file.
NSString *pdfPath = @"...";
// Get the path to the PPT file.
NSString *outputPath = @"...";

CPDFConvertPPTOptions *options = [[CPDFConvertPPTOptions alloc] init];
[options setIsAllowOCR:YES];
[options setIsContainImages:NO];
[options setIsContainOCRBgImage:NO];
[options setIsContainAnnotations:NO];
[options setLanguage:COCRLanguageEnglish];

CPDFConverterPPT *converter = [[CPDFConverterPPT alloc] initWithURL:[NSURL fileURLWithPath:pdfPath] password:nil];
[converter convertToFilePath:outputPath pageIndexs:nil options:nil];