officeparser 5.2.2 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +411 -163
- package/dist/OfficeParser.d.ts +90 -0
- package/dist/OfficeParser.js +217 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.js +108 -0
- package/dist/officeparser.browser.js +152 -0
- package/dist/officeparser.browser.js.map +7 -0
- package/dist/parsers/ExcelParser.d.ts +33 -0
- package/dist/parsers/ExcelParser.js +643 -0
- package/dist/parsers/OpenOfficeParser.d.ts +32 -0
- package/dist/parsers/OpenOfficeParser.js +1399 -0
- package/dist/parsers/PdfParser.d.ts +68 -0
- package/dist/parsers/PdfParser.js +850 -0
- package/dist/parsers/PowerPointParser.d.ts +33 -0
- package/dist/parsers/PowerPointParser.js +778 -0
- package/dist/parsers/RtfParser.d.ts +164 -0
- package/dist/parsers/RtfParser.js +1641 -0
- package/dist/parsers/WordParser.d.ts +79 -0
- package/dist/parsers/WordParser.js +787 -0
- package/dist/types.d.ts +615 -0
- package/dist/types.js +2 -0
- package/dist/utils/chartUtils.d.ts +7 -0
- package/dist/utils/chartUtils.js +255 -0
- package/dist/utils/errorUtils.d.ts +58 -0
- package/dist/utils/errorUtils.js +120 -0
- package/dist/utils/imageUtils.d.ts +67 -0
- package/dist/utils/imageUtils.js +133 -0
- package/dist/utils/ocrUtils.d.ts +39 -0
- package/dist/utils/ocrUtils.js +61 -0
- package/dist/utils/xmlUtils.d.ts +83 -0
- package/dist/utils/xmlUtils.js +158 -0
- package/dist/utils/zipUtils.d.ts +74 -0
- package/dist/utils/zipUtils.js +112 -0
- package/package.json +44 -17
- package/officeParser.js +0 -790
- package/typings/officeParser.d.ts +0 -33
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
export type OfficeParserConfig = {
|
|
3
|
-
/**
|
|
4
|
-
* Flag to show all the logs to console in case of an error irrespective of your own handling. Default is false.
|
|
5
|
-
*/
|
|
6
|
-
outputErrorToConsole?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* The delimiter used for every new line in places that allow multiline text like word. Default is \n.
|
|
9
|
-
*/
|
|
10
|
-
newlineDelimiter?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Flag to ignore notes from parsing in files like powerpoint. Default is false. It includes notes in the parsed text by default.
|
|
13
|
-
*/
|
|
14
|
-
ignoreNotes?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Flag, if set to true, will collectively put all the parsed text from notes at last in files like powerpoint. Default is false. It puts each notes right after its main slide content. If ignoreNotes is set to true, this flag is also ignored.
|
|
17
|
-
*/
|
|
18
|
-
putNotesAtLast?: boolean;
|
|
19
|
-
};
|
|
20
|
-
/** Main async function with callback to execute parseOffice for supported files
|
|
21
|
-
* @param {string | Buffer | ArrayBuffer} srcFile File path or file buffers or Javascript ArrayBuffer
|
|
22
|
-
* @param {function} callback Callback function that returns value or error
|
|
23
|
-
* @param {OfficeParserConfig} [config={}] [OPTIONAL]: Config Object for officeParser
|
|
24
|
-
* @returns {void}
|
|
25
|
-
*/
|
|
26
|
-
export function parseOffice(srcFile: string | Buffer | ArrayBuffer, callback: Function, config?: OfficeParserConfig): void;
|
|
27
|
-
/** Main async function that can be used with await to execute parseOffice. Or it can be used with promises.
|
|
28
|
-
* @param {string | Buffer | ArrayBuffer} srcFile File path or file buffers or Javascript ArrayBuffer
|
|
29
|
-
* @param {OfficeParserConfig} [config={}] [OPTIONAL]: Config Object for officeParser
|
|
30
|
-
* @returns {Promise<string>}
|
|
31
|
-
*/
|
|
32
|
-
export function parseOfficeAsync(srcFile: string | Buffer | ArrayBuffer, config?: OfficeParserConfig): Promise<string>;
|
|
33
|
-
//# sourceMappingURL=officeParser.d.ts.map
|