Windows
ComPDFKit Conversion SDK
Guides

Convert PDF Documents to PPT Documents

 

string resPath = "***";
string inputFilePath = "***";
string outputFolderPath = "***";
string outputFileName = "***";

CPDFConverter.Init(resPath);
CPDFConverterPPT converter = new CPDFConverterPPT(inputFilePath);

int pageCount = converter.GetPagesCount();
int[] pageArray = new int[pageCount];
for (int i = 0; i < pageArray.Length; i++)
{
    pageArray[i] = i + 1;
}

CPDFConverterError error = CPDFConverterError.ErrorUnknown;
converter.Convert(outputFolderPath,ref outputFileName, pageArray, ref error, getPorgress);