chromiumly
Version:
A lightweight Typescript library that interacts with Gotenberg's different modules to convert a variety of document formats to PDF files.
16 lines (15 loc) • 402 B
TypeScript
import { PathLike, ReadStream } from 'fs';
export type PathLikeOrReadStream = PathLike | ReadStream;
export type Metadata = {
[key: string]: boolean | number | string | string[];
};
export type DownloadFrom = {
url: string;
extraHttpHeaders?: Record<string, string>;
};
export type Split = {
mode: 'pages' | 'intervals';
span: string;
unify?: boolean;
flatten?: boolean;
};