Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/docxml/mod.ts>CommentsXml

TypeScript (component) library for building and parsing a DOCX file
Latest
class CommentsXml
extends XmlFileWithContentTypes
import { CommentsXml } from "https://deno.land/x/docxml@5.15.3/mod.ts";

Methods

protected
toNode(): Promise<Document>
add(meta: Omit<Comment, "id" | "contents">, contents: Comment["contents"])

Add a comment to the DOCX file and return its new identifier. You should reference this identifier from the document using the Comment, CommentRangeStart and CommentRangeEnd components.

has(id: number)

Check whether or not a comment with the given identifier already exists.

Static Methods

fromArchive(
archive: Archive,
contentTypes: ContentTypesXml,
location: string,
): Promise<CommentsXml>

Instantiate this class by looking at the DOCX XML for it.