No Text is appearing after converting PDF to Excel on Linux

Hi Team,

I am facing issues while converting PDF to Excel on Linux. When I run below code snippet, it converts PDF into excel successfully without any error. But when I open the excel document, only formattings are appearing but there is no text.

Same code snippet is running absolutely fine on windows machine with expected output. But not on Linux server. Can you please help or suggest if I’m missing any references here.

I’m using Aspose.PDF (23.1.1) licensed version.

Document wbPDF = new Document(stream);
ExcelSaveOptions excelsave = new ExcelSaveOptions { InsertBlankColumnAtFirst = false, MinimizeTheNumberOfWorksheets = true, Format = Aspose.Pdf.ExcelSaveOptions.ExcelFormat.XLSX };
using (MemoryStream excelStream = new MemoryStream())
{
wbPDF.Save(excelStream, excelsave);
}

@Deepak_Grover
Thank you for contacting support.
Can you attach your file so that we can test the problem?

@sergey.mikhaylov - Attaching the file for your reference. Please do the needful ASAP.Sample.pdf (14.0 KB)

@Deepak_Grover
Thanks! We are checking it and will get back to you shortly.

@Deepak_Grover
I investigated the problem and found the reason for this behavior. There is really no text in the attached pdf file. The text displayed on the pdf page does not consist of characters, but is drawn by vector graphics operators.The converter to Excel format works correctly.

Hi @sergey.mikhaylov, thanks for the update. But my concern is when I convert the pdf file in windows, I get the expected output. But in case of Linux, behavior is not same.

I understand that there is no text in pdf file but it has vector graphics operators. So, is there any way to convert this pdf file into Excel with expected output. Or any additional references to add in Linux environment to achieve this. Looking forward to hear from you.

@Deepak_Grover
I tested on Windows and got an empty Excel file. Can you attach the received files on Windows and Linux? Or a screenshot - what is the difference? And more detailed information about the OS versions used and Aspose.Pdf versions (msi or nuget, framework versions, etc.)

Hi @sergey.mikhaylov, Attaching the generated files from Windows and Linux for your reference.
And I am using .Net6.0 and Aspose.Pdf (23.1.1) licensed version. Kindly have a look at the attached files and share your observations.

Sample.zip (38.5 KB)

@Deepak_Grover
I haven’t been able to reproduce the problem yet.
I will contact the developer who deals with this area and try to figure it out.