string inputFilePath = "InputFile.pdf";
string outputFolderPath = "OutputFold";
string outputFileName = "OutputFile.docx";
// Initialize conversion instance.
CPDFConverterWord converter = CPDFConvertFactroy.CreateConverter(CPDFConvertType.CPDFConvertTypeWord,inputFilePath) as CPDFConverterWord;
// Set conversion options.
CPDFConvertWordOptions wordOptions = new CPDFConvertWordOptions();
wordOptions.IsAllowOCR = false;
wordOptions.IsContainAnnotations = true;
wordOptions.IsContainImages = true;
wordOptions.LayoutOpts = LayoutOptions.RetainPageLayout;
int pageCount = converter.GetPagesCount();
int[] pageArray = new int[pageCount];
for (int i = 0; i < pageArray.Length; i++)
{
pageArray[i] = i + 1;
}
// Convert PDF to Word.
ConvertError error = ConvertError.ERR_UNKNOWN;
converter.Convert(outputFolderPath, ref outputFileName, wordOptions, pageArray, ref error, getPorgress);
Fast and accurate rendering ensures instantaneous access to PDF content.
Works across multiple platforms such as Windows, Mac, Linux, Android, and iOS.
Seamless integration with fast setup allows developers to be up and running in minutes.
Our professional engineers are available via email or instant chat to assist with your needs.