pptx2markdown 0.1.0__tar.gz

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.
Files changed (38) hide show
  1. pptx2markdown-0.1.0/.gitignore +32 -0
  2. pptx2markdown-0.1.0/LICENSE +202 -0
  3. pptx2markdown-0.1.0/NOTICE +2 -0
  4. pptx2markdown-0.1.0/PKG-INFO +265 -0
  5. pptx2markdown-0.1.0/README.ko.md +232 -0
  6. pptx2markdown-0.1.0/README.md +235 -0
  7. pptx2markdown-0.1.0/pyproject.toml +65 -0
  8. pptx2markdown-0.1.0/src/pptx2markdown/__init__.py +13 -0
  9. pptx2markdown-0.1.0/src/pptx2markdown/api.py +69 -0
  10. pptx2markdown-0.1.0/src/pptx2markdown/main_converter/__init__.py +0 -0
  11. pptx2markdown-0.1.0/src/pptx2markdown/main_converter/asset_utils.py +93 -0
  12. pptx2markdown-0.1.0/src/pptx2markdown/main_converter/converter_models.py +323 -0
  13. pptx2markdown-0.1.0/src/pptx2markdown/main_converter/embedded_attachments.py +275 -0
  14. pptx2markdown-0.1.0/src/pptx2markdown/main_converter/heading_rules.py +80 -0
  15. pptx2markdown-0.1.0/src/pptx2markdown/main_converter/package_inputs.py +408 -0
  16. pptx2markdown-0.1.0/src/pptx2markdown/main_converter/ppt_to_pptx.py +254 -0
  17. pptx2markdown-0.1.0/src/pptx2markdown/main_converter/run_pptx_to_markdown.py +1628 -0
  18. pptx2markdown-0.1.0/src/pptx2markdown/main_converter/slide_converter.py +1122 -0
  19. pptx2markdown-0.1.0/src/pptx2markdown/main_converter/structure_analysis_pipeline.py +148 -0
  20. pptx2markdown-0.1.0/src/pptx2markdown/main_converter/table_overlay.py +522 -0
  21. pptx2markdown-0.1.0/src/pptx2markdown/ooxml_security.py +219 -0
  22. pptx2markdown-0.1.0/src/pptx2markdown/pptx_inheritance/__init__.py +25 -0
  23. pptx2markdown-0.1.0/src/pptx2markdown/pptx_inheritance/resolver.py +994 -0
  24. pptx2markdown-0.1.0/src/pptx2markdown/presentation_document.schema.json +122 -0
  25. pptx2markdown-0.1.0/src/pptx2markdown/structure_analyzer/__init__.py +1 -0
  26. pptx2markdown-0.1.0/src/pptx2markdown/structure_analyzer/check_native_table_support.py +335 -0
  27. pptx2markdown-0.1.0/src/pptx2markdown/structure_analyzer/constants.py +23 -0
  28. pptx2markdown-0.1.0/src/pptx2markdown/structure_analyzer/extract_structure_analysis.py +121 -0
  29. pptx2markdown-0.1.0/src/pptx2markdown/structure_analyzer/extractor.py +520 -0
  30. pptx2markdown-0.1.0/src/pptx2markdown/structure_analyzer/pipeline.py +521 -0
  31. pptx2markdown-0.1.0/src/pptx2markdown/structure_analyzer/structure.py +435 -0
  32. pptx2markdown-0.1.0/src/pptx2markdown/structure_analyzer/text_rules.py +60 -0
  33. pptx2markdown-0.1.0/src/pptx2markdown/structure_analyzer/xml_primitives.py +160 -0
  34. pptx2markdown-0.1.0/src/pptx2markdown/table_pipeline/__init__.py +7 -0
  35. pptx2markdown-0.1.0/src/pptx2markdown/table_pipeline/parse.py +193 -0
  36. pptx2markdown-0.1.0/src/pptx2markdown/table_pipeline/render.py +144 -0
  37. pptx2markdown-0.1.0/src/pptx2markdown/table_pipeline/run.py +298 -0
  38. pptx2markdown-0.1.0/src/pptx2markdown/workspace_paths.py +92 -0
