Hi Aspose Team,
We are facing an issue with file conversion on Amazon Linux 2 (EC2).
Our PPT/PPTX → PDF and XLS/XLSX → PDF conversions are not working.
No exceptions are thrown, but the PDF output is either not created or corrupted/blank.
The same code and files work perfectly on Windows.
Environment Details
<PackageReference Include="Aspose.Slides.NET" Version="21.6.0" />
<PackageReference Include="Aspose.Cells" Version="21.6.0" />
.NET Core version: 3.1
Operating System: Amazon Linux 2 (EC2)
License: Not using a license (evaluation mode)
Fonts: Arial.ttf included in project path (ProductionServicev2/Fonts)
Issue Summary
On Amazon Linux 2:
PPT and XLS files fail to convert to PDF.
PDF is not generated or is corrupted/blank.
On Windows:
All conversions (Word, Text, PPT, Excel) work fine.
Code Example (Aspose.Slides)
private async Task<ConversionResult> ConvertToPdf(string inputFilePath, string outputPath)
{
try
{
using (Presentation presentation = new Presentation(inputFilePath))
{
PdfOptions pdfOptions = new PdfOptions
{
JpegQuality = 100,
TextCompression = PdfTextCompression.None
};
presentation.Save(outputPath, Aspose.Slides.Export.SaveFormat.Pdf, pdfOptions);
}
return ConversionResult.Successful(outputPath);
}
catch (Exception ex)
{
return ConversionResult.Failed(ex.Message);
}
}
Questions
Is Aspose.Slides/Cells 21.6.0 compatible with .NET Core 3.1 on Amazon Linux 2?
Are there any required dependencies (e.g., libgdiplus, fontconfig, or specific fonts) for file conversion on Linux?
Does Aspose need special configuration for headless Linux environments?
Would upgrading to a newer Aspose version help fix this issue?
Additional Info
Thanks for your help and guidance.
Best regards,
Ragu