Skip to content

[BUG] addNotes function adding notes as an array of objects, parsed as [object Object] in notes field #941

@karlolsonuc

Description

@karlolsonuc

Category

  • Enhancement
  • Bug
  • Question
  • Documentation gap/issue

Version

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)

Expected / Desired Behavior

addNotes should result in text notes in the Notes field of the Powerpoint file.

Observed Behavior

addNotes function with any string results in [object Object] in the note field in any reader I've tried it in.

Steps to Reproduce

  1. use addNotes function to add any string to a pptxgen presentation.
  2. trigger save presentation
  3. open in either Powerpoint Online or Google Slides (possibly in Powerpoint itself?)
  4. note [object Object] in the field

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/

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions