|
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! |
Answered by
rk250ky
Jun 3, 2025
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) => { |
0 replies
Answer selected by
rk250ky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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) => {
let attrs = existingAttrs;