@pdftron/pdfnet-node-samples 11.8.1-1 → 11.9.0-beta

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.
@@ -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 Apryse SDK AdvancedImaging module can be downloaded from http://www.pdftron.com/
12
+ // The Apryse SDK AdvancedImaging module can be downloaded from http://www.apryse.com/
13
13
  //---------------------------------------------------------------------------------------
14
14
 
15
15
  const { PDFNet } = require('@pdftron/pdfnet-node');
@@ -29,7 +29,7 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
29
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
- console.log('at http://www.pdftron.com/. If you have already downloaded this');
32
+ console.log('at http://www.apryse.com/. If you have already downloaded this');
33
33
  console.log('module, ensure that the SDK is able to find the required files');
34
34
  console.log('using the PDFNet::AddResourceSearchPath() function.\n');
35
35
 
@@ -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 Apryse SDK CAD module can be downloaded from http://www.pdftron.com/
13
+ // The Apryse SDK CAD module can be downloaded from http://www.apryse.com/
14
14
  //---------------------------------------------------------------------------------------
15
15
 
16
16
 
@@ -38,7 +38,7 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
38
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
- console.log('at http://www.pdftron.com/. If you have already downloaded this');
41
+ console.log('at http://www.apryse.com/. If you have already downloaded this');
42
42
  console.log('module, ensure that the SDK is able to find the required files');
43
43
  console.log('using the PDFNet.addResourceSearchPath() function.\n');
44
44
 
@@ -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 Apryse 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.apryse.com/
11
11
  //---------------------------------------------------------------------------------------
12
12
 
13
13
  const fs = require('fs');
@@ -207,7 +207,7 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
207
207
  console.log('Unable to run Data Extraction: Apryse SDK AIPageObjectExtractor module not available.');
208
208
  console.log('---------------------------------------------------------------');
209
209
  console.log('The Data Extraction suite is an optional add-on, available for download');
210
- console.log('at http://www.pdftron.com/. If you have already downloaded this');
210
+ console.log('at http://www.apryse.com/. If you have already downloaded this');
211
211
  console.log('module, ensure that the SDK is able to find the required files');
212
212
  console.log('using the PDFNet.addResourceSearchPath() function.');
213
213
  console.log();
@@ -244,6 +244,58 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
244
244
  console.log(err);
245
245
  }
246
246
  }
247
+
248
+ //////////////////////////////////////////////////////////////////////////
249
+ // The following sample illustrates how to extract document classes from PDF documents.
250
+ //////////////////////////////////////////////////////////////////////////
251
+
252
+ // Test if the add-on is installed
253
+ if (!await PDFNet.DataExtractionModule.isModuleAvailable(PDFNet.DataExtractionModule.DataExtractionEngine.e_DocClassification)) {
254
+ console.log('\nUnable to run Data Extraction: Apryse SDK AIPageObjectExtractor module not available.');
255
+ console.log('---------------------------------------------------------------');
256
+ console.log('The Data Extraction suite is an optional add-on, available for download');
257
+ console.log('at https://docs.apryse.com/documentation/core/info/modules/. If you have already');
258
+ console.log('downloaded this module, ensure that the SDK is able to find the required files');
259
+ console.log('using the PDFNet.addResourceSearchPath() function.\n');
260
+ }
261
+ else
262
+ {
263
+ try {
264
+ // Simple example: classify pages as a JSON file
265
+ console.log('Classify pages as a JSON file');
266
+
267
+ let outputFile = outputPath + 'Invoice_Classified.json';
268
+ await PDFNet.DataExtractionModule.extractData(inputPath + 'Invoice.pdf', outputFile, PDFNet.DataExtractionModule.DataExtractionEngine.e_DocClassification);
269
+
270
+ console.log('Result saved in ' + outputFile);
271
+
272
+ ///////////////////////////////////////////////////////
273
+ // Classify pages as a JSON string
274
+ console.log('Classify pages as a JSON string');
275
+
276
+ outputFile = outputPath + 'Scientific_Publication_Classified.json';
277
+ const json = await PDFNet.DataExtractionModule.extractDataAsString(inputPath + 'Scientific_Publication.pdf', PDFNet.DataExtractionModule.DataExtractionEngine.e_DocClassification);
278
+ fs.writeFileSync(outputFile, json);
279
+
280
+ console.log('Result saved in ' + outputFile);
281
+
282
+ ///////////////////////////////////////////////////////
283
+ // Example with customized options:
284
+ console.log('Classify pages with customized options');
285
+
286
+ const options = new PDFNet.DataExtractionModule.DataExtractionOptions();
287
+ // Classes that don't meet the minimum confidence threshold of 70% will not be listed in the output JSON
288
+ options.setMinimumConfidenceThreshold(0.7);
289
+ outputFile = outputPath + 'Email_Classified.json';
290
+ await PDFNet.DataExtractionModule.extractData(inputPath + 'Email.pdf', outputFile, PDFNet.DataExtractionModule.DataExtractionEngine.e_DocClassification, options);
291
+
292
+ console.log('Result saved in ' + outputFile);
293
+
294
+ } catch (err) {
295
+ console.log(err);
296
+ }
297
+ }
298
+
247
299
  //////////////////////////////////////////////////////////////////////////
