Oleg Kovalov
Oleg Kovalov

Reputation: 762

How to save html elements to jpeg/png or pdf using python

So I have an html-page:

<html>
    <b>Bold text</b>
    <table><tr><td>abc</td></tr></table>
</html>

How I can save <b>Bold text</b> or any html tag to jpeg/png or pdf. Thanks.

Upvotes: 2

Views: 2927

Answers (2)

sputnikus
sputnikus

Reputation: 583

For converting HTML to PDF in Python try pisa.

Upvotes: 2

eumiro
eumiro

Reputation: 213005

Is HTML/CSS to PDF converter written in Python the right tool for you?

Upvotes: 1

Related Questions