From 9e39f5f8a6e03724e3b6cd357cc71b67fdb4c2a9 Mon Sep 17 00:00:00 2001 From: Jonathan Knapp Date: Thu, 26 Oct 2017 17:57:58 -0400 Subject: [PATCH] docs(troubleshooting): Add new buildpack url that adds additional fonts (#1161) The jontewks buildpack worked great for running Chrome headless, but it did not include support for Chinese characters and the PDF rendering I was attempting was not usable. This fix brings in a few custom fonts to allow PDF generation to utilize the fonts. The idea came from https://github.com/dscout/wkhtmltopdf-buildpack/pull/14/files --- docs/troubleshooting.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index f05aa40b..2a125433 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -158,3 +158,5 @@ Running Puppeteer on Heroku requires some additional dependencies that aren't in The url for the buildpack is https://github.com/jontewks/puppeteer-heroku-buildpack When you click add buildpack, simply paste that url into the input, and click save. On the next deploy, your app will also install the dependencies that Puppeteer needs to run. + +If you need to render Chinese, Japanese, or Korean characters you may need to use a buildpack with additional font files like https://github.com/CoffeeAndCode/puppeteer-heroku-buildpack