4 ms·
Here where I work we are parsing PDFs with https://github.com/flexpaper/pdf2json https://github.com/flexpaper/pdf2json. It works very well, and returns an array
by giovannibonetti 6y ago
Here where I work we are parsing PDFs with https://github.com/flexpaper/pdf2json https://github.com/flexpaper/pdf2json. It works very well, and returns an array of {x, y, font, text}.
If you are familiar with Docker, here is how you can add it to your Dockerfile.
ARG PDF2JSON_VERSION=0.71
RUN mkdir -p $HOME/pdf2json-$PDF2JSON_VERSION \
&& cd $HOME/pdf2json-$PDF2JSON_VERSION \
&& wget -q https://github.com/flexpaper/pdf2json/releases/download/$PDF2JSON_VERSION/pdf2json-$PDF2JSON_VERSION.tar.gz https://github.com/flexpaper/pdf2json/releases/download/$PDF... \
&& tar xzf pdf2json-$PDF2JSON_VERSION.tar.gz \
&& ./configure > /dev/null 2>&1 \
&& make > /dev/null 2>&1 \
&& make install > /dev/null \
&& rm -Rf $HOME/pdf2json-$PDF2JSON_VERSION \
&& cd