pptx-viewer-core 1.6.3 → 1.6.5

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/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@ All notable changes to this project are documented here.
4
4
  This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
5
5
  by [git-cliff](https://git-cliff.org); do not edit it by hand.
6
6
 
7
+ ## [1.6.4](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-core@1.6.4) - 2026-07-18
8
+
9
+ ## [1.6.3](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-core@1.6.3) - 2026-07-18
10
+
11
+ ### Other
12
+
13
+ - Integrate release version bumps (by @ChristopherVR) ([4b3893f](https://github.com/ChristopherVR/pptx-viewer/commit/4b3893f4158803cc5533beb266ffdc8c776177cb))
14
+
15
+ ### Dependencies
16
+
17
+ - **deps:** Update dependencies to latest and migrate core/shared/locales to TypeScript 7 (by @ChristopherVR) ([cc72948](https://github.com/ChristopherVR/pptx-viewer/commit/cc729482cc5ae4ae56e1219f290c2953ec83c12a))
18
+
7
19
  ## [1.6.2](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-core@1.6.2) - 2026-07-17
8
20
 
9
21
  ## [1.6.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-core@1.6.1) - 2026-07-17
package/README.md CHANGED
@@ -109,15 +109,24 @@ It also ships unit helpers (`inches`, `cm`, `mm`, `pt`), common slide sizes (`Sl
109
109
  ### Turn a deck into Markdown
110
110
 
111
111
  ```typescript
112
- import { PptxMarkdownConverter } from 'pptx-viewer-core';
112
+ import { PptxHandler, PptxMarkdownConverter } from 'pptx-viewer-core';
113
113
 
114
- const converter = new PptxMarkdownConverter({ includeMetadata: true, imageHandling: 'extract' });
115
- const result = await converter.convert(
116
- buffer,
117
- { outputPath: 'output.md', mediaFolderName: 'media' },
114
+ const handler = new PptxHandler();
115
+ const data = await handler.load(buffer);
116
+
117
+ const converter = new PptxMarkdownConverter(
118
+ './output', // output directory for the .md file and extracted media
119
+ {
120
+ sourceName: 'presentation.pptx',
121
+ includeMetadata: true,
122
+ includeSpeakerNotes: true,
123
+ mediaFolderName: 'media',
124
+ semanticMode: true, // clean headings/lists instead of positioned HTML
125
+ },
118
126
  fileSystemAdapter,
119
127
  );
120
- // => the Markdown text, plus stats on any images that were pulled out
128
+
129
+ const markdown = await converter.convert(data); // => the Markdown text
121
130
  ```
122
131
 
123
132
  To write files to disk, pass a `FileSystemAdapter` (an object with `writeFile`, `writeBinaryFile`, and `createFolder` methods); this keeps the converter free of any assumptions about where it runs. By default it keeps each element where it sat on the slide (absolutely positioned HTML); set `semanticMode: true` to get clean headings, paragraphs, and lists instead.
@@ -149,10 +158,10 @@ The `PptxData` you get from `load()` exposes `slides`, `canvasSize`, `theme`, `s
149
158
  | **Element types** | 16: text, shape, connector, image, picture, table, chart, smartArt, ole, media, group, ink, contentPart, zoom, model3d, unknown |
150
159
  | **Preset shapes** | 187+ PowerPoint shapes, including ones with adjustable handles |
151
160
  | **Chart types** | 23, including waterfall, funnel, treemap, sunburst, box-whisker, region-map, and combo charts; with trendlines, error bars, and embedded Excel data |
152
- | **Transitions** | 42 types (including morph, vortex, ripple, and shred) |
161
+ | **Transitions** | 46 types (including morph, vortex, ripple, and shred) |
153
162
  | **Animations** | 40+ presets, including colour animation, motion paths, and text that builds in by word, letter, or paragraph |
154
163
  | **SmartArt** | 14 layout families, broken into editable shapes with a live reflow engine for structural edits |
155
- | **Fills** | Solid, gradient (linear, radial, path), image, and 48 patterns |
164
+ | **Fills** | Solid, gradient (linear, radial, path), image, and 56 patterns |
156
165
  | **Themes** | 8 built-in presets, switchable at runtime, with layout and placeholder remapping |
157
166
  | **Security** | AES-128/256 encryption and decryption, modify-password (SHA), and detection of digital signatures |
158
167
  | **Preserved** | VBA macros, custom XML, comment authors, and strict-format files are kept intact through a save |