The html file looks like
<div class="contact">
Phone: +00-0000000<br/>
E-mail: <a href="mailto:[email protected]" >[email protected]</a>
Github: <a href="https://www.github.com/zsameem">www.github.com/zsameem</a>
</div>
</div>
code for gennerating pdf is simply:
import pdfkit
pdfkit.from_file('mypage.html', 'mypdf.pdf;')