Aspose.pdf some of file not converting and also converted files tables having mismatched format.
string newFilePath = Regex.Replace(filePath, @"(?i)[.]pdf($)(?-i)", ".docx");
Stream stream = new MemoryStream();
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.AddReturnToLineEnd = true;
oOptions.RelativeHorizontalProximity = 3.5f;
doc1.Save(newFilePath, oOptions);
}
@Jegankumar
Could you attach at least one of the files for check?
Coomon version_Source (1).pdf (128.4 KB)
Hi Sergei ,
Attached files for your perusual.
Regards,
Jegankumar S
Hi Team,
Any updates on the above query.
Hi @Jegankumar
Yes, I see that you have attached the file - I’ll take a look in two or three hours.
@Jegankumar
I have simplified the code to reproduce the error (for some reason, I even had to rename the file).
And with such code snippet, an exception is thrown.
var filePath = myDir + "12345.pdf";
var newFilePath = myDir + "12345.docx";
using (var doc1 = new Aspose.Pdf.Document(filePath))
{
Aspose.Pdf.DocSaveOptions oOptions = new Aspose.Pdf.DocSaveOptions();
oOptions.Format = Aspose.Pdf.DocSaveOptions.DocFormat.DocX;
oOptions.Mode = Aspose.Pdf.DocSaveOptions.RecognitionMode.EnhancedFlow;
oOptions.AddReturnToLineEnd = true;
oOptions.RelativeHorizontalProximity = 3.5f;
doc1.Save(newFilePath, oOptions);
}
On this occasion, I will create a task.
How close is it to what you are using, have you thrown any exceptions?
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFNET-53599
You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Hi team,
Is there any solutions for the above mentioned bug.
@Jegankumar
I will clarify
@Jegankumar
Nothing yet. As soon as there is any new information, I will let you know.
@Jegankumar
You can try through intermediate export to svg format.
actually i need to track tables and text difference betwwen files. so SVG will not be suitable.
I ll wait for the solution.
Hi Team ,
May i know the status of the following ticket
PDFNET-53599
Regards ,
Jegankumar S
@Jegankumar
Nothing yet. As soon as there is any new information, I will let you know.
Hi @sergei.shibanov,
May I know the status of the following ticket
PDFNET-53599
@vineeth.pv
Nothing yet. As soon as there is any new information, I will let you know.
The issues you have found earlier (filed as PDFNET-53599) have been fixed in Aspose.PDF for .NET 24.10.