Hi,
I am converting excel to PDF . In the PDF it is not taking the zoom which I put manually. Please find the attached excel and PDF . Below is the code I am using .
Worksheet sheet = workbook.getWorksheets().get(0);
PageSetup pageSetup = sheet.getPageSetup();
//Setting the orientation to Portrait
pageSetup.setOrientation(PageOrientationType.PORTRAIT);
pageSetup.setLeftMargin(HALF);
pageSetup.setRightMargin(HALF);
pageSetup.setTopMargin(ONE);
pageSetup.setZoom(200);
//Setting the printing order of the pages to over then down
pageSetup.setOrder(PrintOrderType.OVER_THEN_DOWN);
pageSetup.setFitToPagesTall(0);
if(noOfColumns>8)
{
pageSetup.setFitToPagesWide(noOfColumns/8);
}
sheet.autoFitRows();