pptxtojson 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/fontStyle.js +11 -2
- package/src/paragraph.js +223 -0
- package/src/pptxtojson.js +42 -19
- package/src/table.js +15 -13
- package/src/text.js +12 -11
- package/src/align.js +0 -164
package/README.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
# 🎨 pptxtojson
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<a href="https://gitcode.com/pipipi-pikachu/pptxtojson" target="_black"><img src="https://gitcode.com/pipipi-pikachu/pptxtojson/star/badge.svg" alt="gitcode"></a>
|
|
10
|
-
</p>
|
|
3
|
+
[](https://www.npmjs.com/package/pptxtojson)
|
|
4
|
+
[](https://www.npmjs.com/package/pptxtojson)
|
|
5
|
+
[](https://github.com/pipipi-pikachu/pptxtojson/issues)
|
|
6
|
+
[](https://www.github.com/pipipi-pikachu/pptxtojson/blob/master/LICENSE)
|
|
7
|
+
[](https://www.github.com/pipipi-pikachu/pptxtojson/stargazers)
|
|
8
|
+
[](https://www.github.com/pipipi-pikachu/pptxtojson/network/members)
|
|
11
9
|
|
|
12
10
|
一个运行在浏览器中,可以将 .pptx 文件转为可读的 JSON 数据的 JavaScript 库。
|
|
13
11
|
|
|
@@ -160,6 +158,8 @@ func()
|
|
|
160
158
|
|
|
161
159
|
- 幻灯片主题色 `themeColors`
|
|
162
160
|
|
|
161
|
+
- 内置字体清单 `usedFonts`
|
|
162
|
+
|
|
163
163
|
- 幻灯片尺寸 `size`
|
|
164
164
|
- 宽度 `width`
|
|
165
165
|
- 高度 `height`
|
|
@@ -256,7 +256,7 @@ func()
|
|
|
256
256
|
- 宽度 `width`
|
|
257
257
|
- 高度 `height`
|
|
258
258
|
- 边框(4边) `borders`
|
|
259
|
-
-
|
|
259
|
+
- 单元格样式与数据 `data`
|
|
260
260
|
- 行高 `rowHeights`
|
|
261
261
|
- 列宽 `colWidths`
|
|
262
262
|
|
|
@@ -322,12 +322,12 @@ func()
|
|
|
322
322
|
- 高度 `height`
|
|
323
323
|
- 子元素集合 `elements`
|
|
324
324
|
|
|
325
|
-
###
|
|
325
|
+
### 更详细类型请参考 👇
|
|
326
326
|
[https://github.com/pipipi-pikachu/pptxtojson/blob/master/dist/index.d.ts](https://github.com/pipipi-pikachu/pptxtojson/blob/master/dist/index.d.ts)
|
|
327
327
|
|
|
328
328
|
# 🙏 感谢
|
|
329
329
|
本仓库大量参考了 [PPTX2HTML](https://github.com/g21589/PPTX2HTML) 和 [PPTXjs](https://github.com/meshesha/PPTXjs) 的实现。
|
|
330
|
-
> 与它们不同的是:
|
|
330
|
+
> 与它们不同的是:pptxtojson 不是将PPT文件转换为 HTML 页面,而是转换为干净、易读的 JSON 数据,且在原有基础上进行了大量优化补充,大幅提升了提取信息的完整度和准确度。
|
|
331
331
|
|
|
332
332
|
# 📄 开源协议
|
|
333
333
|
MIT License | Copyright © 2020-PRESENT [pipipi-pikachu](https://github.com/pipipi-pikachu)
|