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 {
else {
const pdflib = yield Promise.resolve().then(() => __importStar(require("@pdftron/pdfnet-node")));
lib = pdflib.PDFNet;
}
//will this work ??
console.log(lib);
try {
yield lib.initialize(licenseKey);
}
catch (e) {
console.log(e);
}
try {
buf = yield (0, utils_1.TimestampAndEnableLTV)(this.document, certPath, certTSAUrl, imgBytes, coords, lib);
}
......
......@@ -74,14 +74,7 @@ class PDFparser {
} else {
const pdflib = await import("@pdftron/pdfnet-node");
lib = pdflib.PDFNet;
}
//will this work ??
console.log(lib);
try {
await lib.initialize(licenseKey);
} catch (e) {
console.log(e);
}
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment