@groupdocs/groupdocs.watermark 24.3.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,71 @@
1
+ **GroupDocs.Watermark for Node.js via Java** offers read & write watermark support for the documents of 40+ file formats. Supports watermark search, customization & extraction as well.
2
+
3
+ ## Node.js Watermark API Features
4
+ - Add text and image watermark to supported document formats.
5
+ - Search and remove text and image watermarks.
6
+ - Search watermarks in particular objects.
7
+ - Apply a watermark to images inside a document.
8
+ - Work with existing watermark objects.
9
+ - Extract information of watermark objects in a document.
10
+ - Perform PDF document rasterization.
11
+ - Fetch document basic information.
12
+ - Search watermarks by text formatting (font, color, etc.).
13
+ - Set background image for charts in Excel and PowerPoint documents.
14
+ - Work with PDF and email attachments.
15
+
16
+ ## Supported File Formats
17
+ **Microsoft Word:** DOC, DOT, DOCX, DOCM, DOTX, DOTM, RTF
18
+ **Microsoft Excel:** XLSX, XLSM, XLTM, XLT, XLTX, XLS
19
+ **Microsoft PowerPoint:** PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, PPS
20
+ **Microsoft Visio:** VSD, VDX, VSDX, VSTX, VSS, VSSX, VSDM, VSSM, VSTM, VTX, VSX
21
+ **OpenOffice:** ODT
22
+ **Email:** EML, EMLX, OFT, MSG
23
+ **Fixed Layout:** PDF
24
+ **Image:** BMP, GIF, JPG/JPEG/JPE, JP2, PNG, TIFF, WEBP
25
+
26
+ ## Supported Watermark Types
27
+ - Text stamps
28
+ - Text labels
29
+ - Text as an image watermark
30
+ - Image watermark
31
+
32
+ ## Getting Started with GroupDocs.Watermark for Node.js via Java
33
+ ### Installation
34
+
35
+ From the command line:
36
+
37
+ npm i @groupdocs/groupdocs.watermark
38
+
39
+ ### Adding text watermak to the PDF document using Node.js
40
+
41
+ ```js
42
+ const loadOptions = new groupdocsWatermark.PdfLoadOptions();
43
+ const watermarker = new groupdocsWatermark.Watermarker(pdfDocumentPath, loadOptions);
44
+
45
+ const watermark = new groupdocsWatermark.TextWatermark('Test watermark', new groupdocsWatermark.Font('Arial', 36, groupdocsWatermark.FontStyle.Bold | groupdocsWatermark.FontStyle.Italic));
46
+ const options = new groupdocsWatermark.PdfXObjectWatermarkOptions();
47
+ options.setPageIndex(0);
48
+
49
+ watermarker.add(watermark, options);
50
+
51
+ watermarker.save(outputFilePath);
52
+ ```
53
+
54
+ ### Search for watermarks in the document using Node.js
55
+
56
+ ```js
57
+ // Create watermarker
58
+ const watermarker = new groupdocsWatermark.Watermarker(documentPath);
59
+
60
+ // Search by exact string
61
+ const textSearchCriteria = new groupdocsWatermark.TextSearchCriteria("2017");
62
+
63
+ // Find all possible watermarks containing some specific text
64
+ const possibleWatermarks = watermarker.search(textSearchCriteria);
65
+
66
+ // Output the results
67
+ console.log(`Found ${possibleWatermarks.getCount()} possible watermark(s)`);
68
+
69
+ ```
70
+
71
+ [Home](https://www.groupdocs.com/) | [Product Page](https://products.groupdocs.com/watermark/nodejs-java) | [Documentation](https://docs.groupdocs.com/watermark/nodejs-java/) | [Blog](https://blog.groupdocs.com/category/watermark/) | [API Reference](https://apireference.groupdocs.com/watermark/nodejs-java) | [Code Samples](https://github.com/groupdocs-watermark/GroupDocs.watermark-for-Node.js-via-Java) | [Free Support](forum.groupdocs.com/c/watermark) | [Temporary License](https://purchase.groupdocs.com/temporary-license)
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-watermark-nodejs-23.12.jar'))) {
15
+ console.warn('\x1b[33m%s\x1b[0m', `File groupdocs-watermark-nodejs-23.12.jar not found in the lib directory.\nPlease navigate to the package directory:`);
16
+ console.log('\n cd node_modules/@groupdocs/groupdocs.watermark\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(0)
20
+ }
21
+ else {
22
+ module.exports = require("./lib/groupdocs.watermark");
23
+ }
24
+ })()
@@ -0,0 +1,819 @@
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-watermark-nodejs-23.12.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, callback) {
30
+ const inputStreamBuffer = new exports.StreamBuffer()
31
+ readStream.on('data', chunk => {
32
+ inputStreamBuffer.write(chunk)
33
+ })
34
+ readStream.on('end', () => {
35
+ callback(inputStreamBuffer.toInputStream())
36
+ })
37
+ }
38
+
39
+ exports.readBytesFromStream = function (readStream, callback) {
40
+ const inputStreamBuffer = new exports.StreamBuffer()
41
+ readStream.on('data', chunk => {
42
+ inputStreamBuffer.write(chunk)
43
+ })
44
+ readStream.on('end', () => {
45
+ const array = Array.from(inputStreamBuffer.toByteArray())
46
+ const javaArray = java.newArray('byte', array)
47
+ callback(javaArray)
48
+ })
49
+ }
50
+
51
+ exports.Dimension = {
52
+ Height : 1,
53
+ Width : 0,
54
+ },
55
+ exports.DiagramWatermarkPlacementType = {
56
+ AllPages : 2,
57
+ BackgroundPages : 1,
58
+ Default : 0,
59
+ ForegroundPages : 0,
60
+ SeparateBackgrounds : 3,
61
+ },
62
+ exports.EmailBodyType = {
63
+ Html : 1,
64
+ PlainText : 0,
65
+ },
66
+ exports.OfficeDashStyle = {
67
+ Dash : 2,
68
+ DashDot : 3,
69
+ DashDotDot : 4,
70
+ Default : 0,
71
+ Dot : 1,
72
+ Solid : 0,
73
+ },
74
+ exports.OfficeHeaderFooterType = {
75
+ FooterEven : 4,
76
+ FooterFirst : 5,
77
+ FooterPrimary : 3,
78
+ HeaderEven : 1,
79
+ HeaderFirst : 2,
80
+ HeaderPrimary : 0,
81
+ },
82
+ exports.OfficeLineStyle = {
83
+ Default : 0,
84
+ Double : 1,
85
+ Single : 0,
86
+ ThickThin : 2,
87
+ ThinThick : 3,
88
+ Triple : 4,
89
+ },
90
+ exports.PdfArtifactSubtype = {
91
+ Background : 3,
92
+ Footer : 1,
93
+ Header : 0,
94
+ Undefined : 4,
95
+ Watermark : 2,
96
+ },
97
+ exports.PdfArtifactType = {
98
+ Background : 3,
99
+ Layout : 1,
100
+ Page : 2,
101
+ Pagination : 0,
102
+ Undefined : 4,
103
+ },
104
+ exports.PdfCryptoAlgorithm = {
105
+ AESx128 : 2,
106
+ AESx256 : 3,
107
+ RC4x128 : 1,
108
+ RC4x40 : 0,
109
+ },
110
+ exports.PdfImageConversionFormat = {
111
+ Gif : 2,
112
+ Jpeg : 0,
113
+ Png : 1,
114
+ },
115
+ exports.PdfPermissions = {
116
+ AssembleDocument : 1024,
117
+ ExtractContent : 16,
118
+ ExtractContentWithDisabilities : 512,
119
+ FillForm : 256,
120
+ ModifyContent : 8,
121
+ ModifyTextAnnotations : 32,
122
+ PrintDocument : 4,
123
+ PrintingQuality : 2048,
124
+ },
125
+ exports.PresentationHyperlinkActionType = {
126
+ MouseClick : 0,
127
+ MouseOver : 1,
128
+ },
129
+ exports.PresentationShapeType = {
130
+ AlternateProcessFlow : 159,
131
+ BackOrPreviousButton : 166,
132
+ BeginningButton : 168,
133
+ BentArrow : 63,
134
+ BentConnector2 : 97,
135
+ BentConnector3 : 98,
136
+ BentConnector4 : 99,
137
+ BentConnector5 : 100,
138
+ BentUpArrow : 50,
139
+ Bevel : 83,
140
+ BlankButton : 161,
141
+ BlockArc : 41,
142
+ BracePair : 95,
143
+ BracketPair : 94,
144
+ Callout1 : 105,
145
+ Callout1WithAccent : 108,
146
+ Callout1WithBorder : 111,
147
+ Callout1WithBorderAndAccent : 114,
148
+ Callout2 : 106,
149
+ Callout2WithAccent : 109,
150
+ Callout2WithBorder : 112,
151
+ Callout2WithBorderAndAccent : 115,
152
+ Callout3 : 107,
153
+ Callout3WithAccent : 110,
154
+ Callout3WithBorder : 113,
155
+ Callout3WithBorderAndAccent : 116,
156
+ CalloutCloud : 120,
157
+ CalloutDownArrow : 59,
158
+ CalloutLeftArrow : 56,
159
+ CalloutLeftRightArrow : 60,
160
+ CalloutQuadArrow : 62,
161
+ CalloutRightArrow : 57,
162
+ CalloutUpArrow : 58,
163
+ CalloutUpDownArrow : 61,
164
+ CalloutWedgeEllipse : 119,
165
+ CalloutWedgeRectangle : 117,
166
+ CalloutWedgeRoundRectangle : 118,
167
+ Can : 74,
168
+ ChartPlus : 187,
169
+ ChartStar : 186,
170
+ ChartX : 185,
171
+ Chevron : 38,
172
+ Chord : 88,
173
+ CircularArrow : 65,
174
+ Cloud : 121,
175
+ CollateFlow : 148,
176
+ ConnectorFlow : 143,
177
+ Corner : 86,
178
+ CornerTabs : 182,
179
+ Cube : 73,
180
+ CurvedArc : 89,
181
+ CurvedConnector2 : 101,
182
+ CurvedConnector3 : 102,
183
+ CurvedConnector4 : 103,
184
+ CurvedConnector5 : 104,
185
+ CurvedDownArrow : 71,
186
+ CurvedLeftArrow : 69,
187
+ CurvedRightArrow : 68,
188
+ CurvedUpArrow : 70,
189
+ Custom : 0,
190
+ Decagon : 14,
191
+ DecisionFlow : 133,
192
+ DelayFlow : 158,
193
+ DiagonalStripe : 87,
194
+ Diamond : 6,
195
+ DisplayFlow : 157,
196
+ DivideMath : 179,
197
+ DocumentButton : 170,
198
+ DocumentFlow : 137,
199
+ Dodecagon : 15,
200
+ Donut : 42,
201
+ DoubleWave : 130,
202
+ DownArrow : 47,
203
+ EightPointedStar : 20,
204
+ Ellipse : 35,
205
+ EllipseRibbon : 124,
206
+ EllipseRibbon2 : 125,
207
+ EndButton : 167,
208
+ EqualMath : 180,
209
+ ExtractFlow : 150,
210
+ FivePointedStar : 17,
211
+ FoldedCorner : 82,
212
+ ForwardOrNextButton : 165,
213
+ FourPointedStar : 16,
214
+ Frame : 84,
215
+ Funnel : 175,
216
+ Gear6 : 173,
217
+ Gear9 : 174,
218
+ HalfFrame : 85,
219
+ Heart : 76,
220
+ HelpButton : 163,
221
+ Heptagon : 12,
222
+ Hexagon : 11,
223
+ HomeButton : 162,
224
+ HomePlate : 37,
225
+ HorizontalScroll : 128,
226
+ InformationButton : 164,
227
+ InputOutputFlow : 134,
228
+ InternalStorageFlow : 136,
229
+ IrregularSeal1 : 80,
230
+ IrregularSeal2 : 81,
231
+ LeftArrow : 45,
232
+ LeftBrace : 92,
233
+ LeftBracket : 90,
234
+ LeftCircularArrow : 66,
235
+ LeftRightArrow : 51,
236
+ LeftRightCircularArrow : 67,
237
+ LeftRightRibbon : 126,
238
+ LeftRightUpArrow : 54,
239
+ LeftUpArrow : 53,
240
+ LightningBolt : 75,
241
+ Line : 1,
242
+ LineInverse : 2,
243
+ MagneticDiskFlow : 155,
244
+ MagneticDrumFlow : 156,
245
+ MagneticTapeFlow : 154,
246
+ ManualInputFlow : 141,
247
+ ManualOperationFlow : 142,
248
+ MergeFlow : 151,
249
+ MinusMath : 177,
250
+ Moon : 78,
251
+ MovieButton : 172,
252
+ MultiDocumentFlow : 138,
253
+ MultiplyMath : 178,
254
+ NonIsoscelesTrapezoid : 9,
255
+ NoSmoking : 43,
256
+ NotchedRightArrow : 49,
257
+ NotDefined : -1,
258
+ NotEqualMath : 181,
259
+ Octagon : 13,
260
+ OfflineStorageFlow : 152,
261
+ OffPageConnectorFlow : 160,
262
+ OneRoundCornerRectangle : 27,
263
+ OneSnipCornerRectangle : 31,
264
+ OneSnipOneRoundCornerRectangle : 30,
265
+ OnlineStorageFlow : 153,
266
+ OrFlow : 147,
267
+ Parallelogram : 7,
268
+ Pentagon : 10,
269
+ Pie : 40,
270
+ PieWedge : 39,
271
+ Plaque : 34,
272
+ PlaqueTabs : 184,
273
+ Plus : 131,
274
+ PlusMath : 176,
275
+ PredefinedProcessFlow : 135,
276
+ PreparationFlow : 140,
277
+ ProcessFlow : 132,
278
+ PunchedCardFlow : 144,
279
+ PunchedTapeFlow : 145,
280
+ QuadArrow : 55,
281
+ Rectangle : 5,
282
+ ReturnButton : 169,
283
+ Ribbon : 122,
284
+ Ribbon2 : 123,
285
+ RightArrow : 44,
286
+ RightBrace : 93,
287
+ RightBracket : 91,
288
+ RightTriangle : 4,
289
+ RoundCornerRectangle : 26,
290
+ SevenPointedStar : 19,
291
+ SixPointedStar : 18,
292
+ SixteenPointedStar : 23,
293
+ SmileyFace : 79,
294
+ SortFlow : 149,
295
+ SoundButton : 171,
296
+ SquareTabs : 183,
297
+ StraightConnector1 : 96,
298
+ StripedRightArrow : 48,
299
+ SummingJunctionFlow : 146,
300
+ Sun : 77,
301
+ SwooshArrow : 72,
302
+ Teardrop : 36,
303
+ TenPointedStar : 21,
304
+ TerminatorFlow : 139,
305
+ ThirtyTwoPointedStar : 25,
306
+ Trapezoid : 8,
307
+ Triangle : 3,
308
+ TwelvePointedStar : 22,
309
+ TwentyFourPointedStar : 24,
310
+ TwoDiagonalRoundCornerRectangle : 29,
311
+ TwoDiagonalSnipCornerRectangle : 33,
312
+ TwoSamesideRoundCornerRectangle : 28,
313
+ TwoSamesideSnipCornerRectangle : 32,
314
+ UpArrow : 46,
315
+ UpDownArrow : 52,
316
+ UTurnArrow : 64,
317
+ VerticalScroll : 127,
318
+ Wave : 129,
319
+ },
320
+ exports.SpreadsheetHeaderFooterSectionType = {
321
+ Center : 1,
322
+ Left : 0,
323
+ Right : 2,
324
+ },
325
+ exports.WordProcessingHorizontalAlignment = {
326
+ Center : 2,
327
+ Inside : 4,
328
+ Left : 1,
329
+ None : 0,
330
+ Outside : 5,
331
+ Right : 3,
332
+ },
333
+ exports.WordProcessingProtectionType = {
334
+ AllowOnlyComments : 1,
335
+ AllowOnlyFormFields : 2,
336
+ AllowOnlyRevisions : 0,
337
+ ReadOnly : 3,
338
+ },
339
+ exports.WordProcessingRelativeHorizontalPosition = {
340
+ Character : 3,
341
+ Column : 2,
342
+ InsideMargin : 6,
343
+ LeftMargin : 4,
344
+ Margin : 0,
345
+ OutsideMargin : 7,
346
+ Page : 1,
347
+ RightMargin : 5,
348
+ },
349
+ exports.WordProcessingRelativeVerticalPosition = {
350
+ BottomMargin : 5,
351
+ InsideMargin : 6,
352
+ Line : 3,
353
+ Margin : 0,
354
+ OutsideMargin : 7,
355
+ Page : 1,
356
+ Paragraph : 2,
357
+ TopMargin : 4,
358
+ },
359
+ exports.WordProcessingShapeType = {
360
+ AccentBorderCallout1 : 50,
361
+ AccentBorderCallout2 : 51,
362
+ AccentBorderCallout3 : 52,
363
+ AccentBorderCallout90 : 181,
364
+ AccentCallout1 : 44,
365
+ AccentCallout2 : 45,
366
+ AccentCallout3 : 46,
367
+ AccentCallout90 : 179,
368
+ ActionButtonBackPrevious : 194,
369
+ ActionButtonBeginning : 196,
370
+ ActionButtonBlank : 189,
371
+ ActionButtonDocument : 198,
372
+ ActionButtonEnd : 195,
373
+ ActionButtonForwardNext : 193,
374
+ ActionButtonHelp : 191,
375
+ ActionButtonHome : 190,
376
+ ActionButtonInformation : 192,
377
+ ActionButtonMovie : 200,
378
+ ActionButtonReturn : 197,
379
+ ActionButtonSound : 199,
380
+ Arc : 19,
381
+ Arrow : 13,
382
+ Balloon : 17,
383
+ BentArrow : 91,
384
+ BentConnector2 : 33,
385
+ BentConnector3 : 34,
386
+ BentConnector4 : 35,
387
+ BentConnector5 : 36,
388
+ BentUpArrow : 90,
389
+ Bevel : 84,
390
+ BlockArc : 95,
391
+ BorderCallout1 : 47,
392
+ BorderCallout2 : 48,
393
+ BorderCallout3 : 49,
394
+ BorderCallout90 : 180,
395
+ BracePair : 186,
396
+ BracketPair : 185,
397
+ Callout1 : 41,
398
+ Callout2 : 42,
399
+ Callout3 : 43,
400
+ Callout90 : 178,
401
+ Can : 22,
402
+ Chevron : 55,
403
+ CircularArrow : 99,
404
+ CloudCallout : 106,
405
+ Cube : 16,
406
+ CurvedConnector2 : 37,
407
+ CurvedConnector3 : 38,
408
+ CurvedConnector4 : 39,
409
+ CurvedConnector5 : 40,
410
+ CurvedDownArrow : 105,
411
+ CurvedLeftArrow : 103,
412
+ CurvedRightArrow : 102,
413
+ CurvedUpArrow : 104,
414
+ CustomShape : 100,
415
+ DiagonalCornersRounded : 209,
416
+ DiagonalCornersSnipped : 205,
417
+ Diamond : 4,
418
+ Donut : 23,
419
+ DoubleWave : 188,
420
+ DownArrow : 67,
421
+ DownArrowCallout : 80,
422
+ Ellipse : 3,
423
+ EllipseRibbon : 107,
424
+ EllipseRibbon2 : 108,
425
+ FlowChartAlternateProcess : 176,
426
+ FlowChartCollate : 125,
427
+ FlowChartConnector : 120,
428
+ FlowChartDecision : 110,
429
+ FlowChartDelay : 135,
430
+ FlowChartDisplay : 134,
431
+ FlowChartDocument : 114,
432
+ FlowChartExtract : 127,
433
+ FlowChartInputOutput : 111,
434
+ FlowChartInternalStorage : 113,
435
+ FlowChartMagneticDisk : 132,
436
+ FlowChartMagneticDrum : 133,
437
+ FlowChartMagneticTape : 131,
438
+ FlowChartManualInput : 118,
439
+ FlowChartManualOperation : 119,
440
+ FlowChartMerge : 128,
441
+ FlowChartMultidocument : 115,
442
+ FlowChartOfflineStorage : 129,
443
+ FlowChartOffpageConnector : 177,
444
+ FlowChartOnlineStorage : 130,
445
+ FlowChartOr : 124,
446
+ FlowChartPredefinedProcess : 112,
447
+ FlowChartPreparation : 117,
448
+ FlowChartProcess : 109,
449
+ FlowChartPunchedCard : 121,
450
+ FlowChartPunchedTape : 122,
451
+ FlowChartSort : 126,
452
+ FlowChartSummingJunction : 123,
453
+ FlowChartTerminator : 116,
454
+ FoldedCorner : 65,
455
+ Group : -1,
456
+ Heart : 74,
457
+ Hexagon : 9,
458
+ HomePlate : 15,
459
+ HorizontalScroll : 98,
460
+ Image : 75,
461
+ IrregularSeal1 : 71,
462
+ IrregularSeal2 : 72,
463
+ LeftArrow : 66,
464
+ LeftArrowCallout : 77,
465
+ LeftBrace : 87,
466
+ LeftBracket : 85,
467
+ LeftRightArrow : 69,
468
+ LeftRightArrowCallout : 81,
469
+ LeftRightUpArrow : 182,
470
+ LeftUpArrow : 89,
471
+ LightningBolt : 73,
472
+ Line : 20,
473
+ MinValue : -2,
474
+ Moon : 184,
475
+ NonPrimitive : 0,
476
+ NoSmoking : 57,
477
+ NotchedRightArrow : 94,
478
+ Octagon : 10,
479
+ OleControl : 201,
480
+ OleObject : -2,
481
+ Parallelogram : 7,
482
+ Pentagon : 56,
483
+ Plaque : 21,
484
+ Plus : 11,
485
+ QuadArrow : 76,
486
+ QuadArrowCallout : 83,
487
+ Rectangle : 1,
488
+ Ribbon : 53,
489
+ Ribbon2 : 54,
490
+ RightArrowCallout : 78,
491
+ RightBrace : 88,
492
+ RightBracket : 86,
493
+ RightTriangle : 6,
494
+ RoundRectangle : 2,
495
+ Seal : 18,
496
+ Seal16 : 59,
497
+ Seal24 : 92,
498
+ Seal32 : 60,
499
+ Seal4 : 187,
500
+ Seal8 : 58,
501
+ SingleCornerRounded : 207,
502
+ SingleCornerSnipped : 203,
503
+ SmileyFace : 96,
504
+ Star : 12,
505
+ StraightConnector1 : 32,
506
+ StripedRightArrow : 93,
507
+ Sun : 183,
508
+ TextArchDownCurve : 145,
509
+ TextArchDownPour : 149,
510
+ TextArchUpCurve : 144,
511
+ TextArchUpPour : 148,
512
+ TextBox : 202,
513
+ TextButtonCurve : 147,
514
+ TextButtonPour : 151,
515
+ TextCanDown : 175,
516
+ TextCanUp : 174,
517
+ TextCascadeDown : 155,
518
+ TextCascadeUp : 154,
519
+ TextChevron : 140,
520
+ TextChevronInverted : 141,
521
+ TextCircleCurve : 146,
522
+ TextCirclePour : 150,
523
+ TextCurve : 27,
524
+ TextCurveDown : 153,
525
+ TextCurveUp : 152,
526
+ TextDeflate : 161,
527
+ TextDeflateBottom : 163,
528
+ TextDeflateInflate : 166,
529
+ TextDeflateInflateDeflate : 167,
530
+ TextDeflateTop : 165,
531
+ TextFadeDown : 171,
532
+ TextFadeLeft : 169,
533
+ TextFadeRight : 168,
534
+ TextFadeUp : 170,
535
+ TextHexagon : 26,
536
+ TextInflate : 160,
537
+ TextInflateBottom : 162,
538
+ TextInflateTop : 164,
539
+ TextOctagon : 25,
540
+ TextOnCurve : 30,
541
+ TextOnRing : 31,
542
+ TextPlainText : 136,
543
+ TextRing : 29,
544
+ TextRingInside : 142,
545
+ TextRingOutside : 143,
546
+ TextSimple : 24,
547
+ TextSlantDown : 173,
548
+ TextSlantUp : 172,
549
+ TextStop : 137,
550
+ TextTriangle : 138,
551
+ TextTriangleInverted : 139,
552
+ TextWave : 28,
553
+ TextWave1 : 156,
554
+ TextWave2 : 157,
555
+ TextWave3 : 158,
556
+ TextWave4 : 159,
557
+ ThickArrow : 14,
558
+ TopCornersOneRoundedOneSnipped : 206,
559
+ TopCornersRounded : 208,
560
+ TopCornersSnipped : 204,
561
+ Trapezoid : 8,
562
+ Triangle : 5,
563
+ UpArrow : 68,
564
+ UpArrowCallout : 79,
565
+ UpDownArrow : 70,
566
+ UpDownArrowCallout : 82,
567
+ UturnArrow : 101,
568
+ VerticalScroll : 97,
569
+ Wave : 64,
570
+ WedgeEllipseCallout : 63,
571
+ WedgeRectCallout : 61,
572
+ WedgeRRectCallout : 62,
573
+ },
574
+ exports.WordProcessingVerticalAlignment = {
575
+ Bottom : 3,
576
+ Center : 2,
577
+ Inline : -1,
578
+ Inside : 4,
579
+ None : 0,
580
+ Outside : 5,
581
+ Top : 1,
582
+ },
583
+ exports.WordProcessingFlipOrientation = {
584
+ Both : 3,
585
+ Horizontal : 1,
586
+ None : 0,
587
+ Vertical : 2,
588
+ },
589
+ exports.WordProcessingLockType = {
590
+ AllowOnlyComments : 1,
591
+ AllowOnlyFormFields : 2,
592
+ AllowOnlyRevisions : 0,
593
+ NoLock : -1,
594
+ ReadOnly : 3,
595
+ ReadOnlyWithEditableContent : 4,
596
+ },
597
+ exports.FormattedTextFragmentCollectionType = {
598
+ NoFormattedText : 2,
599
+ SingleFragment : 1,
600
+ UnlimitedFragments : 0,
601
+ },
602
+
603
+ exports.PagesSelector = java.import("com.groupdocs.watermark.PagesSelector");
604
+ exports.PagesSetup = java.import("com.groupdocs.watermark.PagesSetup");
605
+ exports.PdfFindVectorWatermarkStategy = java.import("com.groupdocs.watermark.PdfFindVectorWatermarkStategy");
606
+ exports.PdfOperator = java.import("com.groupdocs.watermark.PdfOperator");
607
+ exports.PdfOperatorCollection = java.import("com.groupdocs.watermark.PdfOperatorCollection");
608
+ exports.PdfVectorPossibleWatermark = java.import("com.groupdocs.watermark.PdfVectorPossibleWatermark");
609
+ exports.PresentationPreviewOptions = java.import("com.groupdocs.watermark.PresentationPreviewOptions");
610
+ exports.Thickness = java.import("com.groupdocs.watermark.Thickness");
611
+ exports.VectorSearchCriteria = java.import("com.groupdocs.watermark.VectorSearchCriteria");
612
+ exports.Watermarker = java.import("com.groupdocs.watermark.Watermarker");
613
+ exports.WatermarkerSettings = java.import("com.groupdocs.watermark.WatermarkerSettings");
614
+ exports.XImageHelper = java.import("com.groupdocs.watermark.XImageHelper");
615
+ exports.PageInfo = java.import("com.groupdocs.watermark.common.PageInfo");
616
+ exports.AsposeImageContainer = java.import("com.groupdocs.watermark.contents.AsposeImageContainer");
617
+ exports.AttachmentWatermarkableImage = java.import("com.groupdocs.watermark.contents.AttachmentWatermarkableImage");
618
+ exports.ContentsProxy = java.import("com.groupdocs.watermark.contents.ContentsProxy");
619
+ exports.DiagramContent = java.import("com.groupdocs.watermark.contents.DiagramContent");
620
+ exports.DiagramWatermarkableImage = java.import("com.groupdocs.watermark.contents.DiagramWatermarkableImage");
621
+ exports.EmailContent = java.import("com.groupdocs.watermark.contents.EmailContent");
622
+ exports.GifImageContent = java.import("com.groupdocs.watermark.contents.GifImageContent");
623
+ exports.ImageContent = java.import("com.groupdocs.watermark.contents.ImageContent");
624
+ exports.ImageUtils = java.import("com.groupdocs.watermark.contents.ImageUtils");
625
+ exports.OfficeLineFormat = java.import("com.groupdocs.watermark.contents.OfficeLineFormat");
626
+ exports.PdfContent = java.import("com.groupdocs.watermark.contents.PdfContent");
627
+ exports.PdfPage = java.import("com.groupdocs.watermark.contents.PdfPage");
628
+ exports.PdfTextFormattedTextFragmentCollection = java.import("com.groupdocs.watermark.contents.PdfTextFormattedTextFragmentCollection");
629
+ exports.PdfWatermarkableImage = java.import("com.groupdocs.watermark.contents.PdfWatermarkableImage");
630
+ exports.PresentationContent = java.import("com.groupdocs.watermark.contents.PresentationContent");
631
+ exports.PresentationShapeSettings = java.import("com.groupdocs.watermark.contents.PresentationShapeSettings");
632
+ exports.PresentationWatermarkableImage = java.import("com.groupdocs.watermark.contents.PresentationWatermarkableImage");
633
+ exports.SpreadsheetCellFormattedTextFragmentCollection = java.import("com.groupdocs.watermark.contents.SpreadsheetCellFormattedTextFragmentCollection");
634
+ exports.SpreadsheetContent = java.import("com.groupdocs.watermark.contents.SpreadsheetContent");
635
+ exports.SpreadsheetHeaderFooter = java.import("com.groupdocs.watermark.contents.SpreadsheetHeaderFooter");
636
+ exports.SpreadsheetHeaderFooterCollection = java.import("com.groupdocs.watermark.contents.SpreadsheetHeaderFooterCollection");
637
+ exports.SpreadsheetHeaderFooterSectionCollection = java.import("com.groupdocs.watermark.contents.SpreadsheetHeaderFooterSectionCollection");
638
+ exports.SpreadsheetWatermarkableImage = java.import("com.groupdocs.watermark.contents.SpreadsheetWatermarkableImage");
639
+ exports.TiffImageContent = java.import("com.groupdocs.watermark.contents.TiffImageContent");
640
+ exports.WatermarkableImageCollection = java.import("com.groupdocs.watermark.contents.WatermarkableImageCollection");
641
+ exports.WordProcessingContent = java.import("com.groupdocs.watermark.contents.WordProcessingContent");
642
+ exports.WordProcessingHeaderFooter = java.import("com.groupdocs.watermark.contents.WordProcessingHeaderFooter");
643
+ exports.WordProcessingPageSplitter = java.import("com.groupdocs.watermark.contents.WordProcessingPageSplitter");
644
+ exports.WordProcessingSectionCollection = java.import("com.groupdocs.watermark.contents.WordProcessingSectionCollection");
645
+ exports.WordProcessingTextFormattedTextFragmentCollection = java.import("com.groupdocs.watermark.contents.WordProcessingTextFormattedTextFragmentCollection");
646
+ exports.WordProcessingUtils = java.import("com.groupdocs.watermark.contents.WordProcessingUtils");
647
+ exports.WordProcessingWatermarkableImage = java.import("com.groupdocs.watermark.contents.WordProcessingWatermarkableImage");
648
+ exports.DetachedImageException = java.import("com.groupdocs.watermark.exceptions.DetachedImageException");
649
+ exports.EncryptionIsNotSupportedException = java.import("com.groupdocs.watermark.exceptions.EncryptionIsNotSupportedException");
650
+ exports.FontNotFoundException = java.import("com.groupdocs.watermark.exceptions.FontNotFoundException");
651
+ exports.ImageEffectsForTextWatermarkException = java.import("com.groupdocs.watermark.exceptions.ImageEffectsForTextWatermarkException");
652
+ exports.InvalidPasswordException = java.import("com.groupdocs.watermark.exceptions.InvalidPasswordException");
653
+ exports.PreviewNotSupportedException = java.import("com.groupdocs.watermark.exceptions.PreviewNotSupportedException");
654
+ exports.TextEffectsForImageWatermarkException = java.import("com.groupdocs.watermark.exceptions.TextEffectsForImageWatermarkException");
655
+ exports.UnexpectedDocumentStructureException = java.import("com.groupdocs.watermark.exceptions.UnexpectedDocumentStructureException");
656
+ exports.UnknownLoadOptionsTypeException = java.import("com.groupdocs.watermark.exceptions.UnknownLoadOptionsTypeException");
657
+ exports.UnknownWatermarkOptionsTypeException = java.import("com.groupdocs.watermark.exceptions.UnknownWatermarkOptionsTypeException");
658
+ exports.UnsupportedFileTypeException = java.import("com.groupdocs.watermark.exceptions.UnsupportedFileTypeException");
659
+ exports.WatermarkException = java.import("com.groupdocs.watermark.exceptions.WatermarkException");
660
+ exports.License = java.import("com.groupdocs.watermark.licenses.License");
661
+ exports.Metered = java.import("com.groupdocs.watermark.licenses.Metered");
662
+ exports.WatermarkAssemblyConstants = java.import("com.groupdocs.watermark.licenses.WatermarkAssemblyConstants");
663
+ exports.DiagramLoadOptions = java.import("com.groupdocs.watermark.options.DiagramLoadOptions");
664
+ exports.DiagramPageWatermarkOptions = java.import("com.groupdocs.watermark.options.DiagramPageWatermarkOptions");
665
+ exports.DiagramPreviewOptions = java.import("com.groupdocs.watermark.options.DiagramPreviewOptions");
666
+ exports.DiagramSaveOptions = java.import("com.groupdocs.watermark.options.DiagramSaveOptions");
667
+ exports.DiagramShapeWatermarkOptions = java.import("com.groupdocs.watermark.options.DiagramShapeWatermarkOptions");
668
+ exports.EmailLoadOptions = java.import("com.groupdocs.watermark.options.EmailLoadOptions");
669
+ exports.EmailPreviewOptions = java.import("com.groupdocs.watermark.options.EmailPreviewOptions");
670
+ exports.EmailSaveOptions = java.import("com.groupdocs.watermark.options.EmailSaveOptions");
671
+ exports.GifImageLoadOptions = java.import("com.groupdocs.watermark.options.GifImageLoadOptions");
672
+ exports.GifImageSaveOptions = java.import("com.groupdocs.watermark.options.GifImageSaveOptions");
673
+ exports.GifImageWatermarkOptions = java.import("com.groupdocs.watermark.options.GifImageWatermarkOptions");
674
+ exports.ImageLoadOptions = java.import("com.groupdocs.watermark.options.ImageLoadOptions");
675
+ exports.ImageSaveOptions = java.import("com.groupdocs.watermark.options.ImageSaveOptions");
676
+ exports.LoadOptions = java.import("com.groupdocs.watermark.options.LoadOptions");
677
+ exports.MultiframeImageLoadOptions = java.import("com.groupdocs.watermark.options.MultiframeImageLoadOptions");
678
+ exports.MultiframeImageWatermarkOptions = java.import("com.groupdocs.watermark.options.MultiframeImageWatermarkOptions");
679
+ exports.OoxmlLoadOptions = java.import("com.groupdocs.watermark.options.OoxmlLoadOptions");
680
+ exports.PdfAnnotationWatermarkOptions = java.import("com.groupdocs.watermark.options.PdfAnnotationWatermarkOptions");
681
+ exports.PdfArtifactWatermarkOptions = java.import("com.groupdocs.watermark.options.PdfArtifactWatermarkOptions");
682
+ exports.PdfLoadOptions = java.import("com.groupdocs.watermark.options.PdfLoadOptions");
683
+ exports.PdfPreviewOptions = java.import("com.groupdocs.watermark.options.PdfPreviewOptions");
684
+ exports.PdfSaveOptions = java.import("com.groupdocs.watermark.options.PdfSaveOptions");
685
+ exports.PdfXObjectWatermarkOptions = java.import("com.groupdocs.watermark.options.PdfXObjectWatermarkOptions");
686
+ exports.PresentationImageEffects = java.import("com.groupdocs.watermark.options.PresentationImageEffects");
687
+ exports.PresentationLoadOptions = java.import("com.groupdocs.watermark.options.PresentationLoadOptions");
688
+ exports.PresentationSaveOptions = java.import("com.groupdocs.watermark.options.PresentationSaveOptions");
689
+ exports.PresentationTextEffects = java.import("com.groupdocs.watermark.options.PresentationTextEffects");
690
+ exports.PresentationWatermarkLayoutSlideOptions = java.import("com.groupdocs.watermark.options.PresentationWatermarkLayoutSlideOptions");
691
+ exports.PresentationWatermarkMasterHandoutSlideOptions = java.import("com.groupdocs.watermark.options.PresentationWatermarkMasterHandoutSlideOptions");
692
+ exports.PresentationWatermarkMasterNotesSlideOptions = java.import("com.groupdocs.watermark.options.PresentationWatermarkMasterNotesSlideOptions");
693
+ exports.PresentationWatermarkMasterSlideOptions = java.import("com.groupdocs.watermark.options.PresentationWatermarkMasterSlideOptions");
694
+ exports.PresentationWatermarkNoteSlideOptions = java.import("com.groupdocs.watermark.options.PresentationWatermarkNoteSlideOptions");
695
+ exports.PresentationWatermarkSlideOptions = java.import("com.groupdocs.watermark.options.PresentationWatermarkSlideOptions");
696
+ exports.PreviewOptions = java.import("com.groupdocs.watermark.options.PreviewOptions");
697
+ exports.SaveOptions = java.import("com.groupdocs.watermark.options.SaveOptions");
698
+ exports.SpreadsheetBackgroundWatermarkOptions = java.import("com.groupdocs.watermark.options.SpreadsheetBackgroundWatermarkOptions");
699
+ exports.SpreadsheetImageEffects = java.import("com.groupdocs.watermark.options.SpreadsheetImageEffects");
700
+ exports.SpreadsheetLoadOptions = java.import("com.groupdocs.watermark.options.SpreadsheetLoadOptions");
701
+ exports.SpreadsheetPreviewOptions = java.import("com.groupdocs.watermark.options.SpreadsheetPreviewOptions");
702
+ exports.SpreadsheetSaveOptions = java.import("com.groupdocs.watermark.options.SpreadsheetSaveOptions");
703
+ exports.SpreadsheetShapeSettings = java.import("com.groupdocs.watermark.options.SpreadsheetShapeSettings");
704
+ exports.SpreadsheetTextEffects = java.import("com.groupdocs.watermark.options.SpreadsheetTextEffects");
705
+ exports.SpreadsheetWatermarkHeaderFooterOptions = java.import("com.groupdocs.watermark.options.SpreadsheetWatermarkHeaderFooterOptions");
706
+ exports.SpreadsheetWatermarkModernWordArtOptions = java.import("com.groupdocs.watermark.options.SpreadsheetWatermarkModernWordArtOptions");
707
+ exports.SpreadsheetWatermarkShapeOptions = java.import("com.groupdocs.watermark.options.SpreadsheetWatermarkShapeOptions");
708
+ exports.TiffImageLoadOptions = java.import("com.groupdocs.watermark.options.TiffImageLoadOptions");
709
+ exports.TiffImageSaveOptions = java.import("com.groupdocs.watermark.options.TiffImageSaveOptions");
710
+ exports.TiffImageWatermarkOptions = java.import("com.groupdocs.watermark.options.TiffImageWatermarkOptions");
711
+ exports.WatermarkOptions = java.import("com.groupdocs.watermark.options.WatermarkOptions");
712
+ exports.WordProcessingImageEffects = java.import("com.groupdocs.watermark.options.WordProcessingImageEffects");
713
+ exports.WordProcessingLoadOptions = java.import("com.groupdocs.watermark.options.WordProcessingLoadOptions");
714
+ exports.WordProcessingPreviewOptions = java.import("com.groupdocs.watermark.options.WordProcessingPreviewOptions");
715
+ exports.WordProcessingSaveOptions = java.import("com.groupdocs.watermark.options.WordProcessingSaveOptions");
716
+ exports.WordProcessingShapeSettings = java.import("com.groupdocs.watermark.options.WordProcessingShapeSettings");
717
+ exports.WordProcessingTextEffects = java.import("com.groupdocs.watermark.options.WordProcessingTextEffects");
718
+ exports.WordProcessingWatermarkHeaderFooterOptions = java.import("com.groupdocs.watermark.options.WordProcessingWatermarkHeaderFooterOptions");
719
+ exports.WordProcessingWatermarkPagesOptions = java.import("com.groupdocs.watermark.options.WordProcessingWatermarkPagesOptions");
720
+ exports.WordProcessingWatermarkSectionOptions = java.import("com.groupdocs.watermark.options.WordProcessingWatermarkSectionOptions");
721
+ exports.ColorRange = java.import("com.groupdocs.watermark.search.ColorRange");
722
+ exports.DiagramCommentPossibleWatermark = java.import("com.groupdocs.watermark.search.DiagramCommentPossibleWatermark");
723
+ exports.DiagramHeaderFooterPossibleWatermark = java.import("com.groupdocs.watermark.search.DiagramHeaderFooterPossibleWatermark");
724
+ exports.DiagramHyperlinkPossibleWatermark = java.import("com.groupdocs.watermark.search.DiagramHyperlinkPossibleWatermark");
725
+ exports.DiagramShapePossibleWatermark = java.import("com.groupdocs.watermark.search.DiagramShapePossibleWatermark");
726
+ exports.EmailAttachedImagePossibleWatermark = java.import("com.groupdocs.watermark.search.EmailAttachedImagePossibleWatermark");
727
+ exports.EmailBodyTextPossibleWatermark = java.import("com.groupdocs.watermark.search.EmailBodyTextPossibleWatermark");
728
+ exports.EmailEmbeddedImagePossibleWatermark = java.import("com.groupdocs.watermark.search.EmailEmbeddedImagePossibleWatermark");
729
+ exports.EmailHtmlBodyTextPossibleWatermark = java.import("com.groupdocs.watermark.search.EmailHtmlBodyTextPossibleWatermark");
730
+ exports.EmailSubjectTextPossibleWatermark = java.import("com.groupdocs.watermark.search.EmailSubjectTextPossibleWatermark");
731
+ exports.FormattedTextFragmentCollection = java.import("com.groupdocs.watermark.search.FormattedTextFragmentCollection");
732
+ exports.HyperlinkPossibleWatermark = java.import("com.groupdocs.watermark.search.HyperlinkPossibleWatermark");
733
+ exports.ImageColorHistogramSearchCriteria = java.import("com.groupdocs.watermark.search.ImageColorHistogramSearchCriteria");
734
+ exports.ImageDctHashSearchCriteria = java.import("com.groupdocs.watermark.search.ImageDctHashSearchCriteria");
735
+ exports.ImageThumbnailSearchCriteria = java.import("com.groupdocs.watermark.search.ImageThumbnailSearchCriteria");
736
+ exports.IsImageSearchCriteria = java.import("com.groupdocs.watermark.search.IsImageSearchCriteria");
737
+ exports.IsTextSearchCriteria = java.import("com.groupdocs.watermark.search.IsTextSearchCriteria");
738
+ exports.PdfAnnotationPossibleWatermark = java.import("com.groupdocs.watermark.search.PdfAnnotationPossibleWatermark");
739
+ exports.PdfArtifactPossibleWatermark = java.import("com.groupdocs.watermark.search.PdfArtifactPossibleWatermark");
740
+ exports.PdfAttachedImagePossibleWatermark = java.import("com.groupdocs.watermark.search.PdfAttachedImagePossibleWatermark");
741
+ exports.PdfHyperlinkPossibleWatermark = java.import("com.groupdocs.watermark.search.PdfHyperlinkPossibleWatermark");
742
+ exports.PdfTextPossibleWatermark = java.import("com.groupdocs.watermark.search.PdfTextPossibleWatermark");
743
+ exports.PdfXObjectPossibleWatermark = java.import("com.groupdocs.watermark.search.PdfXObjectPossibleWatermark");
744
+ exports.PossibleWatermarkCollection = java.import("com.groupdocs.watermark.search.PossibleWatermarkCollection");
745
+ exports.PresentationBackgroundPossibleWatermark = java.import("com.groupdocs.watermark.search.PresentationBackgroundPossibleWatermark");
746
+ exports.PresentationChartBackgroundPossibleWatermark = java.import("com.groupdocs.watermark.search.PresentationChartBackgroundPossibleWatermark");
747
+ exports.PresentationHyperlinkPossibleWatermark = java.import("com.groupdocs.watermark.search.PresentationHyperlinkPossibleWatermark");
748
+ exports.PresentationShapePossibleWatermark = java.import("com.groupdocs.watermark.search.PresentationShapePossibleWatermark");
749
+ exports.RotateAngleSearchCriteria = java.import("com.groupdocs.watermark.search.RotateAngleSearchCriteria");
750
+ exports.SearchableObjects = java.import("com.groupdocs.watermark.search.SearchableObjects");
751
+ exports.SizeSearchCriteria = java.import("com.groupdocs.watermark.search.SizeSearchCriteria");
752
+ exports.SpreadsheetAttachedImagePossibleWatermark = java.import("com.groupdocs.watermark.search.SpreadsheetAttachedImagePossibleWatermark");
753
+ exports.SpreadsheetBackgroundPossibleWatermark = java.import("com.groupdocs.watermark.search.SpreadsheetBackgroundPossibleWatermark");
754
+ exports.SpreadsheetCellPossibleWatermark = java.import("com.groupdocs.watermark.search.SpreadsheetCellPossibleWatermark");
755
+ exports.SpreadsheetChartBackgroundPossibleWatermark = java.import("com.groupdocs.watermark.search.SpreadsheetChartBackgroundPossibleWatermark");
756
+ exports.SpreadsheetHeaderFooterPossibleWatermark = java.import("com.groupdocs.watermark.search.SpreadsheetHeaderFooterPossibleWatermark");
757
+ exports.SpreadsheetHyperlinkPossibleWatermark = java.import("com.groupdocs.watermark.search.SpreadsheetHyperlinkPossibleWatermark");
758
+ exports.SpreadsheetShapePossibleWatermark = java.import("com.groupdocs.watermark.search.SpreadsheetShapePossibleWatermark");
759
+ exports.TextFormattingSearchCriteria = java.import("com.groupdocs.watermark.search.TextFormattingSearchCriteria");
760
+ exports.TextSearchCriteria = java.import("com.groupdocs.watermark.search.TextSearchCriteria");
761
+ exports.WordProcessingShapePossibleWatermark = java.import("com.groupdocs.watermark.search.WordProcessingShapePossibleWatermark");
762
+ exports.WordProcessingTextHyperlinkPossibleWatermark = java.import("com.groupdocs.watermark.search.WordProcessingTextHyperlinkPossibleWatermark");
763
+ exports.WordProcessingTextPossibleWatermark = java.import("com.groupdocs.watermark.search.WordProcessingTextPossibleWatermark");
764
+ exports.Color = java.import("com.groupdocs.watermark.watermarks.Color");
765
+ exports.Font = java.import("com.groupdocs.watermark.watermarks.Font");
766
+ exports.ImageWatermark = java.import("com.groupdocs.watermark.watermarks.ImageWatermark");
767
+ exports.Margins = java.import("com.groupdocs.watermark.watermarks.Margins");
768
+ exports.TextWatermark = java.import("com.groupdocs.watermark.watermarks.TextWatermark");
769
+
770
+ exports.FileType = java.import("com.groupdocs.watermark.common.FileType");
771
+ exports.FormatFamily = java.import("com.groupdocs.watermark.common.FormatFamily");
772
+ exports.HorizontalAlignment = java.import("com.groupdocs.watermark.common.HorizontalAlignment");
773
+ exports.UnitOfMeasurement = java.import("com.groupdocs.watermark.common.UnitOfMeasurement");
774
+ exports.VerticalAlignment = java.import("com.groupdocs.watermark.common.VerticalAlignment");
775
+ exports.PdfAnnotationType = java.import("com.groupdocs.watermark.contents.PdfAnnotationType");
776
+ exports.PdfPageMarginType = java.import("com.groupdocs.watermark.contents.PdfPageMarginType");
777
+ exports.SpreadsheetAutoShapeType = java.import("com.groupdocs.watermark.contents.SpreadsheetAutoShapeType");
778
+ exports.SpreadsheetMsoDrawingType = java.import("com.groupdocs.watermark.contents.SpreadsheetMsoDrawingType");
779
+ exports.DiagramSearchableObjects = java.import("com.groupdocs.watermark.search.DiagramSearchableObjects");
780
+ exports.EmailSearchableObjects = java.import("com.groupdocs.watermark.search.EmailSearchableObjects");
781
+ exports.PdfSearchableObjects = java.import("com.groupdocs.watermark.search.PdfSearchableObjects");
782
+ exports.PresentationSearchableObjects = java.import("com.groupdocs.watermark.search.PresentationSearchableObjects");
783
+ exports.SpreadsheetSearchableObjects = java.import("com.groupdocs.watermark.search.SpreadsheetSearchableObjects");
784
+ exports.WordProcessingSearchableObjects = java.import("com.groupdocs.watermark.search.WordProcessingSearchableObjects");
785
+ exports.FontStyle = java.import("com.groupdocs.watermark.watermarks.FontStyle");
786
+ exports.MarginType = java.import("com.groupdocs.watermark.watermarks.MarginType");
787
+ exports.SizingType = java.import("com.groupdocs.watermark.watermarks.SizingType");
788
+ exports.TextAlignment = java.import("com.groupdocs.watermark.watermarks.TextAlignment");
789
+
790
+
791
+ exports.StreamBuffer = class StreamBuffer {
792
+ constructor() {
793
+ const self = java.newInstanceSync('com.groupdocs.watermark.contracts.StreamBuffer')
794
+
795
+ self.write = function (chunk) {
796
+ const array = Array.from(chunk)
797
+ const javaArray = java.newArray('byte', array)
798
+ self.__proto__.write.call(self, javaArray, 0, javaArray.length)
799
+ }
800
+ return self
801
+ }
802
+ }
803
+
804
+ /** STREAM METHODS * */
805
+ exports.License.setLicenseFromStream = function (license, licenseStream, callback) {
806
+ const inputStreamBuffer = new exports.StreamBuffer()
807
+ licenseStream.on('data', chunk => {
808
+ inputStreamBuffer.write(chunk)
809
+ })
810
+ licenseStream.on('end', () => {
811
+ let error
812
+ try {
813
+ license.setLicense(inputStreamBuffer.toInputStream())
814
+ } catch (err) {
815
+ error = err
816
+ }
817
+ callback(error)
818
+ })
819
+ }
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@groupdocs/groupdocs.watermark",
3
+ "version": "24.3.0",
4
+ "description": "Powerful signer for PDF, Word, Excel, PowerPoint and image files.",
5
+ "scripts": {
6
+ "postinstall": "curl -H 'Cache-Control:no-cache' https://releases.groupdocs.com/java/repo/com/groupdocs/groupdocs-watermark-nodejs/23.12/groupdocs-watermark-nodejs-23.12.jar --ssl-no-revoke > lib/groupdocs-watermark-nodejs-23.12.jar"
7
+ },
8
+ "main": "index.js",
9
+ "keywords": [
10
+ "PDF",
11
+ "Word",
12
+ "DOCX",
13
+ "DOC",
14
+ "PowerPoint",
15
+ "PPT",
16
+ "PPTX",
17
+ "Excel",
18
+ "XLS",
19
+ "XLSX",
20
+ "CSV",
21
+ "to",
22
+ "JPG",
23
+ "PNG",
24
+ "Spreadsheet",
25
+ "SVG"
26
+ ],
27
+ "author": "Aspose",
28
+ "license": "End User License Agreement.html",
29
+ "dependencies": {
30
+ "java": "^0.13.0"
31
+ },
32
+ "directories": {
33
+ "lib": "lib"
34
+ }
35
+ }