|
|
@@ -13,7 +13,7 @@ const app = express()
|
|
|
app.use(express.static('./public'))
|
|
|
|
|
|
app.post('/edit', upload.single('document'), (req, res) => {
|
|
|
- childProcess.exec(`"${PDF2HTMLEX_PATH}" "${req.file.path}" "${req.file.path}.html"`, (err, stdout, stderr) => {
|
|
|
+ childProcess.exec(`"${PDF2HTMLEX_PATH}" --no-drm 1 "${req.file.path}" "${req.file.path}.html"`, (err, stdout, stderr) => {
|
|
|
if (err) {
|
|
|
res.status(500).send(`<pre>${err}\n\n${stdout}\n\n${stderr}</pre>`)
|
|
|
} else {
|