@@ -0,0 +1,32 @@
1
+ # macOS
2
+ .DS_Store
3
+
4
+ # environment
5
+ .env
6
+ .python-version
7
+ .venv/
8
+
9
+ # Python
10
+ __pycache__/
11
+ *.py[cod]
12
+ dist/
13
+ build/
14
+ *.egg-info/
15
+ archives/
16
+
17
+ # runtime inputs / outputs (never commit)
18
+ output/
19
+ .pptx2markdown/
20
+ .cache/
21
+ pptx_samples/
22
+ /test
23
+ *.pptx
24
+ *.ppt
25
+ *.pdf
26
+ !tests/fixtures/*.pptx
27
+ !tests/fixtures/golden/
28
+ !tests/fixtures/golden/*.pptx
29
+ tests/fixtures/golden/~$*.pptx
30
+
31
+ # Claude Code local settings
32
+ .claude/settings.local.json
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,2 @@
1
+ PPTX2Markdown
2
+ Copyright 2026 HANKOOK TIRE & TECHNOLOGY CO., LTD.
@@ -0,0 +1,265 @@
1
+ Metadata-Version: 2.4
2
+ Name: pptx2markdown
3
+ Version: 0.1.0
4
+ Summary: Convert PPTX/PPT presentations to clean, RAG-ready Markdown (text, tables, charts, SmartArt, formulas, images)
5
+ Project-URL: Homepage, https://github.com/PPTX2Markdown/PPTX2Markdown
6
+ Project-URL: Repository, https://github.com/PPTX2Markdown/PPTX2Markdown
7
+ Project-URL: Issues, https://github.com/PPTX2Markdown/PPTX2Markdown/issues
8
+ Author-email: MoonYoung02 <happy518596@gmail.com>
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ License-File: NOTICE
12
+ Keywords: converter,document-parsing,markdown,powerpoint,pptx,rag
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Topic :: Office/Business :: Office Suites
21
+ Classifier: Topic :: Text Processing :: Markup :: Markdown
22
+ Requires-Python: >=3.12
23
+ Requires-Dist: chart2md>=0.1.0
24
+ Requires-Dist: olefile>=0.47
25
+ Requires-Dist: omml2latex>=0.1.0
26
+ Requires-Dist: pydantic<3,>=2.10.0
27
+ Requires-Dist: pywin32>=306; platform_system == 'Windows'
28
+ Requires-Dist: smartart2md>=0.1.1
29
+ Description-Content-Type: text/markdown
30
+
31
+ # pptx2markdown
32
+
33
+ [![Quality](https://github.com/PPTX2Markdown/PPTX2Markdown/actions/workflows/quality.yml/badge.svg)](https://github.com/PPTX2Markdown/PPTX2Markdown/actions/workflows/quality.yml)
34
+ [![PyPI](https://img.shields.io/pypi/v/pptx2markdown)](https://pypi.org/project/pptx2markdown/)
35
+ [![Python](https://img.shields.io/pypi/pyversions/pptx2markdown)](https://pypi.org/project/pptx2markdown/)
36
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/PPTX2Markdown/PPTX2Markdown/blob/main/LICENSE)
37
+
38
+ English | [한국어](https://github.com/PPTX2Markdown/PPTX2Markdown/blob/main/README.ko.md)
39
+
40
+ `pptx2markdown` converts PowerPoint presentations into deterministic Markdown or
41
+ JSON for search, RAG, and document-processing pipelines. It parses native OOXML
42
+ structure and shape geometry directly: no OCR, vision model, API key, or cloud
43
+ service is used.
44
+
45
+ ## Why pptx2markdown?
46
+
47
+ - **One static pipeline** — `.pptx` content is parsed from XML, relationships,
48
+ and embedded package parts.
49
+ - **Deterministic reading order** — recursive geometric XY-cut orders native
50
+ shapes without semantic or model-based overrides.
51
+ - **One output contract** — Markdown and JSON are rendered from the same
52
+ versioned `PresentationDocument`.
53
+ - **Rich native content** — text, headings, lists, tables, charts, SmartArt,
54
+ formulas, images, speaker notes, and embedded attachments are retained.
55
+ - **Reviewable regressions** — real PPTX fixtures are checked against
56
+ byte-for-byte JSON and Markdown golden outputs on Linux, macOS, and Windows.
57
+
58
+ ## Supported content
59
+
60
+ | Content | Behavior |
61
+ | --- | --- |
62
+ | Text and headings | Preserves text and infers headings from native placeholder and style evidence |
63
+ | Lists | Preserves ordered and unordered list structure |
64
+ | Tables | Renders native PowerPoint tables as Markdown tables |
65
+ | Charts | Converts native charts through [chart2md](https://pypi.org/project/chart2md/) |
66
+ | SmartArt | Converts diagram content through [smartart2md](https://pypi.org/project/smartart2md/) |
67
+ | Formulas | Converts OMML equations to LaTeX through [omml2latex](https://pypi.org/project/omml2latex/) |
68
+ | Images | Copies embedded image parts to deterministic local asset paths |
69
+ | Speaker notes | Keeps notes separate from visible slide content |
70
+ | Attachments | Preserves recoverable PDF, audio, video, Office, ZIP, 3D, and OLE payloads as linked files |
71
+
72
+ The parser does **not** OCR text inside images, transcribe audio or video,
73
+ reconstruct animations, interpret connector semantics, or reproduce slides
74
+ pixel-for-pixel. PowerPoint review comments are intentionally excluded.
75
+
76
+ ## Requirements
77
+
78
+ - Python 3.12 or newer
79
+ - `.pptx`: no Microsoft Office or LibreOffice required
80
+ - legacy `.ppt`: Microsoft PowerPoint on Windows or LibreOffice
81
+ - EMF/WMF conversion: LibreOffice when conversion is needed
82
+
83
+ ## Installation
84
+
85
+ ### Let an AI agent install it
86
+
87
+ A local coding agent can inspect the environment, choose an isolated install,
88
+ optionally configure LibreOffice, and verify the CLI. Give it one of these
89
+ prompts and review every permission request.
90
+
91
+ Most agents:
92
+
93
+ ```text
94
+ Read https://raw.githubusercontent.com/PPTX2Markdown/PPTX2Markdown/main/.github/agent-install.md and install pptx2markdown for this machine. You may run the commands needed for installation after explaining them. Ask me before any administrator, sudo, password, system package-manager, shell-profile, PATH, or LibreOffice change.
95
+ ```
96
+
97
+ Codex interactive planning:
98
+
99
+ ```text
100
+ /plan
101
+ Read https://raw.githubusercontent.com/PPTX2Markdown/PPTX2Markdown/main/.github/agent-install.md and install pptx2markdown for this machine. You may run the commands needed for installation after explaining them. Ask me before any administrator, sudo, password, system package-manager, shell-profile, PATH, or LibreOffice change.
102
+ ```
103
+
104
+ See the complete [agent installation procedure](https://github.com/PPTX2Markdown/PPTX2Markdown/blob/main/.github/agent-install.md).
105
+
106
+ ### Manual installation
107
+
108
+ For an isolated CLI, use `uv`:
109
+
110
+ ```bash
111
+ uv tool install pptx2markdown
112
+ ```
113
+
114
+ Alternatively, use `pipx` or an active virtual environment:
115
+
116
+ ```bash
117
+ pipx install pptx2markdown
118
+ # or, inside an active virtual environment
119
+ python -m pip install pptx2markdown
120
+ ```
121
+
122
+ LibreOffice is optional:
123
+
124
+ ```bash
125
+ # macOS
126
+ brew install --cask libreoffice
127
+
128
+ # Ubuntu / Debian
129
+ sudo apt-get install libreoffice libreoffice-impress
130
+ ```
131
+
132
+ On Windows, `.ppt` conversion uses PowerPoint COM automation when available and
133
+ otherwise tries LibreOffice. `SOFFICE_PATH` may point to a specific LibreOffice
134
+ executable.
135
+
136
+ ## Quick start
137
+
138
+ ```bash
139
+ # One file -> ./output/deck/deck.md
140
+ pptx2markdown deck.pptx
141
+
142
+ # Every .pptx/.ppt in the current directory
143
+ pptx2markdown
144
+
145
+ # Multiple files and a custom output root
146
+ pptx2markdown first.pptx second.pptx -o converted/
147
+
148
+ # Canonical JSON instead of Markdown
149
+ pptx2markdown deck.pptx --output-format json
150
+ ```
151
+
152
+ Temporary Office lock files matching `~$*.pptx` are silently skipped during
153
+ batch conversion.
154
+
155
+ From Python:
156
+
157
+ ```python
158
+ import pptx2markdown
159
+
160
+ exit_code = pptx2markdown.convert(
161
+ "deck.pptx",
162
+ output_dir="converted",
163
+ output_format="markdown",
164
+ )
165
+ if exit_code != 0:
166
+ raise RuntimeError("conversion failed")
167
+ ```
168
+
169
+ Example Markdown:
170
+
171
+ ```markdown
172
+ [Page_1]
173
+
174
+ # Quarterly results
175
+
176
+ - Revenue increased 18%
177
+ - Operating margin reached 24%
178
+
179
+ | Region | Revenue |
180
+ | --- | ---: |
181
+ | APAC | $12.4M |
182
+ ```
183
+
184
+ ## CLI options
185
+
186
+ | Flag | Default | Description |
187
+ | --- | --- | --- |
188
+ | `-o, --output-dir` | `./output` | Final Markdown/JSON and copied assets |
189
+ | `--work-dir` | `./.pptx2markdown` | Extracted packages, analysis files, and caches |
190
+ | `--output-format` | `markdown` | `markdown` or `json` |
191
+ | `--headings` | `auto` | `auto` or placeholder-only `strict` heading detection |
192
+ | `--placeholder-inheritance` | `style` | `none`, `geometry`, or `style` inheritance |
193
+ | `--inherited-shapes` | `visible` | `none`, `visible`, or `all` layout/master shapes |
194
+ | `--ppt-converter` | `auto` | `auto`, `powerpoint`, or `libreoffice` for `.ppt` |
195
+ | `--verbose` | off | Debug logging |
196
+
197
+ Run `pptx2markdown --help` for the authoritative CLI reference.
198
+
199
+ ## Output layout
200
+
201
+ ```text
202
+ output/
203
+ ├── convert_manifest.json
204
+ └── <deck-name>/
205
+ ├── <deck-name>.md # or <deck-name>.json
206
+ ├── media/
207
+ └── attachments/
208
+
209
+ .pptx2markdown/
210
+ ├── target_slides/
211
+ ├── structure_analysis/
212
+ ├── table_pipeline/
213
+ └── .cache/
214
+ ```
215
+
216
+ `convert_manifest.json` records file and slide status, warnings, failures, and
217
+ block statistics. JSON output conforms to the packaged
218
+ `PresentationDocument 1.0` schema. Source paths are reduced to a basename and
219
+ generated links use portable `/` separators.
220
+
221
+ ## Reading order and determinism
222
+
223
+ Reading order always uses recursive XY-cut over native shape bounding boxes. It
224
+ splits geometric regions into columns and rows, then uses top-left order when no
225
+ further cut is possible. Original XML order is only a deterministic tie-breaker
226
+ or a fallback for objects without usable geometry.
227
+
228
+ For identical input and options, JSON and Markdown outputs are expected to be
229
+ byte-for-byte stable across supported operating systems. The repository keeps
230
+ 17 reviewable PPTX fixtures with both expected formats and emitted-asset hashes.
231
+
232
+ ## Security model
233
+
234
+ Normal `.pptx` conversion is local and makes no network or model calls. OOXML
235
+ extraction rejects path traversal, links, encrypted entries, relationship
236
+ escapes, and packages that exceed configured archive limits. Extracted
237
+ attachments are data from the input presentation; inspect them before opening.
238
+ Legacy `.ppt` and some vector-image conversions invoke the selected external
239
+ Office converter.
240
+
241
+ ## Documentation
242
+
243
+ - [Output schema](https://github.com/PPTX2Markdown/PPTX2Markdown/blob/main/docs/output_schema.md)
244
+ - [Main converter](https://github.com/PPTX2Markdown/PPTX2Markdown/blob/main/docs/main_converter.md)
245
+ - [Structure analyzer](https://github.com/PPTX2Markdown/PPTX2Markdown/blob/main/docs/structure_analyzer.md)
246
+ - [Golden PPTX suite](https://github.com/PPTX2Markdown/PPTX2Markdown/blob/main/tests/fixtures/golden/README.md)
247
+
248
+ ## Development
249
+
250
+ ```bash
251
+ python -m pip install -e .
252
+ python -m unittest discover -v
253
+ python scripts/update_goldens.py --check
254
+ ruff check src tests scripts
255
+ ruff format --check src tests scripts
256
+ ```
257
+
258
+ When parser behavior changes intentionally, review the generated Markdown and
259
+ JSON diffs before accepting new golden snapshots.
260
+
261
+ ## License
262
+
263
+ The project is distributed under the [Apache License 2.0](https://github.com/PPTX2Markdown/PPTX2Markdown/blob/main/LICENSE).
264
+ Third-party golden fixture attribution is recorded in
265
+ [`THIRD_PARTY_NOTICES.md`](https://github.com/PPTX2Markdown/PPTX2Markdown/blob/main/tests/fixtures/golden/THIRD_PARTY_NOTICES.md).