Possible evolutions of pagedjs (avoid uses of files to store html and pdf in pagedjs-cli)
Hello there
I've start to work in project which used pagedjs. It is an api which received html and send pdf in output. I've discover many things which can help the development of pagedjs and also pagedjs-cli.
Instead of use pagedjs-cli I developp my own service which call directly puppeteer. Before that I had the polyfill of pagedjs. The idea behing that is: avoid to store files as pagedhjs-cli made and work with buffer and stream. Puppeteer allow this thing and it is a very good news for pagedjs-cli:
- Use stdin and stdout instead of store input html and output pdf => (uses of buffer and stream)
- Avoid the problems which can exists between differents platforms such as linux, windows and macos where the management of files can be not the same
The link of my project (the main branch contains implementation with pagedjs-cli and the second branch contains my implementation with the replace of pagedjs-cli)