Skip to content
Snippets Groups Projects
Commit bfc48430 authored by Zdravko Iliev's avatar Zdravko Iliev
Browse files

initialize only for backend

parent 558b3b58
No related branches found
No related tags found
No related merge requests found
...@@ -78,15 +78,8 @@ class PDFparser { ...@@ -78,15 +78,8 @@ class PDFparser {
else { else {
const pdflib = yield Promise.resolve().then(() => __importStar(require("@pdftron/pdfnet-node"))); const pdflib = yield Promise.resolve().then(() => __importStar(require("@pdftron/pdfnet-node")));
lib = pdflib.PDFNet; lib = pdflib.PDFNet;
}
//will this work ??
console.log(lib);
try {
yield lib.initialize(licenseKey); yield lib.initialize(licenseKey);
} }
catch (e) {
console.log(e);
}
try { try {
buf = yield (0, utils_1.TimestampAndEnableLTV)(this.document, certPath, certTSAUrl, imgBytes, coords, lib); buf = yield (0, utils_1.TimestampAndEnableLTV)(this.document, certPath, certTSAUrl, imgBytes, coords, lib);
} }
......
...@@ -74,14 +74,7 @@ class PDFparser { ...@@ -74,14 +74,7 @@ class PDFparser {
} else { } else {
const pdflib = await import("@pdftron/pdfnet-node"); const pdflib = await import("@pdftron/pdfnet-node");
lib = pdflib.PDFNet; lib = pdflib.PDFNet;
}
//will this work ??
console.log(lib);
try {
await lib.initialize(licenseKey); await lib.initialize(licenseKey);
} catch (e) {
console.log(e);
} }
try { try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment