Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document or Section Background-color support? #628

Open
dkipp opened this issue Aug 26, 2020 · 2 comments
Open

Document or Section Background-color support? #628

dkipp opened this issue Aug 26, 2020 · 2 comments

Comments

@dkipp
Copy link

@dkipp dkipp commented Aug 26, 2020

In microsoft word it is posible to set background colors other than white.
Is it posible with this library too?

Buy the way, there is a non working example in the docs: In 'Styling with JS -> Declaritive Styles (similar to external CSS)'

color: "999999",
{
  type: UnderlineType.DOUBLE,
  color: "FF0000",
},

maybee with underline?

color: "999999",
underline: 
{
  type: UnderlineType.DOUBLE,
  color: "FF0000",
},
@v-bondarenko364
Copy link

@v-bondarenko364 v-bondarenko364 commented Sep 1, 2020

@dkipp Yes it's possible to set background color for words, see example here:
https://github.com/dolanmiu/docx/blob/master/demo/45-highlighting-text.ts

@dkipp
Copy link
Author

@dkipp dkipp commented Sep 4, 2020

Sorry for being not explicit enough, I'd like to change the background of the whole document or a section, not just a single word. Like it is possible with "Microsoft word"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.