// 인쇄 설정
const printInfo = sheet.printInfo();
printInfo.showGridLine(false);
printInfo.showRowHeader(GC.Spread.Sheets.Print.PrintVisibilityType.hide);
printInfo.showColumnHeader(GC.Spread.Sheets.Print.PrintVisibilityType.hide);
printInfo.paperSize(
new GC.Spread.Sheets.Print.PaperSize(GC.Spread.Sheets.Print.PaperKind.A4)
);
// PDF로 저장 (FileSaver.js saveAs 사용)
spread.savePDF(
function(blob) {
saveAs(blob, '2024년_05월_급여명세서.pdf');
},
function(error) {
console.error('PDF 생성 오류:', error);
},
{
title: '급여 명세서',
author: 'HR 시스템',
creator: 'SpreadJS'
},
0 // sheetIndex: 명세서 시트(0번)만 출력
);