Skip to content

[BUG] Hyperlinks cause "needs repair" when using table auto-paging. #1392

@gitbrent

Description

@gitbrent

Issue Category

  • Enhancement
  • Bug
  • Question
  • Documentation gap/issue

Product Versions

  • Please specify what version of the library you are using......: [ 4.0.0 ]
  • Please specify what version(s) of PowerPoint you are targeting: [ M365 ]
  • Please specify what web browser you are using.................: [ Any ]

Desired Behavior

Hyperlinks cause "needs repair" when using table auto-paging.

Steps to Reproduce

const pptx = new PptxGenJS();
const slide = pptx.addSlide();

const baseTabRows = [
  [
    { text: "white", options: { fill: { color: "6699CC" }, color: "FFFFFF" } },
    { text: "yellow", options: { fill: { color: "99AACC" }, color: "FFFFAA" } },
    { text: "hyperlink", options: { fill: { color: "AACCFF" }, hyperlink: { slide: 1 } } },
  ]
];

// Generate enough rows to page
const arrTabRows = [];
for (let i = 0; i < 13; i++) {
	arrTabRows.push(...baseTabRows);
};

// FINE
slide.addTable(arrTabRows, { x: 0.5, y: 1 });

// NEEDS REPAIR!
slide.addTable(arrTabRows, { x: 0.5, y: 1.5, autoPage: true });

pptx.writeFile({ fileName: 'pptxgenjs-sandbox.pptx' });

Presentation Issues

The issue is: r:id="rIdundefined"

<a:hlinkClick r:id="rIdundefined" action="ppaction://hlinksldjump" tooltip="">
<a:extLst>
	<a:ext uri="{A12FA001-AC4F-418D-AE19-62706E023703}">
		<ahyp:hlinkClr xmlns:ahyp="http://schemas.microsoft.com/office/drawing/2018/hyperlinkcolor" val="tx"/>
	</a:ext>
</a:extLst>
</a:hlinkClick>

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions