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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenDocument Format (ODF) Parser
|
|
3
|
+
*
|
|
4
|
+
* **ODF Overview:**
|
|
5
|
+
* ODF is an open standard for office documents (ISO/IEC 26300).
|
|
6
|
+
* Used by LibreOffice, OpenOffice, and other applications.
|
|
7
|
+
*
|
|
8
|
+
* **File Structure:**
|
|
9
|
+
* ODF files are ZIP archives containing:
|
|
10
|
+
* - `mimetype` - File type identification
|
|
11
|
+
* - `content.xml` - Main document content
|
|
12
|
+
* - `styles.xml` - Style definitions
|
|
13
|
+
* - `meta.xml` - Document metadata
|
|
14
|
+
* - `Pictures/*` - Embedded images
|
|
15
|
+
*
|
|
16
|
+
* **Supported Formats:**
|
|
17
|
+
* - ODT: Text documents (application/vnd.oasis.opendocument.text)
|
|
18
|
+
* - ODP: Presentations (application/vnd.oasis.opendocument.presentation)
|
|
19
|
+
* - ODS: Spreadsheets (application/vnd.oasis.opendocument.spreadsheet)
|
|
20
|
+
*
|
|
21
|
+
* @module OpenOfficeParser
|
|
22
|
+
*/
|
|
23
|
+
/// <reference types="node" />
|
|
24
|
+
import { OfficeParserAST, OfficeParserConfig } from '../types';
|
|
25
|
+
/**
|
|
26
|
+
* Parses an OpenOffice document (.odt, .odp, .ods) and extracts content.
|
|
27
|
+
*
|
|
28
|
+
* @param buffer - The ODF file as a Buffer
|
|
29
|
+
* @param config - Parser configuration
|
|
30
|
+
* @returns A promise resolving to the parsed AST
|
|
31
|
+
*/
|
|
32
|
+
export declare const parseOpenOffice: (buffer: Buffer, config: OfficeParserConfig) => Promise<OfficeParserAST>;
|