Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Sat Jul 15, 2023 7:24 am

I am using spire.xls.free: 5.1.0 to convert Excel to PDF, and the local idea tool debugging can export normally; However, the exported file to the Linux environment is 0 bytes; The version of jdk is consistent with 1.8;
I have checked all the logs and there are no abnormal prompts

Code: Select all
        //将文件转换为PDF
        Workbook wb = new Workbook();
        //引入Excel文件
        wb.loadFromStream(inputStream);
        wb.getConverterSetting().setSheetFitToPage(true);
        wb.setWriteProtectionPassword(password);
        wb.setOpenPassword(password);
        wb.saveToFile(outputFilePath, FileFormat.PDF);

jingjun.zhang
 
Posts: 1
Joined: Sat Jul 15, 2023 1:33 am

Mon Jul 17, 2023 3:31 am

Hello,

Thanks for your inquiry.
I simulated an Excel file and did an initial test, but did not reproduce the issue using both the commercial and free versions. We recommend that you first test with the latest commercial version(Spire.XLS for Java Version:13.6.5). If the issue still exists after testing, in order to help us investigate your issue quickly and effectively, please provide the following information for our reference. You could send them to us via email ([email protected]). Thanks in advance.
1) Your sample Excel file .
2) your Linux system information, such as Ubuntu-20.04.3.

Sincerely,
Wenly
E-iceblue support team
User avatar

Wenly.Zhang
 
Posts: 149
Joined: Tue May 16, 2023 2:19 am

Return to Spire.XLS