8
8
// 8. Perform some action after successful addition
9
9
// All values of variables starting with "YOUR_****" should be replaced by real user values
10
10
11
- import credentials from "../../../Credentials /credentials.json" with { type : "json" } ;
11
+ import credentials from "./credentials.json" with { type : "json" } ;
12
12
import fs from 'node:fs/promises' ;
13
13
import path from 'node:path' ;
14
- import { PdfApi } from "../../src/api/api.js" ;
15
- import { TextHeader } from "../../src/models/textHeader.js" ;
16
- import { TextFooter } from "../../src/models/textFooter.js" ;
17
-
18
- import { HorizontalAlignment } from "../../src/models/horizontalAlignment.js" ;
14
+ import { PdfApi } from "asposepdfcloud" ;
15
+ import { TextHeader } from "asposepdfcloud/src/models/textHeader.js" ;
16
+ import { HorizontalAlignment } from "asposepdfcloud/src/models/horizontalAlignment.js" ;
19
17
20
18
const configParams = {
21
19
LOCAL_FOLDER : "C:\\Samples\\" ,
@@ -51,15 +49,6 @@ const pdfHederFooter = {
51
49
52
50
await pdfApi . postDocumentTextHeader ( configParams . PDF_DOCUMENT_NAME , textHeader ) ;
53
51
} ,
54
-
55
- async adddTextFooter ( ) {
56
- const textFooter = new TextFooter ( ) ;
57
- textFooter . background = true ;
58
- textFooter . value = configParams . FOOTER_VALUE ;
59
- textFooter . horizontalAlignment = "Center" ;
60
-
61
- await pdfApi . postDocumentTextFooter ( configParams . PDF_DOCUMENT_NAME , textFooter ) ;
62
- } ,
63
52
}
64
53
65
54
async function main ( ) {
@@ -72,4 +61,4 @@ async function main() {
72
61
}
73
62
}
74
63
75
- main ( ) ;
64
+ main ( ) ;
0 commit comments