unioffice icon indicating copy to clipboard operation
unioffice copied to clipboard

[Feature Request] Provide access to the "Alias" and "Tag" properties of StructuredDocumentTag objects.

Open glorious-beard opened this issue 3 years ago • 1 comments

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 avatar Aug 18 '21 18:08 glorious-beard

@glorious-beard What is the use case for getting the alias and tag? Some examples would be great to understand.

gunnsth avatar Jan 15 '22 23:01 gunnsth