Skip to content
Advertisement

pdf2json parse error in node js application

I am having trouble converting pdf to json format using pdf2json. I want to convert a pdf file into json format using the pdf2json library via nodejs. However, there was no json file in the directory I specified for json, and it did not expire when I put an empty json file. When I run my code in debug mode, it outputs the following log. What do I have to do to save as a json?

I follow these steps; https://github.com/modesty/pdf2json

Console log message

JavaScript

Nodejs

JavaScript

run: node app.js

JavaScript

Advertisement

Answer

JavaScript
Advertisement