248
300
 
249
301
  console.log('Done.');
@@ -31,11 +31,11 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
31
31
  const options = await PDFNet.FindReplace.createFindReplaceOptions();
32
32
 
33
33
  // Set some find/replace options
34
- options.SetWholeWords(true);
35
- options.SetMatchCase(true);
36
- options.SetMatchMode(PDFNet.FindReplace.FindReplaceOptions.MatchType.e_exact);
37
- options.SetReflowMode(PDFNet.FindReplace.FindReplaceOptions.ReflowType.e_para);
38
- options.SetAlignment(PDFNet.FindReplace.FindReplaceOptions.HorizAlignment.e_left);
34
+ options.setWholeWords(true);
35
+ options.setMatchCase(true);
36
+ options.setMatchMode(PDFNet.FindReplace.FindReplaceOptions.MatchType.e_exact);
37
+ options.setReflowMode(PDFNet.FindReplace.FindReplaceOptions.ReflowType.e_para);
38
+ options.setAlignment(PDFNet.FindReplace.FindReplaceOptions.HorizAlignment.e_left);
39
39
 
40
40
  // Perform a Find/Replace finding "the" with "THE INCREDIBLE"
41
41
  await PDFNet.FindReplace.findReplaceText(doc, "the", "THE INCREDIBLE", options);
@@ -10,7 +10,7 @@
10
10
  // 'pdftron.PDF.HTML2PDF' is an optional PDFNet Add-On utility class that can be
11
11
  // used to convert HTML web pages into PDF documents by using an external module (html2pdf).
12
12
  //
13
- // html2pdf modules can be downloaded from http://www.pdftron.com/pdfnet/downloads.html.
13
+ // html2pdf modules can be downloaded from https://docs.apryse.com/core/guides/info/modules#html2pdf-module
14
14
  //
15
15
  // Users can convert HTML pages to PDF using the following operations:
16
16
  // - Simple one line static method to convert a single web page to PDF.
@@ -43,7 +43,7 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
43
43
  console.log('Unable to run HTML2PDFTest: Apryse SDK HTML2PDF module not available.');
44
44
  console.log('---------------------------------------------------------------');
45
45
  console.log('The HTML2PDF module is an optional add-on, available for download');
46
- console.log('at https://www.pdftron.com/. If you have already downloaded this');
46
+ console.log('at https://www.apryse.com/. If you have already downloaded this');
47
47
  console.log('module, ensure that the SDK is able to find the required files');
48
48
  console.log('using the HTML2PDF.setModulePath() function.');
49
49
 
@@ -9,7 +9,7 @@
9
9
  // to be a generic PDF optimization tool.
10
10
  //
