@groupdocs/groupdocs.editor 24.6.0

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.
@@ -0,0 +1,10 @@
1
+ <html>
2
+ <head>
3
+ <title>GroupDocs - End User License Agreement (EULA)</title>
4
+ <meta http-equiv="refresh" content="0; url=https://company.groupdocs.com/legal/eula" />
5
+ </head>
6
+ <body>
7
+ <p>Please wait. You'll be redirected to the online version of EULA.</p>
8
+ <p>If it fails to redirect then please go the following link manually: <a href="https://company.groupdocs.com/legal/eula">https://company.groupdocs.com/legal/eula</a></p>
9
+ </body>
10
+ </html>
package/README.md ADDED
@@ -0,0 +1,128 @@
1
+
2
+ # GroupDocs.Editor for Node.js via Java
3
+
4
+ GroupDocs.Editor for Node.js is a document editing API developed by GroupDocs, a part of Aspose. It allows developers to integrate document editing functionality into their applications.
5
+
6
+ ## Node.js Editor API Features
7
+
8
+ - Edit document content in any web-browser.
9
+ - Edit document pages separately.
10
+ - Customizable resource management options for CSS, fonts & images.
11
+ - Render documents to HTML for editing.
12
+ - Extract document text along with words' coordinates.
13
+ - Extract basic information about source documents such as file type, pages count, and so on.
14
+ - Auto-detect document type.
15
+ - Replace missing font or use custom fonts for rendering.
16
+ - Edit word processing documents in a flow or paged mode.
17
+ - Fetch language information for multilingual document editing.
18
+ - Extract font information to provide consistent editing and appearance behavior.
19
+ - Edit multi-tabbed spreadsheets.
20
+ - Supports DSV (Delimiter-Separated Values) documents.
21
+ - Specify separator, flexible numeric, and data conversion for CSV & TSV files.
22
+ - Optimize memory usage for large CSV & TSV files.
23
+ - Fix incorrect XML document structure.
24
+ - Recognize URIs and email addresses in XML files.
25
+ - Set character encoding of the input text document.
26
+ - Grab document metadata information.
27
+ - Fetch whole HTML document or BODY content.
28
+ - Get an HTML document along with all its resources (stylesheets, images).
29
+ - Open any supported format file in HTML format and save it to disk.
30
+ - Fetch HTML markup from DB or remote storage.
31
+
32
+ ## Supported File Formats for Editing
33
+
34
+
35
+ GroupDocs.Editor supports editing a wide range of document formats across various categories. Below are the supported formats:
36
+
37
+ #### WordProcessing family formats
38
+
39
+ DOC, DOCX, DOCM, DOT, DOTX, DOTM, FlatOPC, ODT, OTT, RTF, WordML
40
+
41
+ #### Spreadsheet family formats
42
+
43
+ XLS, XLT, XLSX, XLSM, XLTX, XLTM, XLSB, XLAM, SpreadsheetML, ODS, FODS, SXC, DIF (Import, Export, Auto Detection), DSV (Import only), CSV (Import, Export, Auto Detection), TSV (Import, Export, Auto Detection)
44
+
45
+ #### Presentation family formats
46
+
47
+ PPT, PPTX, PPTM, PPS, PPSX, PPSM, POT, POTX, POTM, ODP, OTP, FODP (Create, Import, Auto Detection)
48
+
49
+ #### Fixed-layout family formats
50
+
51
+ PDF
52
+
53
+ #### Email family formats
54
+
55
+ EML, EMLX, MSG, MBOX, TNEF, MHT, PST, OFT, OST, VCF (Auto Detection only), ICS (Auto Detection only)
56
+
57
+ #### eBook family formats
58
+
59
+ ePub, MOBI, AZW3
60
+
61
+ #### Markup formats
62
+
63
+ HTML (Import, Auto Detection only), MHTML, CHM (Import, Auto Detection only), XML (Import, Auto Detection only), JSON (Import, Auto Detection only), MD
64
+
65
+ #### Other formats
66
+
67
+ TXT (Import, Export, Auto Detection)
68
+
69
+ ## Platform Independence
70
+
71
+ GroupDocs.Editor for Node.js does not require any external software or third-party tool to be installed. GroupDocs.Editor for Node.js supports any 32-bit or 64-bit operating system where Node.js is installed.
72
+
73
+ ### Installation
74
+
75
+ To install the library, use the following command:
76
+
77
+ ```bash
78
+ npm install @groupdocs/groupdocs.editor
79
+ ```
80
+
81
+ ### Load document As Responsive HTML using Node.js
82
+
83
+ ```javascript
84
+ const inputPath = Constants.SAMPLE_DOCX;
85
+
86
+ // Load document as file via path and without load options
87
+ const editor1 = new Editor(inputPath);
88
+ editor1.dispose();
89
+
90
+ // Load document as file via path and with load options
91
+ const wordLoadOptions = new WordProcessingLoadOptions();
92
+ wordLoadOptions.setPassword("some password");
93
+ const editor2 = new Editor(inputPath, wordLoadOptions);
94
+ editor2.dispose();
95
+ ```
96
+
97
+ ### Edit DOCX As Protected PDF via Node.js
98
+
99
+ ```javascript
100
+ const inputFilePath = Constants.SAMPLE_DOCX;
101
+ const editor = new Editor(inputFilePath, new WordProcessingLoadOptions());
102
+ const defaultWordProcessingDoc = await editor.edit();
103
+
104
+ // Modify its content somehow. Because there is no attached WYSIWYG-editor, this code simulates document editing
105
+ let allEmbeddedInsideString = defaultWordProcessingDoc.getEmbeddedHtml();
106
+ let allEmbeddedInsideStringEdited = allEmbeddedInsideString.replace("Subtitle", "Edited subtitle");// Modified version
107
+
108
+ // Create new EditableDocument instance from modified HTML content
109
+ const editedDoc = EditableDocument.fromMarkup(allEmbeddedInsideStringEdited, null);
110
+
111
+ // Save edited document as RTF, specified through file path
112
+ const outputRtfPath = Constants.getOutputFilePath("editedDoc", "rtf");
113
+ const rtfSaveOptions = new WordProcessingSaveOptions(WordProcessingFormats.Rtf);
114
+
115
+ await editor.save(editedDoc, outputRtfPath, rtfSaveOptions);
116
+ ```
117
+
118
+ ## Resources
119
+
120
+ - [Home](https://www.groupdocs.com/)
121
+ - [Product Page](https://products.groupdocs.com/editor/nodejs)
122
+ - [Documentation](https://docs.groupdocs.com/editor/nodejs/)
123
+ - [Blog](https://blog.groupdocs.com/)
124
+ - [API Reference](https://apireference.groupdocs.com/editor/nodejs)
125
+ - [Code Samples](https://github.com/groupdocs-editor/GroupDocs.Editor-for-Node.js-via-Java)
126
+ - [Free Support](https://forum.groupdocs.com/c/editor/)
127
+ - [Temporary License](https://purchase.groupdocs.com/temporary-license)
128
+ ```
package/index.js ADDED
@@ -0,0 +1,24 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ (() => {
5
+ function checkFileExists(filePath) {
6
+ try {
7
+ fs.accessSync(filePath, fs.constants.F_OK);
8
+ return true;
9
+ } catch {
10
+ return false;
11
+ }
12
+ }
13
+
14
+ if (!checkFileExists(path.join(__dirname, 'lib/groupdocs-editor-nodejs-24.4.jar'))) {
15
+ console.warn('\x1b[33m%s\x1b[0m', `File groupdocs-editor-nodejs-24.4.jar not found in the lib directory.\nPlease navigate to the package directory:`);
16
+ console.log('\n cd node_modules/@groupdocs/groupdocs.editor\n');
17
+ console.warn('\x1b[33m%s\x1b[0m', `Then download the JAR file using the command:`);
18
+ console.log('\n npm run postinstall\n');
19
+ process.exit(1)
20
+ }
21
+ else {
22
+ module.exports = require("./lib/groupdocs.editor");
23
+ }
24
+ })()
@@ -0,0 +1,251 @@
1
+ const path = require('path')
2
+ const java = require('java')
3
+ const os = require('os')
4
+
5
+ if (os.platform() === 'darwin') {
6
+ java.options.push('-Djava.awt.headless=true')
7
+ }
8
+
9
+ java.asyncOptions = {
10
+ asyncSuffix: 'Async',
11
+ syncSuffix: '',
12
+ }
13
+
14
+ java.classpath.push(path.join(__dirname, '/groupdocs-editor-nodejs-24.4.jar'))
15
+
16
+ exports = module.exports
17
+
18
+ function __typeof__(objClass) {
19
+ if (objClass !== undefined && objClass.constructor) {
20
+ const strFun = objClass.constructor.toString()
21
+ let className = strFun.substr(0, strFun.indexOf('('))
22
+ className = className.replace('function', '')
23
+ return className.replace(/(^\s*)|(\s*$)/gi, '')
24
+ }
25
+ return typeof objClass
26
+ }
27
+
28
+ /** STREAM HELPERS * */
29
+ exports.readDataFromStream = function (readStream) {
30
+ return new Promise((resolve, reject) => {
31
+ const inputStreamBuffer = new exports.StreamBuffer()
32
+ readStream.on('data', chunk => {
33
+ inputStreamBuffer.write(chunk)
34
+ })
35
+ readStream.on('end', () => {
36
+ try {
37
+ resolve(inputStreamBuffer.toInputStream())
38
+ } catch (err) {
39
+ reject(err);
40
+ }
41
+ });
42
+ });
43
+ }
44
+
45
+ exports.readBytesFromStream = function (readStream, callback) {
46
+ const inputStreamBuffer = new exports.StreamBuffer()
47
+ readStream.on('data', chunk => {
48
+ inputStreamBuffer.write(chunk)
49
+ })
50
+ readStream.on('end', () => {
51
+ const array = Array.from(inputStreamBuffer.toByteArray())
52
+ const javaArray = java.newArray('byte', array)
53
+ callback(javaArray)
54
+ })
55
+ }
56
+
57
+ exports.TagRenderingCase = {
58
+ FirstLetterUpperCase : 2,
59
+ LowerCase : 0,
60
+ UpperCase : 1,
61
+ },
62
+ exports.MailMessageOutput = {
63
+ All : 511,
64
+ Attachments : 128,
65
+ Bcc : 32,
66
+ Body : 1,
67
+ Cc : 16,
68
+ Common : 123,
69
+ Date : 4,
70
+ From : 64,
71
+ Metadata : 256,
72
+ None : 0,
73
+ Subject : 2,
74
+ To : 8,
75
+ },
76
+ exports.MarkdownImageLoadingAction = {
77
+ Default : 0,
78
+ Skip : 1,
79
+ UserProvided : 2,
80
+ },
81
+ exports.PdfCompliance = {
82
+ Pdf17 : 0,
83
+ Pdf20 : 1,
84
+ PdfA1a : 2,
85
+ PdfA1b : 3,
86
+ PdfA2a : 4,
87
+ PdfA2u : 5,
88
+ PdfUa1 : 6,
89
+ },
90
+ exports.TextLeadingSpacesOptions = {
91
+ ConvertToIndent : 0,
92
+ Preserve : 1,
93
+ Trim : 2,
94
+ },
95
+ exports.TextTrailingSpacesOptions = {
96
+ Preserve : 1,
97
+ Trim : 0,
98
+ },
99
+
100
+ exports.EditableDocument = java.import("com.groupdocs.editor.EditableDocument");
101
+ exports.Editor = java.import("com.groupdocs.editor.Editor");
102
+ exports.EncryptedException = java.import("com.groupdocs.editor.EncryptedException");
103
+ exports.IncorrectPasswordException = java.import("com.groupdocs.editor.IncorrectPasswordException");
104
+ exports.InvalidFormatException = java.import("com.groupdocs.editor.InvalidFormatException");
105
+ exports.PasswordRequiredException = java.import("com.groupdocs.editor.PasswordRequiredException");
106
+ exports.StreamBuffer = java.import("com.groupdocs.editor.StreamBuffer");
107
+ exports.ArgumentNullException = java.import("com.groupdocs.editor.exception.ArgumentNullException");
108
+ exports.GroupDocsException = java.import("com.groupdocs.editor.exception.GroupDocsException");
109
+ exports.InvalidOperationException = java.import("com.groupdocs.editor.exception.InvalidOperationException");
110
+ exports.LicenseException = java.import("com.groupdocs.editor.exception.LicenseException");
111
+ exports.EBookFormats = java.import("com.groupdocs.editor.formats.EBookFormats");
112
+ exports.EmailFormats = java.import("com.groupdocs.editor.formats.EmailFormats");
113
+ exports.FixedLayoutFormats = java.import("com.groupdocs.editor.formats.FixedLayoutFormats");
114
+ exports.PresentationFormats = java.import("com.groupdocs.editor.formats.PresentationFormats");
115
+ exports.SpreadsheetFormats = java.import("com.groupdocs.editor.formats.SpreadsheetFormats");
116
+ exports.TextualFormats = java.import("com.groupdocs.editor.formats.TextualFormats");
117
+ exports.WordProcessingFormats = java.import("com.groupdocs.editor.formats.WordProcessingFormats");
118
+ exports.Event = java.import("com.groupdocs.editor.handler.Event");
119
+ exports.EventArgs = java.import("com.groupdocs.editor.handler.EventArgs");
120
+ exports.ArgbColor = java.import("com.groupdocs.editor.htmlcss.css.datatypes.ArgbColor");
121
+ exports.ArgbColors = java.import("com.groupdocs.editor.htmlcss.css.datatypes.ArgbColors");
122
+ exports.Length = java.import("com.groupdocs.editor.htmlcss.css.datatypes.Length");
123
+ exports.Ratio = java.import("com.groupdocs.editor.htmlcss.css.datatypes.Ratio");
124
+ exports.FontSize = java.import("com.groupdocs.editor.htmlcss.css.properties.FontSize");
125
+ exports.FontStyle = java.import("com.groupdocs.editor.htmlcss.css.properties.FontStyle");
126
+ exports.FontWeight = java.import("com.groupdocs.editor.htmlcss.css.properties.FontWeight");
127
+ exports.TextDecorationLineType = java.import("com.groupdocs.editor.htmlcss.css.properties.TextDecorationLineType");
128
+ exports.BorderCollapse = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.BorderCollapse");
129
+ exports.CaptionSide = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.CaptionSide");
130
+ exports.Hyphens = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.Hyphens");
131
+ exports.PointerEvents = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.PointerEvents");
132
+ exports.TextAlign = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.TextAlign");
133
+ exports.TextAlignLast = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.TextAlignLast");
134
+ exports.TextTransform = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.TextTransform");
135
+ exports.VerticalAlign = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.VerticalAlign");
136
+ exports.WhiteSpace = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.WhiteSpace");
137
+ exports.WordWrap = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.WordWrap");
138
+ exports.WritingMode = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.WritingMode");
139
+ exports.Top = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.coordinate.Top");
140
+ exports.BoxSizing = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.flow.BoxSizing");
141
+ exports.Clear = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.flow.Clear");
142
+ exports.Display = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.flow.Display");
143
+ exports.Float = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.flow.Float");
144
+ exports.Overflow = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.flow.Overflow");
145
+ exports.Position = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.flow.Position");
146
+ exports.Visibility = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.flow.Visibility");
147
+ exports.FontSizeDecl = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.font.FontSizeDecl");
148
+ exports.FontStretch = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.font.FontStretch");
149
+ exports.FontStyleDecl = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.font.FontStyleDecl");
150
+ exports.FontVariant = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.font.FontVariant");
151
+ exports.FontWeightDecl = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.font.FontWeightDecl");
152
+ exports.TextRendering = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.font.TextRendering");
153
+ exports.ListStylePosition = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.liststyle.ListStylePosition");
154
+ exports.PageBreakAfter = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.pagings.PageBreakAfter");
155
+ exports.PageBreakBefore = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.pagings.PageBreakBefore");
156
+ exports.TextDecorationLine = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.textdecoration.TextDecorationLine");
157
+ exports.TextDecorationStyle = java.import("com.groupdocs.editor.htmlcss.css.specificdeclarations.textdecoration.TextDecorationStyle");
158
+ exports.InvalidFontFormatException = java.import("com.groupdocs.editor.htmlcss.exceptions.InvalidFontFormatException");
159
+ exports.InvalidImageFormatException = java.import("com.groupdocs.editor.htmlcss.exceptions.InvalidImageFormatException");
160
+ exports.ResourceTypeDetector = java.import("com.groupdocs.editor.htmlcss.resources.ResourceTypeDetector");
161
+ exports.AudioType = java.import("com.groupdocs.editor.htmlcss.resources.audio.AudioType");
162
+ exports.Mp3Audio = java.import("com.groupdocs.editor.htmlcss.resources.audio.Mp3Audio");
163
+ exports.EotFont = java.import("com.groupdocs.editor.htmlcss.resources.fonts.EotFont");
164
+ exports.FontType = java.import("com.groupdocs.editor.htmlcss.resources.fonts.FontType");
165
+ exports.OtfFont = java.import("com.groupdocs.editor.htmlcss.resources.fonts.OtfFont");
166
+ exports.TtfFont = java.import("com.groupdocs.editor.htmlcss.resources.fonts.TtfFont");
167
+ exports.Woff2Font = java.import("com.groupdocs.editor.htmlcss.resources.fonts.Woff2Font");
168
+ exports.WoffFont = java.import("com.groupdocs.editor.htmlcss.resources.fonts.WoffFont");
169
+ exports.Dimensions = java.import("com.groupdocs.editor.htmlcss.resources.images.Dimensions");
170
+ exports.ImageType = java.import("com.groupdocs.editor.htmlcss.resources.images.ImageType");
171
+ exports.BmpImage = java.import("com.groupdocs.editor.htmlcss.resources.images.raster.BmpImage");
172
+ exports.GifImage = java.import("com.groupdocs.editor.htmlcss.resources.images.raster.GifImage");
173
+ exports.IconImage = java.import("com.groupdocs.editor.htmlcss.resources.images.raster.IconImage");
174
+ exports.JpegImage = java.import("com.groupdocs.editor.htmlcss.resources.images.raster.JpegImage");
175
+ exports.PngImage = java.import("com.groupdocs.editor.htmlcss.resources.images.raster.PngImage");
176
+ exports.TiffImage = java.import("com.groupdocs.editor.htmlcss.resources.images.raster.TiffImage");
177
+ exports.EmfImage = java.import("com.groupdocs.editor.htmlcss.resources.images.vector.EmfImage");
178
+ exports.SvgImage = java.import("com.groupdocs.editor.htmlcss.resources.images.vector.SvgImage");
179
+ exports.WmfImage = java.import("com.groupdocs.editor.htmlcss.resources.images.vector.WmfImage");
180
+ exports.CssText = java.import("com.groupdocs.editor.htmlcss.resources.textual.CssText");
181
+ exports.TextType = java.import("com.groupdocs.editor.htmlcss.resources.textual.TextType");
182
+ exports.XmlText = java.import("com.groupdocs.editor.htmlcss.resources.textual.XmlText");
183
+ exports.QuoteType = java.import("com.groupdocs.editor.htmlcss.serialization.QuoteType");
184
+ exports.License = java.import("com.groupdocs.editor.license.License");
185
+ exports.Metered = java.import("com.groupdocs.editor.license.Metered");
186
+ exports.EbookDocumentInfo = java.import("com.groupdocs.editor.metadata.EbookDocumentInfo");
187
+ exports.EmailDocumentInfo = java.import("com.groupdocs.editor.metadata.EmailDocumentInfo");
188
+ exports.FixedLayoutDocumentInfo = java.import("com.groupdocs.editor.metadata.FixedLayoutDocumentInfo");
189
+ exports.MarkdownDocumentInfo = java.import("com.groupdocs.editor.metadata.MarkdownDocumentInfo");
190
+ exports.PresentationDocumentInfo = java.import("com.groupdocs.editor.metadata.PresentationDocumentInfo");
191
+ exports.SpreadsheetDocumentInfo = java.import("com.groupdocs.editor.metadata.SpreadsheetDocumentInfo");
192
+ exports.TextualDocumentInfo = java.import("com.groupdocs.editor.metadata.TextualDocumentInfo");
193
+ exports.WordProcessingDocumentInfo = java.import("com.groupdocs.editor.metadata.WordProcessingDocumentInfo");
194
+ exports.DelimitedTextEditOptions = java.import("com.groupdocs.editor.options.DelimitedTextEditOptions");
195
+ exports.DelimitedTextSaveOptions = java.import("com.groupdocs.editor.options.DelimitedTextSaveOptions");
196
+ exports.EbookEditOptions = java.import("com.groupdocs.editor.options.EbookEditOptions");
197
+ exports.EbookSaveOptions = java.import("com.groupdocs.editor.options.EbookSaveOptions");
198
+ exports.EmailEditOptions = java.import("com.groupdocs.editor.options.EmailEditOptions");
199
+ exports.EmailSaveOptions = java.import("com.groupdocs.editor.options.EmailSaveOptions");
200
+ exports.HtmlSaveOptions = java.import("com.groupdocs.editor.options.HtmlSaveOptions");
201
+ exports.MarkdownEditOptions = java.import("com.groupdocs.editor.options.MarkdownEditOptions");
202
+ exports.MarkdownImageLoadArgs = java.import("com.groupdocs.editor.options.MarkdownImageLoadArgs");
203
+ exports.MarkdownSaveOptions = java.import("com.groupdocs.editor.options.MarkdownSaveOptions");
204
+ exports.MhtmlSaveOptions = java.import("com.groupdocs.editor.options.MhtmlSaveOptions");
205
+ exports.PageRange = java.import("com.groupdocs.editor.options.PageRange");
206
+ exports.PdfSaveOptions = java.import("com.groupdocs.editor.options.PdfSaveOptions");
207
+ exports.PresentationEditOptions = java.import("com.groupdocs.editor.options.PresentationEditOptions");
208
+ exports.PresentationLoadOptions = java.import("com.groupdocs.editor.options.PresentationLoadOptions");
209
+ exports.PresentationSaveOptions = java.import("com.groupdocs.editor.options.PresentationSaveOptions");
210
+ exports.SpreadsheetEditOptions = java.import("com.groupdocs.editor.options.SpreadsheetEditOptions");
211
+ exports.SpreadsheetLoadOptions = java.import("com.groupdocs.editor.options.SpreadsheetLoadOptions");
212
+ exports.SpreadsheetSaveOptions = java.import("com.groupdocs.editor.options.SpreadsheetSaveOptions");
213
+ exports.TextEditOptions = java.import("com.groupdocs.editor.options.TextEditOptions");
214
+ exports.TextSaveOptions = java.import("com.groupdocs.editor.options.TextSaveOptions");
215
+ exports.WordProcessingEditOptions = java.import("com.groupdocs.editor.options.WordProcessingEditOptions");
216
+ exports.WordProcessingLoadOptions = java.import("com.groupdocs.editor.options.WordProcessingLoadOptions");
217
+ exports.WordProcessingProtection = java.import("com.groupdocs.editor.options.WordProcessingProtection");
218
+ exports.WordProcessingSaveOptions = java.import("com.groupdocs.editor.options.WordProcessingSaveOptions");
219
+ exports.WorksheetProtection = java.import("com.groupdocs.editor.options.WorksheetProtection");
220
+ exports.XmlEditOptions = java.import("com.groupdocs.editor.options.XmlEditOptions");
221
+ exports.XpsSaveOptions = java.import("com.groupdocs.editor.options.XpsSaveOptions");
222
+ exports.CultureInfo = java.import("com.groupdocs.editor.utils.CultureInfo");
223
+
224
+ exports.LengthUnit = java.import("com.groupdocs.editor.htmlcss.css.datatypes.LengthUnit");
225
+ exports.FontEmbeddingOptions = java.import("com.groupdocs.editor.options.FontEmbeddingOptions");
226
+ exports.FontExtractionOptions = java.import("com.groupdocs.editor.options.FontExtractionOptions");
227
+ exports.MarkdownTableContentAlignment = java.import("com.groupdocs.editor.options.MarkdownTableContentAlignment");
228
+ exports.TextDirection = java.import("com.groupdocs.editor.options.TextDirection");
229
+ exports.WordProcessingProtectionType = java.import("com.groupdocs.editor.options.WordProcessingProtectionType");
230
+ exports.WorksheetProtectionType = java.import("com.groupdocs.editor.options.WorksheetProtectionType");
231
+ exports.PathUtils = java.import("com.groupdocs.editor.utils.PathUtils");
232
+ exports.Path = java.import("com.groupdocs.editor.utils.common.Path");
233
+
234
+ exports.StandardCharsets = java.import("java.nio.charset.StandardCharsets");
235
+ exports.Locale = java.import("java.util.Locale");
236
+ exports.StreamBuffer = class StreamBuffer {
237
+ constructor() {
238
+ const self = java.newInstanceSync('com.groupdocs.editor.StreamBuffer')
239
+
240
+ self.write = function (chunk) {
241
+ const array = Array.from(chunk)
242
+ const javaArray = java.newArray('byte', array)
243
+ self.__proto__.write.call(self, javaArray, 0, javaArray.length)
244
+ }
245
+ return self
246
+ }
247
+ }
248
+
249
+
250
+
251
+
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@groupdocs/groupdocs.editor",
3
+ "version": "24.6.0",
4
+ "description": "GroupDocs.Editor for Node.js is a document editing API developed by GroupDocs, a part of Aspose. It allows developers to integrate document editing functionality into their applications.",
5
+ "scripts": {
6
+ "postinstall": ""
7
+ },
8
+ "main": "index.js",
9
+ "keywords": [
10
+ "DOC", "DOCX", "DOCM", "DOT", "DOTX", "DOTM", "FlatOPC", "ODT", "OTT", "RTF", "WordML",
11
+ "XLS", "XLT", "XLSX", "XLSM", "XLTX", "XLTM", "XLSB", "XLAM", "SpreadsheetML", "ODS", "FODS", "SXC",
12
+ "PPT", "PPTX", "PPTM", "PPS", "PPSX", "PPSM", "POT", "POTX", "POTM", "ODP", "OTP",
13
+ "PDF",
14
+ "EML", "EMLX", "MSG", "MBOX", "TNEF", "MHT", "PST", "OFT", "OST",
15
+ "ePub", "MOBI", "AZW3",
16
+ "markdown",
17
+ "WordProcessing", "Spreadsheet", "Presentation", "Fixed-layout", "Email", "eBook"
18
+ ],
19
+ "author": "Aspose",
20
+ "license": "End User License Agreement.html",
21
+ "dependencies": {
22
+ "java": "^0.13.0"
23
+ },
24
+ "directories": {
25
+ "lib": "lib"
26
+ }
27
+ }
28
+