Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsable Output #506

Closed
mbrevda opened this issue Aug 21, 2022 · 3 comments
Closed

Parsable Output #506

mbrevda opened this issue Aug 21, 2022 · 3 comments
Assignees

Comments

@mbrevda
Copy link
Contributor

mbrevda commented Aug 21, 2022

Is there an option to have output is json (or csv/anything easily parsable)? Would be great for when calling programmatically from other languages.

@hhrutter
Copy link
Collaborator

Sorry I don't understand your question.
Please be specific and layout your usecase.

@mbrevda
Copy link
Contributor Author

mbrevda commented Aug 21, 2022

The use case is simplifing parsing the output of a command. Here's what it might look like:

Instead of the usual output, pdfcpu info --json file might return:

{
  "PDFversion": "1.6",
  "Pagecount": "2",
  "Pagesize": "595.32 x 841.92 points"
   ...
}

the spaces can even be kept in the key names making it simpler to translate to json.

@mbrevda
Copy link
Contributor Author

mbrevda commented Aug 20, 2023

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants