chore: [sales] customer-pricing PPTX 재생성 (이카운트 제거 반영)

- HTML→PPTX 변환 스크립트 추가
- 이카운트 연동 행 제거된 슬라이드 반영
This commit is contained in:
김보곤
2026-03-16 20:33:07 +09:00
parent 775cfb4262
commit 380bed83ed
2 changed files with 27 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,27 @@
const path = require('path');
const fs = require('fs');
module.paths.unshift(path.join(require('os').homedir(), '.claude/skills/pptx-skill/scripts/node_modules'));
const PptxGenJS = require('pptxgenjs');
const html2pptx = require(path.join(require('os').homedir(), '.claude/skills/pptx-skill/scripts/html2pptx.js'));
async function main() {
const pres = new PptxGenJS();
pres.defineLayout({ name: 'CUSTOM_16x9', width: 10, height: 5.625 });
pres.layout = 'CUSTOM_16x9';
const dir = __dirname;
const slides = fs.readdirSync(dir)
.filter(f => f.startsWith('slide-') && f.endsWith('.html'))
.sort();
for (const file of slides) {
await html2pptx(path.join(dir, file), pres);
}
const output = path.join(dir, '..', '..', 'customer-pricing.pptx');
await pres.writeFile({ fileName: output });
console.log('PPTX created:', output);
}
main().catch(console.error);