Skip to content

[FEATURE] Dump results into a JSON #81

@jeertmans

Description

@jeertmans

Issue

Currently, results are printed out to the terminal, in a relatively nice looking table.

However, this means information could be very hard to extract if one, e.g., wanted to use rpdf and pipe it's output to another tool.

I think a more structured output format could be very useful.

Suggested fix

I suggest we offer JSON output format, that will output the information to a terminal (or file?) in a structured way.

To do so, each command should return a structure, that contains relevant statistics about the PDFs processed. Then, the structure will either derive JSON and be printed as a raw JSON, or transformed into a nice table (as this is already the case). Some option like pretty formatting and write to file could be also added to that JSON output.

If you are interested to help, please feel free to submit a PR or ask any question :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomershacktoberfestIssue that is created for the Hacktoberfest event

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions