parallax/jsPDF

Request new function, global add font or clone existing jsPdf instance

Open

#3,083 建立於 2021年2月3日

在 GitHub 查看
 (4 留言) (3 反應) (0 負責人)JavaScript (4,596 fork)batch import
Feature Requesthelp wanted

倉庫指標

Star
 (28,280 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I'm building a website use NodeJS, output PDF for customers. Currently, I call addFileToVFS() and then addFont() before every time actual draw pdf content, and this two function only cost seconds.

Is there a way to add font once and clone the jsPdf instance every time I use it, or add font to some "global object" then every new jdPdf instance can use the font? What is the best practice for NodeJS application (eg. website) for generating PDF using jsPDF with custom fonts?

貢獻者指南