toPDF
Convert your code into PDF from within your node code . PDF gets generated in the same folder as the code calling
it with the name print.pdf
.
Install
npm install toPDF
Usage
toPDF
takes 3 parameters : filename
, descriptions
and author name
.
Example :
- Printing the same code :
//test.js var pdf = ; console ; pdf ;
- Printing another file :
//test.js var pdf = ; console ; pd ;