Skip to main content
Glama
word-generator.d.tsโ€ข2.59 kB
/** * Word Generator - Create Word documents using docx library */ import type { WordDocumentOptions, WordElement, WordStyles } from '../types.js'; export declare class WordGenerator { createDocument(options: WordDocumentOptions): Promise<Buffer>; addTableOfContents(filename: string, title?: string, hyperlinks?: boolean, levels?: number): Promise<Buffer>; mailMerge(templatePath: string, dataSource: Record<string, string | number>[], outputFilename?: string): Promise<Buffer[]>; findReplace(filename: string, find: string, replace: string, matchCase?: boolean, matchWholeWord?: boolean, formatting?: any): Promise<Buffer>; addComment(filename: string, text: string, comment: string, author?: string): Promise<Buffer>; formatStyles(filename: string, styles: WordStyles): Promise<Buffer>; insertImage(filename: string, imagePath: string, position?: { x?: number; y?: number; }, size?: { width?: number; height?: number; }, wrapping?: string): Promise<Buffer>; addHeaderFooter(filename: string, type: 'header' | 'footer', content: WordElement[], sectionType?: 'default' | 'first' | 'even'): Promise<Buffer>; compareDocuments(originalPath: string, revisedPath: string, author?: string): Promise<Buffer>; convertToPDF(filename: string): Promise<Buffer>; mergeDocuments(documentPaths: string[], outputPath: string): Promise<Buffer>; private processElements; private createParagraph; private createTable; private getAlignment; private loadDocument; enableTrackChanges(filename: string, enable: boolean, author?: string): Promise<Buffer>; addFootnotes(filename: string, footnotes: Array<{ text: string; note: string; type?: 'footnote' | 'endnote'; }>): Promise<Buffer>; addBookmarks(filename: string, bookmarks: Array<{ name: string; text: string; }>): Promise<Buffer>; addSectionBreaks(filename: string, breaks: Array<{ position: number; type: 'nextPage' | 'continuous' | 'evenPage' | 'oddPage'; }>): Promise<Buffer>; addTextBoxes(filename: string, textBoxes: Array<{ text: string; position?: { x: number; y: number; }; width?: number; height?: number; }>): Promise<Buffer>; addCrossReferences(filename: string, references: Array<{ bookmarkName: string; referenceType: 'pageNumber' | 'text' | 'above/below'; insertText?: string; }>): Promise<Buffer>; } //# sourceMappingURL=word-generator.d.ts.map

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/consigcody94/office-whisperer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server