I'm using pdf2json (https://github.com/modesty/pdf2json) to convert some PDF files to JSON. I am modifying the JSON files (the ones generated by pdf2json) and then I would like to obtain the corresponding PDF files using the modified JSON files. Is there a way to achieve this?
Thanks in advance.


A quick look at that page suggests that pdf2json does not export enough information to round-trip back to PDF - it just extracts a useful subset of the PDF.
To round-trip, you can use
cpdf -output-json in.pdf -o out.jsonThen modify the JSON file and use:
cpdf -j out.json -o out.pdfIf you want to also edit the page content, you will need
cpdf -output-json -output-json-parse-content-streams -o out.jsoninstead of the first command.