Thu Oct 31, 2024 9:22 am
Hi Jon,
Hope you are doing well. I’m writing to tell you the update about your issue.
By analyzing the internal data of your document, we found that there is no row height data for the 6th row. For this situation, our product internally will use "DefaultRowHeight" as its row height, which can only display one line of text, so the content of generated PDF is incorrect.
We have verified that if your documen is resaved in Microsoft Excel, the generated PDF is consistent with the source file.
Meanwhile, you can also invoke the method “AutoFitRow” to autofit the row height to display all the text, as shown below.
Workbook wb = new Workbook();
wb.LoadFromFile("original.xlsx");
//Get default row height
//double defaultRowHeight = wb.Worksheets[0].DefaultRowHeight;
//Autofit row height
wb.Worksheets[0].AutoFitRow(6);
wb.SaveToFile("out.pdf", FileFormat.PDF);
Sincerely,
E-iceblue support team