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);
快速而準確的渲染,確保即時訪問 PDF 內容。
支持多平台,如 MacOS、Linux、Android 和 iOS。
無縫集成和快速設置讓開發者幾分鐘內即可上手。
我們的專業工程師通過電子郵件或即時聊天隨時為您提供幫助。