mirror of
https://github.com/501351981/vue-office.git
synced 2025-07-05 07:11:24 +08:00
31 lines
942 B
TypeScript
31 lines
942 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>;
|
|
save: (fileName?: string) => void;
|
|
setOptions: (options: Options) => void;
|
|
setRequestOptions: (requestOptions?: any) => void;
|
|
destroy: ()=> void;
|
|
}
|
|
declare const jsPreviewDocx: {
|
|
init: (container: HTMLElement, options?: Options, requestOptions?: any) => JsDocxPreview;
|
|
};
|
|
export default jsPreviewDocx; |