fathyb / html2svg

Convert HTML and `<canvas>` to SVG, PDF, or images using Chromium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDF support

fathyb opened this issue · comments

Tracking PDF support here

PNG/JPEG supports as well please.

wkhtmltopdf already exists for this purpose - https://wkhtmltopdf.org/

commented

wkhtmltopdf already exists for this purpose - https://wkhtmltopdf.org/

Core browser engine inside wkhtmltopdf is severely outdated. Flexbox and everything that came after it is not supported. Nevertheless, wkhtmltopdf could be used as a baseline for features to implement. Also compatible CLI could be developed which would ease the transition for end users.

PDF support has landed! You can try it on the latest Docker image:

docker run fathyb/html2svg https://google.com --format pdf > google.pdf

Tracking the raster support (JPEG, PNG, WebP) on #9.