// Create a new workbook Workbook workbook = new Workbook(); workbook.open(this.getResourceStream("xlsx/RepeatTails.xlsx")); IWorksheet worksheet = workbook.getWorksheets().get(0); // Repeat the column "I" at the right of each page when saving pdf. worksheet.getPageSetup().setPrintTailColumns("$I:$I"); // Save to an excel file workbook.save("ConfigPrintTailColumns.xlsx");