Hi,
I want to convert HTML to image file how can i do that.
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
2609
Views
Hi,
You can convert html to image file using imgkit package with the following code.
import imgkit
imgkit.from_file(your path to the source file , destination path with image format with file name)
For example
imgkit.from_file("user/downloads/filename.html","user/downloads/filename.jpg")
Regards
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up