pdf2json

Converts PDF documents to JSON and XML format

brewmacoslinux
Try with needOr install directly
Source

About

PDF to JSON and XML converter

Commands

pdf2json

Examples

Convert a PDF file to JSON format$ pdf2json input.pdf output.json
Convert a PDF file to XML format$ pdf2json -xml input.pdf output.xml
Convert PDF with custom output directory$ pdf2json -outdir ./output input.pdf