Docx: Is there a way to add a text background color to a Paragraph or TextRun

Created on 17 Apr 2019  路  6Comments  路  Source: dolanmiu/docx

Is there a way to add a text background color to a Paragraph or TextRun.

Like we can do with tables:

table.getCell(0, 0).setShading({ fill: "42c5f4", color: "auto", })

Most helpful comment

coming soon!

I am working on that piece now

All 6 comments

coming soon!

I am working on that piece now

This would be a great addon, started looking at this module and this would get me round the problems I am having.

Is there a way to do this in the mean time?

Nope, no way at the moment, essentially its implementing this:

http://officeopenxml.com/WPtextShading.php

which is no where in the codebase so far

@dolanmiu Any update on this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jacwright picture jacwright  路  6Comments

amitm02 picture amitm02  路  5Comments

zeco2309 picture zeco2309  路  5Comments

efx picture efx  路  5Comments

iainfreestone picture iainfreestone  路  3Comments