PPTX Export
Export Polotno designs to PowerPoint format
Overview
Polotno supports exporting designs to PowerPoint (PPTX) format, allowing you to create presentation files from your designs. This feature is available through the @polotno/pptx-export
package.
Installation
First, install the PPTX export package:
npm install @polotno/pptx-export
Basic Usage
Import the package and use the jsonToPPTX
function to export your design:
import { jsonToPPTX } from '@polotno/pptx-export';
// Export the current design to PPTX
jsonToPPTX({
json: store.toJSON(),
output: 'my-design.pptx',
});
Dynamic Import
If you prefer to load the package dynamically (e.g., to reduce initial bundle size), you can use dynamic imports:
import('@polotno/pptx-export').then((module) => {
module.jsonToPPTX({
json: store.toJSON(),
output: 'my-design.pptx',
});
});
API Reference
jsonToPPTX(options)
Exports a Polotno design to PowerPoint format.
Parameters:
json
(required): The design JSON fromstore.toJSON()
output
(required): The output filename (e.g.,'presentation.pptx'
)
Example:
import { jsonToPPTX } from '@polotno/pptx-export';
const handleExport = () => {
jsonToPPTX({
json: store.toJSON(),
output: 'my-presentation.pptx',
});
};
Use Cases
- Convert designs into editable PowerPoint presentations
- Share designs with users who prefer working in PowerPoint
- Create templates that can be further edited in presentation software
- Export multi-page designs as presentation slides
Notes
- Each Polotno page becomes a slide in the PowerPoint presentation
- Text elements remain editable in PowerPoint
- Images are embedded in the presentation file
Limitations
Missing Effects and Features
The PPTX export may not support all Polotno effects and features. Some advanced styling, animations, or custom elements might not be fully preserved in the exported PowerPoint file.
If you encounter any issues or have feedback about missing features, please share your experience in the Polotno Community.
Font Embedding
PPTX files do not embed fonts inside the file. If you use custom fonts in your design, they will be displayed using system fallback fonts when the presentation is opened on another computer, unless those custom fonts are already installed on that system.
For consistent typography across different devices, consider using common system fonts like Arial, Helvetica, Times New Roman, or Georgia.
Live Demo
Try out the PPTX export feature in this interactive demo: