Here’s my question. I would like to convert a PDF document to XLS format in PDF.NET. I have used the code:
Hi David,
We are sorry for the inconvenience caused. While testing the scenario with the latest version of Aspose.Pdf for .NET 9.2.1, we have managed to reproduce the reported issue and logged it in our bug tracking system as PDFNEWNET-36948 for further investigation and resolution. Moreover, I am afraid there is no workaround at the moment. We will notify you via this thread as soon as it is resolved.
Please feel free to contact us for any further assistance.
Best Regards,
Hi David,
private void DoWork()<o:p></o:p>
{
Document doc = new Document(@"TestPDF.pdf");
doc.Convert(CallBackGetHocr);
doc.Save("output.xls", new ExcelSaveOptions());
}
private string CallBackGetHocr(System.Drawing.Image img)
{
string dir = @"c:\tmp\";
img.Save(dir + "test.jpg");
ProcessStartInfo info = new ProcessStartInfo(@"tesseract.exe");
info.WindowStyle = ProcessWindowStyle.Hidden;
info.Arguments = @"c:\tmp\test.jpg c:\tmp\out hocr";
Process p = new Process();
p.StartInfo = info;
p.Start();
p.WaitForExit();
StreamReader streamReader = new StreamReader(@"c:\tmp\out.html");
string text = streamReader.ReadToEnd();
streamReader.Close();
return text;
}
Please feel free to contact us for any further assistance.
Best Regards,
The issues you have found earlier (filed as PDFNEWNET-36948) have been fixed in Aspose.Pdf for .NET 9.4.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.