PDFmake is an amazing tool to print PDF file from client/server side using pure js code. Like this,
Users can also print and download the generated PDF files.