Skip to content

Commit f6627e8

Browse files
author
Andrey
committed
Added a PDFTron key as ENV variable
1 parent e36ea0b commit f6627e8

File tree

7 files changed

+3
-2
lines changed

7 files changed

+3
-2
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ app.get('/watermark/:filename-:watermark', (req, res) => {
247247
});
248248

249249
const PDFNetEndpoint = (main, pathname, res) => {
250-
PDFNet.runWithCleanup(main)
250+
PDFNet.runWithCleanup(main, process.env.PDFTRONKEY)
251251
.then(() => {
252252
PDFNet.shutdown();
253253
fs.readFile(pathname, (err, data) => {

config.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
PORT=9000
1+
PORT=9000
2+
PDFTRONKEY=0

files/document.docx.pdf

13 Bytes
Binary file not shown.

files/new.pdf

36 Bytes
Binary file not shown.

files/optimized_webviewer.pdf

-6 Bytes
Binary file not shown.
-154 Bytes
Binary file not shown.
-15 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)