import fs from 'node:fs/promises'; import {FileBlob,SpreadsheetFile} from '@oai/artifact-tool'; const w=await SpreadsheetFile.importXlsx(await FileBlob.load('수량산출/교각수량산출.xlsx')); console.log((await w.inspect({kind:'sheet',include:'id,name',maxChars:1500})).ndjson); console.log((await w.inspect({kind:'region',sheetId:'3.3 수량산출_P1',range:'W50:W64',maxChars:1600})).ndjson); const preview=await w.render({sheetName:'3.3 수량산출_P1',range:'A48:AH76',scale:1.4,format:'png'}); await fs.writeFile('수량산출/.cache/template-preview.png',new Uint8Array(await preview.arrayBuffer()));