Skip to content

Instantly share code, notes, and snippets.

@vasa-develop
Created October 3, 2019 14:33
Show Gist options
  • Save vasa-develop/b648e61f8c9b364208df831845c0299f to your computer and use it in GitHub Desktop.
Save vasa-develop/b648e61f8c9b364208df831845c0299f to your computer and use it in GitHub Desktop.
How to do html => pdf => img
html => pdf
use `html-pdf` module
pdf => img
use `pdf-image`
First install
sudo apt-get install imagemagick ghostscript poppler-utils
Then add permission for PDF using this:
https://alexvanderbist.com/posts/2018/fixing-imagick-error-unauthorized
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment