![]() ![]() Run "npm install" or "yarn install"Īt Launcher.launch (/usr/local/lib/node_modules/puppeteer-pdf/node_modules/puppeteer/lib/Launcher.js:119:15) If for some reason it doesn't download automatically chromium, it will give you the following error: (node:14878) UnhandledPromiseRejectionWarning: Error: Chromium revision is not downloaded. If you have extra_applications, you don't need to do anything. If you have the older applications structure inside mix.exs, you need to add :briefly to it. On your elixir project, you just need to add the following dependency: def deps do sudo apt-get install libxss1 lsof libasound2 libnss3 Here is an example for Debian based distributions. In some cases you will need to install this extra dependencies. Install puppeteer-pdf via npm, with the following command: npm i puppeteer-pdf -g Display independent render (for better testing how template will be).Here is the list of pros and cons compared with pdf_generator module. I've written a small blog post where I explain my reasons to create this extension. After some attempts to use wkhtmltopdf using pdf_generator, I've decided to use other software to generate PDF and create a wrapper for it. ![]() This is a wrapper to NodeJS module puppeteer-pdf. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |