to convert html file to pdf file 👇️
-
install wkhtmltopdf
npm install wkhtmltopdf
see the installation here wkhtmltopdf-installation
-
put this line in terminal
wkhtmltopdf --enable-local-file-access -T 0 -B 0 --page-width 210mm --page-height 280mm --margin-left 0 --margin-right 0 cv.html Saeed_Khaled_CV_Test.pdf