|
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" }; |
10 | 2 | import fs from 'node:fs/promises';
|
11 | 3 | 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"; |
19 | 11 |
|
20 | 12 | const configParams = {
|
21 | 13 | LOCAL_FOLDER: "C:\\Samples\\",
|
|
0 commit comments