unidoc/unioffice

How to delete a table from document

Aled210 opened this issue · 1 comments

I process a word document where I need to replace some forms and eventually delete or hide tables based on condition.
At the moment I didn't find any way to achieve it.
What I tried is to manipulate the xml by unmarshalling it, here's how:

`
buf := new(bytes.Buffer)
buf.WriteString("")

decoder := xml.NewDecoder(buf)

err := doc.X().UnmarshalXML(decoder, xml.StartElement{})
if err != nil {
	fmt.Println(err)
}

`

The error I get is:
XML syntax error on line 1: unexpected EOF

Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized,
other issues go into our backlog where they are assessed and fitted into the roadmap when suitable.
If you need to get this done, consider buying a license which also enables you to use it in your commercial products.
More information can be found on https://unidoc.io/