We have an Excel file that has a cell at the very bottom that does not get picked up when converting the Excel file to PDF format using Aspose.Cells for Java. I’m not clear on why that last line is getting dropped.
The test input and output files are contained in the referenced ZIP file. The test Java program is
import com.aspose.cells.SaveFormat;
import com.aspose.cells.Workbook;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
public class AsposeCellsTest {
public void generate(File inputFile) {
try (InputStream licenseStream = getClass().getClassLoader().getResourceAsStream("Aspose.Cells.Java.lic")) {
com.aspose.cells.License license = new com.aspose.cells.License();
license.setLicense(licenseStream);
InputStream inputStream = new FileInputStream(inputFile);
Workbook workbook = new Workbook(inputStream);
FileOutputStream outputStream = new FileOutputStream("output.pdf");
workbook.save(outputStream, SaveFormat.PDF);
inputStream.close();
outputStream.close();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
public static void main(String[] args) {
new AsposeCellsTest().generate(new File(args[0]));
}
}
testfiles.zip (88.2 KB)