File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 6
6
// 6. Perform some action after successful addition
7
7
// All values of variables starting with "YOUR_****" should be replaced by real user values
8
8
9
- import credentials from "../../../../Credentials /credentials.json" with { type : "json" } ;
9
+ import credentials from "./credentials.json" with { type : "json" } ;
10
10
import fs from 'node:fs/promises' ;
11
11
import path from 'node:path' ;
12
- import { PdfApi } from "../../../src/api/api.js " ;
13
- import { Stamp } from "../../../ src/models/stamp.js" ;
12
+ import { PdfApi } from "asposepdfcloud " ;
13
+ import { Stamp } from "asposepdfcloud/ src/models/stamp.js" ;
14
14
15
15
const configParams = {
16
16
LOCAL_FOLDER : "C:\\Samples\\" ,
@@ -43,8 +43,7 @@ const pdfStamps = {
43
43
await this . uploadFile ( configParams . PDF_DOCUMENT_NAME ) ;
44
44
} ,
45
45
46
- addStamps : async function ( ) {
47
-
46
+ async addStamps ( ) {
48
47
const textStamp = new Stamp ( ) ;
49
48
textStamp . type = "Text" ;
50
49
textStamp . background = true ;
@@ -88,4 +87,4 @@ async function main() {
88
87
}
89
88
}
90
89
91
- main ( ) ;
90
+ main ( ) ;
You can’t perform that action at this time.
0 commit comments