11
11
  // You can download the entire document using the following link:
12
- // http://www.pdftron.com/net/samplecode/data/US061222892.pdf
12
+ // https://downloads.apryse.com/files/US061222892.pdf
13
13
  //
14
14
 
15
15
  const { PDFNet } = require('@pdftron/pdfnet-node');
@@ -3,7 +3,7 @@
3
3
  // Consult legal.txt regarding legal and license information.
4
4
  //---------------------------------------------------------------------------------------
5
5
 
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.
6
+ //"Enter your key here. If you don't have it, please go to https://www.apryse.com/pws/get-key to obtain a demo license or https://www.apryse.com/form/contact-sales to obtain a production key.
7
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.');
@@ -24,7 +24,7 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
24
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
- console.log('at http://www.pdftron.com/. If you have already downloaded this');
27
+ console.log('at http://www.apryse.com/. If you have already downloaded this');
28
28
  console.log('module, ensure that the SDK is able to find the required files');
29
29
  console.log('using the PDFNet.addResourceSearchPath() function.\n');
30
30
 
Binary file
Binary file
Binary file
@@ -1,3 +1,4 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
1
2
  <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
2
3
  <file original="../../TestFiles/find-replace-test.pdf" source-language="en" datatype="x-pdf" product-name="InfixXLIFF">
3
4
  <header>
@@ -9,31 +10,30 @@
9
10
  colour="ffffff" colid="0" israwchars="1" fname="LatoBlack" fweight="normal" fstyle="normal"
10
11
  underline="0" strike="0" link=""/>
11
12
  -->
12
- <trans-unit id="p1-1" approved="yes" translate="yes" xml:space="default" datatype="plaintext">
13
+ <trans-unit id='p1-1' approved="yes" translate="yes" xml:space="default" datatype="plaintext">
13
14
  <source>2 </source>
14
- <target>2 </target></trans-unit>
15
+ <target>2 </target>
16
+ </trans-unit>
15
17
 
16
18
  <!--
17
19
  <cstyle id="2-0" name="0" size="12.0" rise="0.0" scale="100"
18
20
  colour="1d446c" colid="1" fname="Lato" fweight="normal" fstyle="normal"
19
21
  underline="0" strike="0" link=""/>
20
-
21
- <cstyle id="2-1" name="1" size="12.0" rise="0.0" scale="100"
22
- colour="1d446c" colid="1" fname="Lato" fweight="normal" fstyle="normal"
23
- underline="0" strike="0" link=""/>
24
22
  -->
25
- <trans-unit id="p1-2" approved="yes" translate="yes" xml:space="default" datatype="plaintext">
26
- <source>You plan to embed PDF functionality into an application. But before you div<g id="2-1" ctype="x-cstyle">e </g>into the project, you must decide: do you go with a more expensive commercial PDF SDK &#8212; or a lower-cost alternative such as an open-source library or an open-source wrapper?</source>
27
- <target>Vous envisagez d&#8217;int&#233;grer des fonctionnalit&#233;s PDF dans une application. Mais avant de<g id="2-1" ctype="x-cstyle">vous lancer dans </g>le projet, vous devez d&#233;cider : optez-vous pour un SDK PDF commercial plus co&#251;teux - ou une alternative moins co&#251;teuse telle qu&#8217;une biblioth&#232;que open source ou un wrapper open source ?</target></trans-unit>
23
+ <trans-unit id='p1-2' approved="yes" translate="yes" xml:space="default" datatype="plaintext">
24
+ <source>You plan to embed PDF functionality into an application. But before you dive into the project, you must decide: do you go with a more expensive commercial PDF SDK or a lower-cost alternative such as an open-source library or an open-source wrapper?</source>
25
+ <target>Vous envisagez d&#8217;int&#233;grer des fonctionnalit&#233;s PDF dans une application. Mais avant de vous lancer dans le projet, vous devez d&#233;cider : optez-vous pour un SDK PDF commercial plus co&#251;teux - ou une alternative moins co&#251;teuse telle qu&#8217;une biblioth&#232;que open source ou un wrapper open source ?</target>
26
+ </trans-unit>
28
27
 
