Please specify what version of the library you are using: 3.5.0
Please specify what version(s) of PowerPoint you are targeting: Powerpoint Online, Google Slides (they show identical behavior)
addNotes should result in text notes in the Notes field of the Powerpoint file.
addNotes function with any string results in [object Object] in the note field in any reader I've tried it in.
Here is a slightly modified version of the demo fiddle which replicates this behavior: https://jsfiddle.net/zj5m21ba/0/
Here is another version of the demo fiddle that bypasses addNotes but successfully generates notes: https://jsfiddle.net/zj5m21ba/1/
I noticed the same issue yesterday after updating. It looks like the function was updated as part of the addTextDefinition update that took place for 3.5.0.
Updated function:
function addNotesDefinition(target, notes) {
target._slideObjects.push({
_type: SLIDE_OBJECT_TYPES.notes,
text: [{ text: notes }],
});
}
All the downstream code still seems to be expecting a string though, so reverting back to the following restores the previous behaviour:
function addNotesDefinition(target, notes) {
target._slideObjects.push({
_type: SLIDE_OBJECT_TYPES.notes,
text: notes,
});
}
Thanks @karlolsonuc and @ReimaFrgos
Whoops. I neglected to check Notes functionality before v.3.5.0 was released.
Fixed now:
