Files
Pier_v1/수량산출/tools/render-criteria.mjs
T

4 lines
416 B
JavaScript

import fs from 'node:fs/promises';import {FileBlob,SpreadsheetFile} from '@oai/artifact-tool';
const w=await SpreadsheetFile.importXlsx(await FileBlob.load('수량산출/교각수량산출.xlsx'));
const png=await w.render({sheetName:'3.1 수량산출기준_구조체',range:'A1:AD90',scale:1.3,format:'png'});await fs.writeFile('수량산출/.cache/criteria-reference.png',new Uint8Array(await png.arrayBuffer()));