tbodt/v8py

Can I render PDF from HTML by using this library?

Spawn opened this issue · 5 comments

Spawn commented
Can I render PDF from HTML by using this library?
tbodt commented

No

tbodt commented

This is just a library for running JavaScript. You're probably looking for something like wkhtmltopdf or headless chrome.

Spawn commented

Unfortunately I want to use python wrapper to render html from pdf fast. wkhtmltopdf is working not correctly (sometimes doesn't load images by links) and headless chrome accepts data through socket and It makes impossible to figure out when pdf is rendered. I need some python wrapper for some of browser engines or low-level libraries for pdf rendering. But thank you for answer 🙂

tbodt commented

With a bit of work you can probably do what you need by rewriting https://github.com/spajak/cef-pdf in python.

Spawn commented

Will check, thanks!