From 5068dd4e671aa0d12ab2314d15a78f9a58a5a4f8 Mon Sep 17 00:00:00 2001 From: josiahtamsen Date: Tue, 19 Sep 2023 12:03:51 -0700 Subject: [PATCH] Fix pptx table font color not being applied --- CHANGELOG | 1 + examples/make_pptx.js | 2 +- lib/pptx/genofficetable.js | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 6124c86c..72c737fa 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,5 @@ - Version 0.6.5: + - PPTX: Fix table font color not being applied - PPTX: Better fonts support in pptx: new options parameter for addText: pitch_family and charset. - Version 0.6.4: - Apple Pages compatibility and more options (thanks apsavin!). diff --git a/examples/make_pptx.js b/examples/make_pptx.js index 92fd2ff7..bdfd95c2 100644 --- a/examples/make_pptx.js +++ b/examples/make_pptx.js @@ -422,7 +422,7 @@ function generateTables(callback) { font_face: 'Verdana', align: 'r', bold: 1, - // font_color: 'ffffff', + font_color: 'ffffff', fill_color: '00a65a' } }, diff --git a/lib/pptx/genofficetable.js b/lib/pptx/genofficetable.js index 08e031c5..100c948f 100644 --- a/lib/pptx/genofficetable.js +++ b/lib/pptx/genofficetable.js @@ -181,6 +181,8 @@ module.exports = { : options.italics[row_idx] : options.italics : '0', + 'a:solidFill': { + }, 'a:latin': { '@typeface': font_face },