libreoffice
Version:
A simple and fast node.js module for converting office documents to different formats
21 lines (20 loc) • 618 B
TypeScript
/// <reference types="node" />
declare module "libreoffice-convert" {
function convert(
document: Buffer,
format: string,
filter: string | undefined,
callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void
): void;
function convertWithOptions(
document: Buffer,
format: string,
filter: string | undefined,
options: {
tmpOptions?: Record<string | number | symbol, unknown>;
asyncOptions?: { times?: number; interval?: number };
sofficeBinaryPaths?: string[];
},
callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void
): void;
}