Forum Feature requests

Structured command-line output

mentat
Hi Prince Team,

I was wondering if it would be possible to output the number of pages rendered to stdout when prince is run. This way I wouldn't have to run an extra program like pdfinfo to find that out.

A possible extension to would be a command line switch that outputs the stdout/err in a machine readable format, preferably something like JSON, but XML is also doable.

Thanks!
mikeday
The (undocumented) --server command-line option will print out error and warning messages in a machine readable format on standard error. We don't yet print out the total page count, but this would be a valuable feature, so I'll move it up the roadmap.
mikeday
We've added a new --log-stats command-line option to Prince 7.0 which prints out the total page count of the document.