Skip to content

Commit f73fbe0

Browse files
Update appendDocumentStamps.js
1 parent b42d788 commit f73fbe0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

UsesCases/Stamps/add/appendDocumentStamps.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
// 6. Perform some action after successful addition
77
// All values of variables starting with "YOUR_****" should be replaced by real user values
88

9-
import credentials from "../../../../Credentials/credentials.json" with { type: "json" };
9+
import credentials from "./credentials.json" with { type: "json" };
1010
import fs from 'node:fs/promises';
1111
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";
1414

1515
const configParams = {
1616
LOCAL_FOLDER: "C:\\Samples\\",
@@ -43,8 +43,7 @@ const pdfStamps = {
4343
await this.uploadFile(configParams.PDF_DOCUMENT_NAME);
4444
},
4545

46-
addStamps: async function () {
47-
46+
async addStamps () {
4847
const textStamp = new Stamp();
4948
textStamp.type = "Text";
5049
textStamp.background = true;
@@ -88,4 +87,4 @@ async function main() {
8887
}
8988
}
9089

91-
main();
90+
main();

0 commit comments

Comments
 (0)