Skip to content

Commit f5eb1e2

Browse files
Update appendTable.js
1 parent faf86c5 commit f5eb1e2

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

UsesCases/Tables/add/appendTable.js

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
// 1. Load your Application Secret and Key from the JSON file or set credentials in another way
2-
// 2. Create an object to connect to the Pdf.Cloud API
3-
// 3. Upload your document file
4-
// 4. Create a new Link Annotation with the required properties
5-
// 5. Append new Link Annotation to the document using postPageLinkAnnotations() function
6-
// 6. Perform some action after successful addition
7-
// All values of variables starting with "YOUR_****" should be replaced by real user values
8-
9-
import credentials from "./credentials.json" with { type: "json" };
1+
import credentials from "../../../../Credentials/credentials.json" with { type: "json" };
102
import fs from 'node:fs/promises';
113
import path from 'node:path';
12-
import { PdfApi } from "asposepdfcloud";
13-
import { Table } from "asposepdfcloud/src/models/table.js";
14-
import { Cell } from "asposepdfcloud/src/models/cell.js";
15-
import { FontStyles } from "asposepdfcloud/src/models/fontStyles.js";
16-
import { GraphInfo } from "asposepdfcloud/src/models/graphInfo.js";
17-
import { Row } from "asposepdfcloud/src/models/row.js";
18-
import { TextRect } from "asposepdfcloud/src/models/textRect.js";
4+
import { PdfApi } from "../../../src/api/api.js";
5+
import { Table } from "../../../src/models/table.js";
6+
import { Cell } from "../../../src/models/cell.js";
7+
import { FontStyles } from "../../../src/models/fontStyles.js";
8+
import { GraphInfo } from "../../../src/models/graphInfo.js";
9+
import { Row } from "../../../src/models/row.js";
10+
import { TextRect } from "../../../src/models/textRect.js";
1911

2012
const configParams = {
2113
LOCAL_FOLDER: "C:\\Samples\\",

0 commit comments

Comments
 (0)