2023-07-02 10:22:02 +08:00

30 lines
903 B
TypeScript

export interface Options {
inWrapper?: boolean;
ignoreWidth?: boolean;
ignoreHeight?: boolean;
ignoreFonts?: boolean;
breakPages?: boolean;
debug?: boolean;
experimental?: boolean;
className?: string;
trimXmlDeclaration?: boolean;
renderHeaders?: boolean;
renderFooters?: boolean;
renderFootnotes?: boolean;
renderEndnotes?: boolean;
ignoreLastRenderedPageBreak?: boolean;
useBase64URL?: boolean;
useMathMLPolyfill?: boolean;
renderChanges?: boolean;
}
export interface JsDocxPreview {
preview: (src: string | ArrayBuffer | Blob) => Promise<any>,
setOptions: (options: Options) => void,
setRequestOptions: (requestOptions?: any) => void,
destroy: ()=> void,
}
declare const jsPreviewDocx: {
init: (container: HTMLElement, options?: Options, requestOptions?: any) => JsDocxPreview;
};
export default jsPreviewDocx;