pptxtojson
pptxtojson copied to clipboard
将 .pptx 文件转为可读的 json 数据 丨Office PowerPoint(.pptx) file to JSON
源文件 解析后
  导入后全部被添加了边框 #000  是否是正常状态,还是说当解析器检测出无颜色数据的时候,默认设置为了#000
emm~,用的时候,导入pptx时,背景颜色直接全黑了,在这里改了下,看看这是不是bug或是兼容性问题
872行其中 attrs可能为undefined `rNode.sort((a, b) => a.attrs.order - b.attrs.order)` 977行 `const text = genTextBody(tcNodes['a:txBody'])` 后面还有四个参数没传,会报warpObj为undefined 1590行 `serNode['c:xVal']['c:numRef']['c:numCache']['c:pt']` 这里的numRef也可能为undefined 测试文件恕我无法公开。 类似的bug应该有蛮多的,顺便请教一下作者有Roadmap吗,后续有没有考虑加入测试,用TypeScript重构之类的计划?
RT,pptx读取后背景信息缺失
``` export interface ChartValue { x: string y: number } export interface ChartXLabel { [key: string]: string } export interface ChartItem { key: string values: ChartValue[] xlabels: ChartXLabel } ```