Add support for piping (read input from stdin)
Currently pagedjs-cli
assumes that input file is real file. But for XML files the input file is an XML file which is processed by an XSLT processor. It would be nice to have possibility to read input date from stdin:
xsltproc input.xml | pagedjs-cli -o output.pdf -
I used this setup with Prince and Weasyprint:
xsltproc input.xml | prince -o output.pdf -
xsltproc input.xml | weasyprint - output.pdf