const path = require('path'); 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(); // 9:16 세로형 (Portrait) pres.defineLayout({ name: 'PORTRAIT_9x16', width: 5.625, height: 10 }); pres.layout = 'PORTRAIT_9x16'; const htmlFile = path.join(__dirname, 'slides', 'brochure-1page.html'); console.log('Converting 1-page brochure...'); try { await html2pptx(htmlFile, pres); } catch (err) { console.error(`Error: ${err.message}`); } const outputPath = path.join(__dirname, 'sam-brochure-1page.pptx'); await pres.writeFile({ fileName: outputPath }); console.log(`\nPPTX created: ${outputPath}`); } main().catch(console.error);