29
28
  <!--
30
29
  <cstyle id="3-0" name="0" size="12.0" rise="0.0" scale="100"
31
30
  colour="1d446c" colid="1" fname="Lato" fweight="normal" fstyle="normal"
32
31
  underline="0" strike="0" link=""/>
33
32
  -->
34
- <trans-unit id="p1-3" approved="yes" translate="yes" xml:space="default" datatype="plaintext">
33
+ <trans-unit id='p1-3' approved="yes" translate="yes" xml:space="default" datatype="plaintext">
35
34
  <source>There are non-trivial costs to switching later. Developers have to re-learn the new library, re-adjust the backend, customize the UI to match what users are accustomed to, as well as migrate documents, form data, annotations, and more. </source>
36
- <target>Il y a des co&#251;ts non n&#233;gligeables &#224; changer plus tard. Les d&#233;veloppeurs doivent r&#233;apprendre la nouvelle biblioth&#232;que, r&#233;ajuster le backend, personnaliser l&#8217;interface utilisateur pour qu&#8217;elle corresponde &#224; ce &#224; quoi les utilisateurs sont habitu&#233;s, ainsi que migrer des documents, des donn&#233;es de formulaire, des annotations, etc. </target></trans-unit>
35
+ <target>Il y a des co&#251;ts non n&#233;gligeables &#224; changer plus tard. Les d&#233;veloppeurs doivent r&#233;apprendre la nouvelle biblioth&#232;que, r&#233;ajuster le backend, personnaliser l&#8217;interface utilisateur pour qu&#8217;elle corresponde &#224; ce &#224; quoi les utilisateurs sont habitu&#233;s, ainsi que migrer des documents, des donn&#233;es de formulaire, des annotations, etc. </target>
36
+ </trans-unit>
37
37
 
38
38
  <!--
39
39
  <cstyle id="4-0" name="0" size="12.0" rise="0.0" scale="100"
@@ -41,25 +41,23 @@
41
41
  underline="0" strike="0" link=""/>
42
42
 
43
43
  <cstyle id="4-1" name="1" size="12.0" rise="0.0" scale="100"
44
- colour="1d446c" colid="1" israwchars="1" fname="LatoHeavy" fweight="normal" fstyle="normal"
44
+ colour="1d446c" colid="1" israwchars="1" fname="Lato" fweight="bold" fstyle="normal"
45
45
  underline="1" strike="0" link=""/>
46
46
  -->
47
- <trans-unit id="p1-4" approved="yes" translate="yes" xml:space="default" datatype="plaintext">
48
- <source>According to <g id="4-1" ctype="x-cstyle">market research</g> conducted by Stax Inc., the average Net Promoter Score (NPS) for the top five PDF SDK vendors is 35%. And 70% of customers express interest in switching despite the high costs.</source>
49
- <target>D&#8217;apr&#232;s une <g id="4-1" ctype="x-cstyle">&#233;tude de march&#233;</g> men&#233;e par Stax Inc., le Net Promoter Score (NPS) moyen des cinq principaux fournisseurs de SDK PDF est de 35 %. Et 70 % des clients expriment leur int&#233;r&#234;t &#224; changer de client malgr&#233; les co&#251;ts &#233;lev&#233;s.</target></trans-unit>
47
+ <trans-unit id='p1-4' approved="yes" translate="yes" xml:space="default" datatype="plaintext">
48
+ <source>According to <g id='4-1' ctype='x-cstyle'>market research</g> conducted by Stax Inc., the average Net Promoter Score (NPS) for the top five PDF SDK vendors is 35%. And 70% of customers express interest in switching despite the high costs.</source>
49
+ <target>D&#8217;apr&#232;s une <g id="4-1" ctype="x-cstyle">&#233;tude de march&#233;</g> men&#233;e par Stax Inc., le Net Promoter Score (NPS) moyen des cinq principaux fournisseurs de SDK PDF est de 35 %. Et 70 % des clients expriment leur int&#233;r&#234;t &#224; changer de client malgr&#233; les co&#251;ts &#233;lev&#233;s.</target>
50
+ </trans-unit>
50
51
 
51
52
  <!--
52
53
  <cstyle id="5-0" name="0" size="12.0" rise="0.0" scale="100"
53
54
  colour="1d446c" colid="1" fname="Lato" fweight="normal" fstyle="normal"
54
55
  underline="0" strike="0" link=""/>
55
-
56
- <cstyle id="5-1" name="1" size="12.0" rise="0.0" scale="100"
57
- colour="1d446c" colid="1" fname="Lato" fweight="normal" fstyle="normal"
58
- underline="0" strike="0" link=""/>
59
56
  -->
60
- <trans-unit id="p1-5" approved="yes" translate="yes" xml:space="default" datatype="plaintext">
61
- <source>This dissatisfaction implies that picking the right PDF SDK is a lot harder tha<g id="5-1" ctype="x-cstyle">n </g>it seems. And to help you avoid the same mistakes as past implementations, we&#8217;ve written this articl<g id="5-1" ctype="x-cstyle">e.</g></source>
62
- <target>Cette insatisfaction implique que choisir le bon SDK PDF est beaucoup plus difficile<g id="5-1" ctype="x-cstyle">qu&#8217;il </g>n&#8217;y para&#238;t. Et pour vous aider &#224; &#233;viter les m&#234;mes erreurs que les impl&#233;mentations pr&#233;c&#233;dentes, nous avons r&#233;dig&#233; cet article<g id="5-1" ctype="x-cstyle">e.</g></target></trans-unit>
57
+ <trans-unit id='p1-5' approved="yes" translate="yes" xml:space="default" datatype="plaintext">
58
+ <source>This dissatisfaction implies that picking the right PDF SDK is a lot harder than it seems. And to help you avoid the same mistakes as past implementations, weve written this article.</source>
59
+ <target>Cette insatisfaction implique que choisir le bon SDK PDF est beaucoup plus difficile<g id="5-1" ctype="x-cstyle">qu&#8217;il </g>n&#8217;y para&#238;t. Et pour vous aider &#224; &#233;viter les m&#234;mes erreurs que les impl&#233;mentations pr&#233;c&#233;dentes, nous avons r&#233;dig&#233; cet article<g id="5-1" ctype="x-cstyle">e.</g></target>
60
+ </trans-unit>
63
61
 
64
62
  <!--
65
63
  <cstyle id="6-0" name="0" size="12.0" rise="0.0" scale="100"
@@ -67,21 +65,23 @@
67
65
  underline="0" strike="0" link=""/>
68
66
 
69
67
  <cstyle id="6-1" name="1" size="12.0" rise="0.0" scale="100"
70
- colour="1d446c" colid="1" israwchars="1" fname="LatoHeavy" fweight="normal" fstyle="normal"
68
+ colour="1d446c" colid="1" israwchars="1" fname="Lato" fweight="bold" fstyle="normal"
71
69
  underline="1" strike="0" link=""/>
72
70
  -->
