Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request]支持导入json文件 #264

Open
hellowac opened this issue Apr 7, 2024 · 4 comments
Open

[Feature request]支持导入json文件 #264

hellowac opened this issue Apr 7, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@hellowac
Copy link

hellowac commented Apr 7, 2024

关于支持导入json 格式的文件:

我写了一个可以解析成项目文件type.ts定义的数据结构的json文件,基于python实现。你可以把支持导入json文件的入口加上吗

注意:

pptx文件中的图片可能会以base64的方式导入,比如:

<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUA
    AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
        9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />

pptx文件中的复杂以及自定义的图形(shape),会以svg+xml的方式,以图片的形式展现, 比如:

<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4..."/>
@hellowac hellowac added the enhancement New feature or request label Apr 7, 2024
@VinsionLam
Copy link

@hellowac 你好,大哥,我能请教一下这个python脚本怎么写吗

@hellowac
Copy link
Author

hellowac commented Apr 9, 2024

@hellowac 你好,大哥,我能请教一下这个python脚本怎么写吗

语言只是工具,总体思路,根据文档内容建模(数据模型,基于xml,然后读出数据,然后组织成你想要的格式,json,html,svg等等。),文档内容格式详细参考ECMA-376技术标准,以及参考林德熙解析pptx相关的文章.

@Zh3Wang
Copy link

Zh3Wang commented Aug 23, 2024

大佬,脚本可以开源吗?

@KingPuiWong
Copy link

能开源出来学习一下吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants