unioffice
unioffice copied to clipboard
[Feature Request] Provide access to the "Alias" and "Tag" properties of StructuredDocumentTag objects.
Description
Currently, while structured document tags are available for a document, programmatic access to the title and tag properties for each structured document tag is not. The API only provides access to the paragraphs.
Expected Behavior
Each StructuredDocumentTag
object provides Alias()
and Tag()
functions.
for _, sdt := range doc.StructuredDocumentTags() {
fmt.Printf("Alias: '%v'\n", sdt.Alias()) // returns an alias or empty string for the SDT
fmt.Printf("Tag: '%v'\n", sdt.Tag()) // returns a tag or empty string for the SDT
}
Actual Behavior
No access to alias or tag for a structured document tag.
Please include a reproducible code snippet or document attachment that demonstrates the issue.
@glorious-beard What is the use case for getting the alias and tag? Some examples would be great to understand.