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
การผสานรวมที่ราบรื่นและการตั้งค่าที่รวดเร็วช่วยให้นักพัฒนาสามารถเริ่มใช้งานได้ในไม่กี่นาที
วิศวกรมืออาชีพของเราพร้อมให้ความช่วยเหลือทางอีเมลหรือแชททันที