We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Excel to pdf conversion does not preserve layout

Hi,

converting the attached document 4b45c7c16dd14b7cbf4c105847673a3b.zip (12.6 KB)
using this code (Aspose.Cells 21.9.0)

        var inputFile = new FileInfo("Documents/4b45c7c16dd14b7cbf4c105847673a3b.xlsx");
        using var input = inputFile.OpenRead();

        var workbook = new Workbook(input, new LoadOptions(LoadFormat.Auto));

        // "Periode: 15.2.2021" on page two instead of page one
        // "Unt.Gru" on page four instead of page three etc.
        workbook.Save("Out/ExcelWithDifferentLayout.pdf", new CellsPdfSaveOptions());

results in a pdf with 3 pages instead of 2.
The page breaks seem arbitrary.

Best regards,

@Horst,
We can not reproduce the issue and output is same as produced by MS Excel with 6 pages. Could you please share your output Pdf file. 4b45c7c16dd14b7cbf.pdf (51.7 KB)