Skip to content

[BUG] Table auto-paging creates slide in wrong section #1405

@IamMille

Description

@IamMille

Issue Category

  • Enhancement
  • Bug
  • Question
  • Documentation gap/issue

Product Versions

  • Please specify what version of the library you are using......: [ 4.0.1 ]
  • Please specify what version(s) of PowerPoint you are targeting: [ Version 16.99 (25071321) ]
  • Please specify what web browser you are using.................: [ Version 137.0.7151.120 (Official Build) (arm64) ]

Desired Behavior

When using addTable() with the option autoPage I expect it to respect the section title that is set for the current slide.

Observed Behavior

The new slides (newAutoPagedSlides) are placed in section "Default-1" instead of the current slide section.

NOTE: This ONLY happens when you have (at least?) two sections in your pptx.

Steps to Reproduce

pptx.addSection({ title: 'A' })
pptx.addSection({ title: 'B' })

const slide = pptx.addSlide({ masterName, sectionTitle: 'A' })
slide.addTable(...), // newAutoPagedSlides are added to section "Default-1".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions