1.1.2 • Published 1 year ago
analyze-pptx v1.1.2
PPTX 转 JSON
安装
npm i analyze-pptx
使用
<input type="file" id="fileID" />
import AnalyzePPTX from "analyze-pptx";
const readZip = async () => {
const input = document.getElementById("fileID") as HTMLInputElement;
const zipFile = input.files && input.files.length > 0 ? input.files[0] : null;
if (!zipFile) return;
const analyzePPTX = new AnalyzePPTX();
const slides = await analyzePPTX.read(zipFile);
console.log(slides);
};