AWS Lambda与Puppeteer:表情符号和非拉丁文字的字体

The problem If you want to create PDFs or screenshots of sites the best solution is Puppeteer (https://pptr.dev/). The problem is that if you have Emojis or languages such CJK (Chinese, Japanese,...

要创建包含表情符号或CJK语言的PDF或截图,建议使用Puppeteer和Sparticuz的Chromium层。下载Chromium层并上传至S3,创建Lambda层。由于缺少字体,建议使用Google的Noto字体,添加后压缩并创建字体层。安装puppeteer-core并将Chromium和字体层附加到Lambda中。

AWS Lambda与Puppeteer:表情符号和非拉丁文字的字体
原文英文,约200词,阅读约需1分钟。发表于:
阅读原文