-
I’m new to docx.js and need to insert a floating TextBox in my document header that has no fill and no visible border just the text itself. Every approach I’ve tried still produces a white background or outlines around the box. Is there a built-in way in docx.js to make a Textbox completely transparent and remove its borders? Any guidance or simple examples would be really helpful. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
maybe not best solution but fixed it by fetching and patching object xml. Replaced parts that needed change with this logic: ` const patchedXml = documentXml.replace(/<v:shape([^>]*?)>/g, (match, existingAttrs) => {
|
Beta Was this translation helpful? Give feedback.
maybe not best solution but fixed it by fetching and patching object xml. Replaced parts that needed change with this logic:
` const patchedXml = documentXml.replace(/<v:shape([^>]*?)>/g, (match, existingAttrs) => {
let attrs = existingAttrs;