File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ const configParams = {
14
14
PDF_DOCUMENT_NAME : "sample.pdf" ,
15
15
LOCAL_RESULT_DOCUMENT_NAME : "output_sample.pdf" ,
16
16
PAGE_NUMBER : 2 , // Your document page number...
17
+ TABLE_ROWS : 5 ,
18
+ TABLE_COLUMNS : 5 ,
17
19
} ;
18
20
19
21
const pdfApi = new PdfApi ( credentials . id , credentials . key ) ;
@@ -23,6 +25,7 @@ const pdfTables = {
23
25
const fileNamePath = path . join ( configParams . LOCAL_FOLDER , configParams . PDF_DOCUMENT_NAME ) ;
24
26
const pdfFileData = await fs . readFile ( fileNamePath ) ;
25
27
await pdfApi . uploadFile ( configParams . PDF_DOCUMENT_NAME , pdfFileData ) ;
28
+ console . log ( "File '" + configParams . PDF_DOCUMENT_NAME + "' successfully uploaded!" ) ;
26
29
} ,
27
30
28
31
async downloadResult ( ) {
@@ -33,8 +36,8 @@ const pdfTables = {
33
36
} ,
34
37
35
38
initTable ( ) {
36
- const numOfCols = 5 ;
37
- const numOfRows = 5 ;
39
+ const numOfCols = configParams . TABLE_COLUMNS ;
40
+ const numOfRows = configParams . TABLE_ROWS ;
38
41
39
42
const headerTextState = {
40
43
font : "Arial Bold" ,
You can’t perform that action at this time.
0 commit comments