Export to PowerPoint

PPTX is a drawing of the published lock, not a second layout engine. .K2F stays the source. Slight text reflow in PowerPoint is expected and allowed.

From Markdown

pip install k2f
# From the skill folder:
python scripts/init_package.py --workspace ./out/doc --title "From Markdown" --page a4

k2f markdown slides.md -o ./out/doc/doc.K2F --template ./out/doc/source
k2f export-pptx ./out/doc/doc.K2F -o ./out/doc/doc.pptx

Need pixel-identical pages → PDF.

CLI

k2f export-pptx file.K2F -o out.pptx
k2f export-pptx ./out/doc/doc.K2F -o ./out/doc/doc.pptx

No --scale. No --trust-pack. Draws the published lock; does not compile. Unlocked input fails with UNLOCKED.

Native text, tables, and pictures stay editable. Do not stamp a full-slide PNG.

form_field nodes export as lock boxes and text — not PowerPoint form controls. Fillable widgets are PDF-only (Fillable PDF).

SDK

SurfaceCallNotes
CLI k2f export-pptx-oExisting lock. No recompile.
Python Editored.export_pptx_bytes()No module-level k2f.export_pptx. Save first if you patched the tree.
JS @openk2f/k2fexportPptx(bytes) after initWasm; ed.exportPptx()Editor draws the in-memory package — save() for the latest lock.

Dropping a .pptx into K2F fails with PPTX_IS_NOT_A_SOURCE.

Common mistakes

MistakeReality
Markdown → a PPTX libraryMD → K2F → export-pptx
Stamp a full-slide PNGNative text/tables/pics must stay editable
Expect glyph-identical slidesSlight reflow is legal
Edit the PPTX and expect K2F to syncOne-way export

See also