tbodt / v8py

Write Python APIs, then call them from JavaScript using the V8 engine.
GNU Lesser General Public License v3.0
440 stars 28 forks source link

Can I render PDF from HTML by using this library? #37

Closed Spawn closed 4 years ago

tbodt commented 4 years ago

No

tbodt commented 4 years ago

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

Spawn commented 4 years ago

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 :slightly_smiling_face:

tbodt commented 4 years ago

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

Spawn commented 4 years ago

Will check, thanks!