@alexey.noskov Getting an error while converting a pdf document into word document. document and code attached below. how to resolve it. input.pdf (135.5 KB)
string filePath=“input.pdf”;
string newFilePath = Regex.Replace(filePath, @"(?i)[.]pdf($)(?-i)", “.docx”);
using (var doc1 = new AsposePdf.Document(filePath))
{
AsposePdf.DocSaveOptions oOptions = new AsposePdf.DocSaveOptions();
oOptions.Format = AsposePdf.DocSaveOptions.DocFormat.DocX;
oOptions.Mode = Aspose.Pdf.DocSaveOptions.RecognitionMode.EnhancedFlow;
oOptions.RelativeHorizontalProximity = 3.5f;
oOptions.RecognizeBullets = true;
doc1.Save(newFilePath, oOptions);
}