Hello,
We are having some problems with cell indent level. I’ve attached a test workbook that contains cells having Indent Level to the left/right and the output as image and pdf. As you can observe the indentation is not like in the Excel workbook.
Here is the code used to render the workbook to PDF/PNG:
var workbook = new Workbook(@“Book1.xlsx”);
workbook.Save(@“Book1.pdf”, SaveFormat.Pdf); //save as PDF<span style="color:blue;">var</span> imageOptions = <span style="color:blue;">new</span> <span style="color:#2b91af;">ImageOrPrintOptions</span> { Quality = 100, VerticalResolution = 200, HorizontalResolution = 200, PrintingPage = <span style="color:#2b91af;">PrintingPageType</span>.IgnoreBlank, ImageFormat = <span style="color:#2b91af;">ImageFormat</span>.Png, OnePagePerSheet = <span style="color:blue;">true</span> }; <span style="color:blue;">var</span> worksheet = workbook.Worksheets[0]; worksheet.PageSetup.PrintArea = <span style="color:blue;">string</span>.Format(<span style="color:#a31515;">"A1:D6"</span>); worksheet.PageSetup.TopMargin = 0; worksheet.PageSetup.LeftMargin = 0; worksheet.PageSetup.RightMargin = 0; worksheet.PageSetup.BottomMargin = 0; <span style="color:blue;">var</span> sheetRender = <span style="color:blue;">new</span> <span style="color:#2b91af;">SheetRender</span>(worksheet, imageOptions); sheetRender.ToImage(0, <span style="color:#a31515;">@"Book1.png"</span>); //save as PNG image<br><br><br>Thank you,<br>Bogdan Rusu<br>IBM Romania.<br></pre><br>