File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 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" } ; // json-file in this format: { "id": "*****", "key": "*******" }
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 { ImageFooter } from "../../src/models/imageFooter.js" ;
14
+ import { PdfApi } from "asposepdfcloud" ;
15
+ import { ImageFooter } from "asposepdfcloud/src/models/imageFooter.js" ;
16
+ import { HorizontalAlignment } from "asposepdfcloud/src/models/horizontalAlignment.js" ;
16
17
17
18
const configParams = {
18
19
LOCAL_FOLDER : "C:\\Samples\\" ,
@@ -45,7 +46,7 @@ const pdfHederFooter = {
45
46
const imageFooter = new ImageFooter ( ) ;
46
47
imageFooter . background = true ;
47
48
imageFooter . value = "TEST FOOTER VALUE" ;
48
- imageFooter . horizontalAlignment = " Center" ;
49
+ imageFooter . horizontalAlignment = HorizontalAlignment . Center ;
49
50
imageFooter . fileName = configParams . IMAGE_FOOTER_FILE ;
50
51
imageFooter . width = 24 ;
51
52
imageFooter . height = 24 ;
@@ -71,4 +72,4 @@ async function main() {
71
72
}
72
73
}
73
74
74
- main ( ) ;
75
+ main ( ) ;
You can’t perform that action at this time.
0 commit comments