Skip to content

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

Open
@BH4EHN

Description

@BH4EHN

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions