@pdftron/pdfnet-node-samples 9.5.0-6 → 9.5.0-beta-3

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.
Files changed (52) hide show
  1. package/package.json +2 -2
  2. package/samples/AddImageTest/AddImageTest.js +2 -2
  3. package/samples/AdvancedImagingTest/AdvancedImagingTest.js +4 -4
  4. package/samples/AnnotationTest/AnnotationTest.js +1 -1
  5. package/samples/BookmarkTest/BookmarkTest.js +1 -1
  6. package/samples/CAD2PDFTest/CAD2PDFTest.js +4 -4
  7. package/samples/ContentReplacerTest/ContentReplacerTest.js +1 -1
  8. package/samples/ConvertTest/ConvertTest.js +1 -1
  9. package/samples/DataExtractionTest/DataExtractionTest.js +6 -6
  10. package/samples/DigitalSignaturesTest/DigitalSignaturesTest.js +1 -1
  11. package/samples/DocumentCreationTest/DocumentCreationTest.js +78 -0
  12. package/samples/ElementBuilderTest/ElementBuilderTest.js +1 -1
  13. package/samples/ElementEditTest/ElementEditTest.js +1 -1
  14. package/samples/ElementReaderAdvTest/ElementReaderAdvTest.js +1 -1
  15. package/samples/ElementReaderTest/ElementReaderTest.js +1 -1
  16. package/samples/EncTest/EncTest.js +1 -1
  17. package/samples/FDFTest/FDFTest.js +1 -1
  18. package/samples/HTML2PDFTest/HTML2PDFTest.js +3 -3
  19. package/samples/HighlightsTest/HighlightsTest.js +1 -1
  20. package/samples/ImageExtractTest/ImageExtractTest.js +1 -1
  21. package/samples/ImpositionTest/ImpositionTest.js +1 -1
  22. package/samples/InteractiveFormsTest/InteractiveFormsTest.js +1 -1
  23. package/samples/JBIG2Test/JBIG2Test.js +1 -1
  24. package/samples/LicenseKey/LicenseKey.js +2 -2
  25. package/samples/LogicalStructureTest/LogicalStructureTest.js +1 -1
  26. package/samples/OCRTest/OCRTest.js +3 -3
  27. package/samples/OfficeTemplateTest/OfficeTemplateTest.js +1 -1
  28. package/samples/OfficeToPDFTest/OfficeToPDFTest.js +1 -1
  29. package/samples/OptimizerTest/OptimizerTest.js +1 -1
  30. package/samples/PDF2HtmlTest/PDF2HtmlTest.js +4 -4
  31. package/samples/PDF2OfficeTest/PDF2OfficeTest.js +4 -4
  32. package/samples/PDFATest/PDFATest.js +1 -1
  33. package/samples/PDFDocMemoryTest/PDFDocMemoryTest.js +1 -1
  34. package/samples/PDFDrawTest/PDFDrawTest.js +1 -1
  35. package/samples/PDFLayersTest/PDFLayersTest.js +1 -1
  36. package/samples/PDFPackageTest/PDFPackageTest.js +1 -1
  37. package/samples/PDFPageTest/PDFPageTest.js +1 -1
  38. package/samples/PDFRedactTest/PDFRedactTest.js +1 -1
  39. package/samples/PageLabelsTest/PageLabelsTest.js +1 -1
  40. package/samples/PatternTest/PatternTest.js +1 -1
  41. package/samples/RectTest/RectTest.js +1 -1
  42. package/samples/SDFTest/SDFTest.js +1 -1
  43. package/samples/StamperTest/StamperTest.js +1 -1
  44. package/samples/TextExtractTest/TextExtractTest.js +1 -1
  45. package/samples/TextSearchTest/TextSearchTest.js +1 -1
  46. package/samples/U3DTest/U3DTest.js +1 -1
  47. package/samples/UndoRedoTest/UndoRedoTest.js +1 -1
  48. package/samples/UnicodeWriteTest/UnicodeWriteTest.js +1 -1
  49. package/samples/WebViewerConvertTest/WebViewerConvertTest.js +1 -1
  50. package/samples/runall.bat +12 -12
  51. package/samples/runall.sh +0 -0
  52. package/samples/TestFiles/Output/addimage.pdf +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdftron/pdfnet-node-samples",
3
- "version": "9.5.0-6",
3
+ "version": "9.5.0-beta-3",
4
4
  "description": "Sample code for the @pdftron/pdfnet-node package.",
5
5
  "scripts": {
6
6
  "test": "run-script-os",
@@ -12,7 +12,7 @@
12
12
  "license": "Commercial",
13
13
  "homepage": "https://www.pdftron.com",
14
14
  "dependencies": {
15
- "@pdftron/pdfnet-node": "9.5.0-1",
15
+ "@pdftron/pdfnet-node": "9.5.0-beta-1",
16
16
  "run-script-os": "^1.1.6"
17
17
  }
18
18
  }
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -113,4 +113,4 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
113
113
  exports.runAddImageTest();
114
114
  })(exports);
115
115
  // eslint-disable-next-line spaced-comment
116
- //# sourceURL=AddImageTest.js
116
+ //# sourceURL=AddImageTest.js
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -9,7 +9,7 @@
9
9
  // The AdvancedImaging module is an optional PDFNet Add-on that can be used to convert AdvancedImaging
10
10
  // documents into PDF documents
11
11
  //
12
- // The PDFTron SDK AdvancedImaging module can be downloaded from http://www.pdftron.com/
12
+ // The Apryse SDK AdvancedImaging module can be downloaded from http://www.pdftron.com/
13
13
  //---------------------------------------------------------------------------------------
14
14
 
15
15
  const { PDFNet } = require('@pdftron/pdfnet-node');
@@ -23,10 +23,10 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
23
23
  const main = async () => {
24
24
 
25
25
  try {
26
- await PDFNet.addResourceSearchPath('../lib/');
26
+ await PDFNet.addResourceSearchPath('../../lib/');
27
27
 
28
28
  if (!await PDFNet.AdvancedImagingModule.isModuleAvailable()) {
29
- console.log('\nUnable to run AdvancedImagingTest: PDFTron SDK AdvancedImaging module not available.');
29
+ console.log('\nUnable to run AdvancedImagingTest: Apryse SDK AdvancedImaging module not available.');
30
30
  console.log('---------------------------------------------------------------');
31
31
  console.log('The AdvancedImaging module is an optional add-on, available for download');
32
32
  console.log('at http://www.pdftron.com/. If you have already downloaded this');
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -10,7 +10,7 @@
10
10
  // The CAD module is an optional PDFNet Add-on that can be used to convert CAD
11
11
  // documents into PDF documents
12
12
  //
13
- // The PDFTron SDK CAD module can be downloaded from http://www.pdftron.com/
13
+ // The Apryse SDK CAD module can be downloaded from http://www.pdftron.com/
14
14
  //---------------------------------------------------------------------------------------
15
15
 
16
16
 
@@ -33,9 +33,9 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
33
33
 
34
34
  const main = async () => {
35
35
  try {
36
- await PDFNet.addResourceSearchPath('../lib/');
36
+ await PDFNet.addResourceSearchPath('../../lib/');
37
37
  if (!(await PDFNet.CADModule.isModuleAvailable())) {
38
- console.log('\nUnable to run CAD2PDFTest: PDFTron SDK CAD module not available.');
38
+ console.log('\nUnable to run CAD2PDFTest: Apryse SDK CAD module not available.');
39
39
  console.log('---------------------------------------------------------------');
40
40
  console.log('The CAD module is an optional add-on, available for download');
41
41
  console.log('at http://www.pdftron.com/. If you have already downloaded this');
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -7,7 +7,7 @@
7
7
  // The Data Extraction suite is an optional PDFNet add-on collection that can be used to
8
8
  // extract various types of data from PDF documents.
9
9
  //
10
- // The PDFTron SDK Data Extraction suite can be downloaded from http://www.pdftron.com/
10
+ // The Apryse SDK Data Extraction suite can be downloaded from http://www.pdftron.com/
11
11
  //---------------------------------------------------------------------------------------
12
12
 
13
13
  const fs = require('fs');
@@ -26,7 +26,7 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
26
26
 
27
27
  //////////////////////////////////////////////////////////////////////////
28
28
 
29
- await PDFNet.addResourceSearchPath('../lib/');
29
+ await PDFNet.addResourceSearchPath('../../lib/');
30
30
 
31
31
  //////////////////////////////////////////////////////////////////////////
32
32
  // The following sample illustrates how to extract tables from PDF documents.
@@ -34,7 +34,7 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
34
34
 
35
35
  // Test if the add-on is installed
36
36
  if (!await PDFNet.DataExtractionModule.isModuleAvailable(PDFNet.DataExtractionModule.DataExtractionEngine.e_Tabular)) {
37
- console.log('\nUnable to run Data Extraction: PDFTron SDK Tabular Data module not available.');
37
+ console.log('\nUnable to run Data Extraction: Apryse SDK Tabular Data module not available.');
38
38
  console.log('---------------------------------------------------------------');
39
39
  console.log('The Data Extraction suite is an optional add-on, available for download');
40
40
  console.log('at https://www.pdftron.com/documentation/core/info/modules/. If you have already');
@@ -95,7 +95,7 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
95
95
 
96
96
  // Test if the add-on is installed
97
97
  if (!await PDFNet.DataExtractionModule.isModuleAvailable(PDFNet.DataExtractionModule.DataExtractionEngine.e_DocStructure)) {
98
- console.log('\nUnable to run Data Extraction: PDFTron SDK Structured Output module not available.');
98
+ console.log('\nUnable to run Data Extraction: Apryse SDK Structured Output module not available.');
99
99
  console.log('---------------------------------------------------------------');
100
100
  console.log('The Data Extraction suite is an optional add-on, available for download');
101
101
  console.log('at https://www.pdftron.com/documentation/core/info/modules/. If you have already');
@@ -133,7 +133,7 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
133
133
 
134
134
  // Test if the add-on is installed
135
135
  if (!await PDFNet.DataExtractionModule.isModuleAvailable(PDFNet.DataExtractionModule.DataExtractionEngine.e_Form)) {
136
- console.log('\nUnable to run Data Extraction: PDFTron SDK AIFormFieldExtractor module not available.');
136
+ console.log('\nUnable to run Data Extraction: Apryse SDK AIFormFieldExtractor module not available.');
137
137
  console.log('---------------------------------------------------------------');
138
138
  console.log('The Data Extraction suite is an optional add-on, available for download');
139
139
  console.log('at https://www.pdftron.com/documentation/core/info/modules/. If you have already');
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -0,0 +1,78 @@
1
+ //---------------------------------------------------------------------------------------
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
+ // Consult legal.txt regarding legal and license information.
4
+ //---------------------------------------------------------------------------------------
5
+
6
+ const { PDFNet } = require('@pdftron/pdfnet-node');
7
+ const PDFTronLicense = require('../LicenseKey/LicenseKey');
8
+
9
+ ((exports) => {
10
+ 'use strict';
11
+
12
+ exports.runDocumentCreationTest = () => {
13
+
14
+ const main = async () => {
15
+
16
+ const outputPath = '../TestFiles/Output/';
17
+ try {
18
+ const para_text =
19
+ "Lorem ipsum dolor " +
20
+ "sit amet, consectetur adipisicing elit, sed " +
21
+ "do eiusmod tempor incididunt ut labore " +
22
+ "et dolore magna aliqua. Ut enim ad " +
23
+ "minim veniam, quis nostrud exercitation " +
24
+ "ullamco laboris nisi ut aliquip ex ea " +
25
+ "commodo consequat. Duis aute irure " +
26
+ "dolor in reprehenderit in voluptate velit " +
27
+ "esse cillum dolore eu fugiat nulla pariatur. " +
28
+ "Excepteur sint occaecat cupidatat " +
29
+ "non proident, sunt in culpa qui officia " +
30
+ "deserunt mollit anim id est laborum.";
31
+
32
+ const flowdoc = await PDFNet.FlowDocument.create();
33
+ const para = await flowdoc.addParagraph();
34
+
35
+ para.setFontSize(24);
36
+ para.setTextColor(255, 0, 0);
37
+ para.addText("Start Red Text\n");
38
+ flowdoc.setDefaultMargins(0, 72.0, 144.0, 228.0);
39
+ flowdoc.setDefaultPageSize(650, 750);
40
+ flowdoc.addParagraphWithText(para_text);
41
+
42
+ for (var i = 0; i < 50; i++) {
43
+ const para = await flowdoc.addParagraph();
44
+ const point_size = (17*i*i*i)%13+5;
45
+ if (i % 2 == 0)
46
+ {
47
+ para.setItalic(true);
48
+ para.setTextColor(50, 50, 199);
49
+ para.setSpaceBefore(20);
50
+ para.setJustificationMode(PDFNet.ParagraphStyle.TextJustification.e_text_justify_left);
51
+ }
52
+ else
53
+ {
54
+ para.setTextColor(30, 199, 30);
55
+ para.setSpaceBefore(50);
56
+ para.setJustificationMode(PDFNet.ParagraphStyle.TextJustification.e_text_justify_right);
57
+ }
58
+
59
+ para.addText(para_text);
60
+ para.setFontSize(point_size);
61
+ }
62
+
63
+ const my_pdf = await flowdoc.paginateToPDF();
64
+ my_pdf.save(outputPath + "created_doc.pdf", PDFNet.SDFDoc.SaveOptions.e_linearized);
65
+ console.log('Done.');
66
+ } catch (err) {
67
+ console.log(err);
68
+ }
69
+ };
70
+
71
+ PDFNet.runWithCleanup(main, PDFTronLicense.Key).catch(function (error) {
72
+ console.log('Error: ' + JSON.stringify(error));
73
+ }).then(function () { return PDFNet.shutdown(); });
74
+ };
75
+ exports.runDocumentCreationTest();
76
+ })(exports);
77
+ // eslint-disable-next-line spaced-comment
78
+ //# sourceURL=DocumentCreationTest.js
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -36,10 +36,10 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
36
36
  // For HTML2PDF we need to locate the html2pdf module. If placed with the
37
37
  // PDFNet library, or in the current working directory, it will be loaded
38
38
  // automatically. Otherwise, it must be set manually using HTML2PDF.setModulePath.
39
- await PDFNet.HTML2PDF.setModulePath('../lib/');
39
+ await PDFNet.HTML2PDF.setModulePath('../../lib/');
40
40
 
41
41
  if(!(await PDFNet.HTML2PDF.isModuleAvailable())) {
42
- console.log('Unable to run HTML2PDFTest: PDFTron SDK HTML2PDF module not available.');
42
+ console.log('Unable to run HTML2PDFTest: Apryse SDK HTML2PDF module not available.');
43
43
  console.log('---------------------------------------------------------------');
44
44
  console.log('The HTML2PDF module is an optional add-on, available for download');
45
45
  console.log('at https://www.pdftron.com/. If you have already downloaded this');
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,10 +1,10 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2021 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2021 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
6
6
  //"Enter your key here. If you don't have it, please go to https://www.pdftron.com/pws/get-key to obtain a demo license or https://www.pdftron.com/form/contact-sales to obtain a production key.
7
- const LicenseKey = 'demo:test@pdftron.com:7876ae6d0200000000f50582ebf9cec1bc854b93820a9ad99f18517ed2';
7
+ const LicenseKey = 'YOUR_PDFTRON_LICENSE_KEY';
8
8
  if(LicenseKey == 'YOUR_PDFTRON_LICENSE_KEY'){
9
9
  throw ('Please enter your license key by replacing \'YOUR_PDFTRON_LICENSE_KEY\' that is assigned to the LicenseKey variable in Samples/LicenseKey/LicenseKey.js. If you do not have a license key, please go to https://www.pdftron.com/pws/get-key to obtain a demo license or https://www.pdftron.com/form/contact-sales to obtain a production key.');
10
10
  }
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -17,11 +17,11 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
17
17
  const main = async () => {
18
18
  try {
19
19
 
20
- PDFNet.addResourceSearchPath('../lib/');
20
+ PDFNet.addResourceSearchPath('../../lib/');
21
21
 
22
22
  const useIRIS = await PDFNet.OCRModule.isIRISModuleAvailable();
23
23
  if (!(await PDFNet.OCRModule.isModuleAvailable())) {
24
- console.log('\nUnable to run OCRTest: PDFTron SDK OCR module not available.');
24
+ console.log('\nUnable to run OCRTest: Apryse SDK OCR module not available.');
25
25
  console.log('---------------------------------------------------------------');
26
26
  console.log('The OCR module is an optional add-on, available for download');
27
27
  console.log('at http://www.pdftron.com/. If you have already downloaded this');
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -13,7 +13,7 @@
13
13
  // 2. The optional Structured Output add-on module is used to convert PDF documents to
14
14
  // HTML documents with text flowing across the browser window.
15
15
  //
16
- // The PDFTron SDK Structured Output module can be downloaded from
16
+ // The Apryse SDK Structured Output module can be downloaded from
17
17
  // https://www.pdftron.com/documentation/core/info/modules/
18
18
  //
19
19
  // Please contact us if you have any questions.
@@ -50,10 +50,10 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
50
50
 
51
51
  //////////////////////////////////////////////////////////////////////////
52
52
 
53
- await PDFNet.addResourceSearchPath('../lib/');
53
+ await PDFNet.addResourceSearchPath('../../lib/');
54
54
 
55
55
  if (!await PDFNet.StructuredOutputModule.isModuleAvailable()) {
56
- console.log('\nUnable to run part of the sample: PDFTron SDK Structured Output module not available.');
56
+ console.log('\nUnable to run part of the sample: Apryse SDK Structured Output module not available.');
57
57
  console.log('---------------------------------------------------------------');
58
58
  console.log('The Structured Output module is an optional add-on, available for download');
59
59
  console.log('at https://www.pdftron.com/documentation/core/info/modules/. If you have already');
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -10,7 +10,7 @@
10
10
  // The Structured Output module is an optional PDFNet Add-on that can be used to convert PDF
11
11
  // and other documents into Word, Excel, PowerPoint and HTML format.
12
12
  //
13
- // The PDFTron SDK Structured Output module can be downloaded from
13
+ // The Apryse SDK Structured Output module can be downloaded from
14
14
  // https://www.pdftron.com/documentation/core/info/modules/
15
15
  //
16
16
  // Please contact us if you have any questions.
@@ -31,10 +31,10 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
31
31
 
32
32
  //////////////////////////////////////////////////////////////////////////
33
33
 
34
- await PDFNet.addResourceSearchPath('../lib/');
34
+ await PDFNet.addResourceSearchPath('../../lib/');
35
35
 
36
36
  if (!await PDFNet.StructuredOutputModule.isModuleAvailable()) {
37
- console.log('\nUnable to run the sample: PDFTron SDK Structured Output module not available.');
37
+ console.log('\nUnable to run the sample: Apryse SDK Structured Output module not available.');
38
38
  console.log('---------------------------------------------------------------');
39
39
  console.log('The Structured Output module is an optional add-on, available for download');
40
40
  console.log('at https://www.pdftron.com/documentation/core/info/modules/. If you have already');
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,5 +1,5 @@
1
1
  //---------------------------------------------------------------------------------------
2
- // Copyright (c) 2001-2023 by PDFTron Systems Inc. All Rights Reserved.
2
+ // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
@@ -1,12 +1,12 @@
1
- @echo off
2
- for /D %%s in (*Test) do (
3
- if exist %%s\%%~nxs.js (
4
- cd %%s
5
- echo %%s running...
6
- call node %%~nxs.js
7
- cd ..
8
- echo %%s finished.
9
- pause
10
- )
11
- )
12
- echo All tests finished.
1
+ @echo off
2
+ for /D %%s in (*Test) do (
3
+ if exist %%s\%%~nxs.js (
4
+ cd %%s
5
+ echo %%s running...
6
+ call node %%~nxs.js
7
+ cd ..
8
+ echo %%s finished.
9
+ pause
10
+ )
11
+ )
12
+ echo All tests finished.
package/samples/runall.sh CHANGED
File without changes