metanorma / metanorma-cli

CLI (Command Line Interface) for Metanorma
BSD 2-Clause "Simplified" License
5 stars 5 forks source link

Add debug mode for PDF rendering #308

Open Intelligent2013 opened 1 year ago

Intelligent2013 commented 1 year ago

Currently mn2pdf supports the debug mode (generates intermediate XSL-FO, IF, config files) via CLI parameter --debug, -d. The debug mode is very helpful in case of some issues in the PDF generation.

Currently, there isn't possibility to pass this parameter via metanorma command line:

bundle exec metanorma -t iso -x pdf rice-en.final.adoc 

To do: when in the CLI there is -pdfdebug (or something similar), then add the parameter --debug (or -d) for mn2pdf.jar (in mn2pdf-ruby).