heavysixer / node-pptx

Generate PPTX files on the server-side with JavaScript.
MIT License
161 stars 44 forks source link

Add reset font style and text align options #72

Closed EliteUser closed 3 years ago

EliteUser commented 3 years ago

Sometimes when modifying an existing presentation, it has some built-in font styles, which i want to override explicitly. For examle, I have some presentation and I want to add a text box using slide.addText(). When I see the result, the added text is bold and centered, so I want to set fontBold: false and textAlign: 'left' to get proper style.

heavysixer commented 3 years ago

Is there any way to add a test for this or does it need to be manual inspection only?

EliteUser commented 3 years ago

I don`t know if it can be tested, think manual inspection only, because of unknown styles of pptx template.

heavysixer commented 3 years ago

@EliteUser sorry for the delay we're still discussing this internally.