Please see the attached document. When the workbook is rendered as a PNG from Aspose.Cells, a word is cut off (under D., 6., the word “occur.”). Also, the lines at the bottom (Employee / Trainee signature, ID, and Date) are misaligned. Is this a margin issue? How can we render these documents more faithfully?
Thanks for your posting and using Aspose.Cells for .NET.
We were able to replicate this issue using the latest version:
for .NET v126.96.36.199
with the following code.
We have logged this issue in our database. We will look into it and fix the issue. Once the issue is resolved or we have some other update for you, we will let you know asap.
This issue has been logged as CELLSNET-41106.
I have attached the output image for your reference and also highlighted the issue with red circle.
string filePath = @“F:\Shak-Data-RW\Downloads\Urine+hCG+Pregnancy+Initial+Training.xls”;
string path = filePath;
Workbook workbook = new Workbook(path);
Worksheet worksheet = workbook.Worksheets;
//Apply different Image / Print options.
Aspose.Cells.Rendering.ImageOrPrintOptions options = new Aspose.Cells.Rendering.ImageOrPrintOptions();
options.OnePagePerSheet = true;
SheetRender sr = new SheetRender(worksheet, options);
Bitmap bitmap = sr.ToImage(0);
bitmap.Save(path + “.out.png”, ImageFormat.Png);
Output Image (Issue is Highlighted):