Hi Amjad,
Hi,
Thanks for sharing details.
After an initial test, I am able to reproduce the issue as you mentioned. I found the space between BEGR?NSANDE and ?TG?RDER gets removed at a few places in the output PDF file. I can see this issue in the output PDF, page number: 2, 3 and 4. I used the original template XLS file to convert to PDF file. See the screenshot for reference:
(there is similar issue on 3rd and 4th page as well)
e.g
Sample code:
Workbook lWorkbook = new Workbook(“3S-AOP-4_4.xls”);
lWorkbook.save(“f:\files\out13S-AOP-4_4.pdf”);
I have logged a ticket with an id “CELLSJAVA-42100” for your issue. We will look into the issue as well.
Once we have an update on it, we will let you know here.
Thank you.
Hi Amjad,
Please take up remaining open bugs under AjeshEMC ES a/c.
Thanks.
Hi,
- CELLSJAVA-42100 - The space between certain characters gets removed at a few places in the output PDF file
- CELLSJAVA-42098 - Extra pages are added due to some pages are not rendered completely in one PDF page
Hi,
CELLSJAVA-42098:
Well, there are some rows with autofit height in the source Excel file and when opening it in Microsoft Excel, the height of these rows are
recalculated, so we should be using Worksheet.AutoFitRows(true) to recalculate the height of
these rows.
Please try our latest version/fix v16.11.10 with the following sample code, it should fix your issue:
e.g
Sample code:
Workbook wb = new Workbook(srcFile);
for (int i = 0; i < wb.getWorksheets().getCount(); i++)
{
Worksheet sheet = wb.getWorksheets().get(i);
sheet.autoFitRows(true);
}
wb.save(outFile.pdf);
Thank you.
Hi Amjad,
Hi,
Hi Amjad,
Hi,
Hi,
I have discussed your issue with the concerned developer of product team. Well, the following sample code can be used for all the files:
e.g
Sample code:
for (int i = 0; i < wb.getWorksheets().getCount(); i++)
{
Worksheet sheet = wb.getWorksheets().get(i);
sheet.autoFitRows(true);
}
it will only recalculate the height of the rows with autofit height. The height of the rows which are custom height will not be changed/recalculated. There are cached height in the files for autofit height rows. If the above code is not called, we will use the cached height for autofit height rows, but it may not be correct. If the above code is called, we will use the recalculated height for autofit height rows, but it will cost some more time.
Thank you.
The issues you have found earlier (filed as CELLSJAVA-42100;CELLSJAVA-42053;CELLSJAVA-42052;CELLSJAVA-42098;CELLSJAVA-42054) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hi Amjad,
Hi,
Well, I have tested your case/scenario using your XLSM file with v16.12.x, it works fine. You got to use code segment (while converting your Excel file to PDF) recommend by us in our previous replies. See the sample code here and find attached the output PDF file for your reference:
e.g
Sample code:
Workbook lWorkbook = new Workbook(“3S-AOP-4_4.xlsm”);
for (int i = 0; i < lWorkbook.getWorksheets().getCount(); i++)
{
Worksheet sheet = lWorkbook.getWorksheets().get(i);
sheet.autoFitRows(true);
}
lWorkbook.save(“f:\files\out13S-AOP-4_4.pdf”);
Thank you.
- CELLSJAVA-42079 - Un-even lines' thinkness at intersections while rendering spreadsheet with diagram to PDF
The issues you have found earlier (filed as CELLSJAVA-42079) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.