73
- <trans-unit id="p1-6" approved="yes" translate="yes" xml:space="default" datatype="plaintext">
74
- <source>(We also<g id="6-1" ctype="x-cstyle"> </g><g id="6-1" ctype="x-cstyle">recently surveyed 57</g> unique organizations that switched from PDF.js to a commercial SDK. Read our<g id="6-1" ctype="x-cstyle"> </g><g id="6-1" ctype="x-cstyle">comprehensive guide to PDF.js</g> to learn more.) </source>
75
- <target>(Nous avons &#233;galement<g id="6-1" ctype="x-cstyle"> </g><g id="6-1" ctype="x-cstyle">r&#233;cemment interrog&#233; 57</g> organisations uniques qui sont pass&#233;es d&#8217;un PDF.js &#224; un SDK commercial. Lisez notre<g id="6-1" ctype="x-cstyle"> </g><g id="6-1" ctype="x-cstyle">guide complet sur les PDF.js</g> pour en savoir plus.) </target></trans-unit>
71
+ <trans-unit id='p1-6' approved="yes" translate="yes" xml:space="default" datatype="plaintext">
72
+ <source>(We also<g id='6-1' ctype='x-cstyle'> </g><g id='6-1' ctype='x-cstyle'>recently surveyed 57</g> unique organizations that switched from PDF.js to a commercial SDK. Read our<g id='6-1' ctype='x-cstyle'> </g><g id='6-1' ctype='x-cstyle'>comprehensive guide to PDF.js</g> to learn more.) </source>
73
+ <target>(Nous avons &#233;galement<g id="6-1" ctype="x-cstyle"> </g><g id="6-1" ctype="x-cstyle">r&#233;cemment interrog&#233; 57</g> organisations uniques qui sont pass&#233;es d&#8217;un PDF.js &#224; un SDK commercial. Lisez notre<g id="6-1" ctype="x-cstyle"> </g><g id="6-1" ctype="x-cstyle">guide complet sur les PDF.js</g> pour en savoir plus.) </target>
74
+ </trans-unit>
76
75
 
77
76
  <!--
78
77
  <cstyle id="7-0" name="0" size="30.0" rise="0.0" scale="100"
79
78
  colour="0206a8" colid="2" israwchars="1" fname="LatoBlack" fweight="normal" fstyle="normal"
80
79
  underline="0" strike="0" link=""/>
81
80
  -->
82
- <trans-unit id="p1-7" approved="yes" translate="yes" xml:space="default" datatype="plaintext">
81
+ <trans-unit id='p1-7' approved="yes" translate="yes" xml:space="default" datatype="plaintext">
83
82
  <source>Overview </source>
84
- <target>Aper&#231;u </target></trans-unit>
83
+ <target>Aper&#231;u </target>
84
+ </trans-unit>
85
85
 
86
86
  </body>
87
87
  </file>
@@ -95,7 +95,7 @@ const PDFTronLicense = require('../LicenseKey/LicenseKey');
95
95
  const y2 = Math.max(Math.max(Math.max(currQuad.p1y, currQuad.p2y), currQuad.p3y), currQuad.p4y);
96
96
 
97
97
  const hyperLink = await PDFNet.LinkAnnot.create(doc, (await PDFNet.Rect.init(x1, y1, x2, y2)));
98
- await hyperLink.setAction((await PDFNet.Action.createURI(doc, 'http://www.pdftron.com')));
98
+ await hyperLink.setAction((await PDFNet.Action.createURI(doc, 'http://www.apryse.com')));
99
99
  await curPage.annotPushBack(hyperLink);
100
100
  }
101
101
  hlts.next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdftron/pdfnet-node-samples",
3
- "version": "11.8.1-1",
3
+ "version": "11.9.0-beta",
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.apryse.com",
14
14
  "dependencies": {
15
- "@pdftron/pdfnet-node": "^11.8.1-1",
15
+ "@pdftron/pdfnet-node": "^11.9.0-beta",
16
16
  "run-script-os": "^1.1.6",
17
17
  "underscore": "^1.13.6",
18
18
  "xhr2": "^0.2.1"
@@ -8,7 +8,7 @@ const platform = process.platform; // linux, darwin, win32
8
8
  const arch = process.arch; // x64, arm64, etc.
9
9
  const version = pkg.version;
10
10
  const isElectron = !!process.versions.electron;
11
- const remote_url = "https://www.apryse.com/downloads/PDFNetNode"
11
+ const remote_url = "https://downloads.apryse.com/downloads/nodejs"
12
12
 
13
13
  let prebuildUrl = `${remote_url}/${version}/pdfnet-addon-v${version}-node-v${abi}-${platform}-${arch}.tar.gz`;
14
14
  if (isElectron) {