Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/docxml/mod.ts>Image

An experimental Deno tool to transform XML to DOCX with a little XPath- and component based configuration
Go to Latest
class Image
extends Component<ImageProps, ImageChild>
import { Image } from "https://deno.land/x/docxml@2.4.2/mod.ts";

A component that represents an image in your DOCX document. You can create a new image by passing any promise to an Uint8Array into the data prop, eg. get it from your file system or from a web request.

Properties

private
relationshipId: string | null

Methods

ensureRelationship(relationships: Relationships)
toNode(_ancestry: ComponentAncestor[]): Node

Static Properties

readonly
children: string[]
readonly
mixed: boolean

Static Methods

fromNode(node: Node): Image
matchesNode(node: Node): boolean