Hopding / pdf-lib

Create and modify PDF documents in any JavaScript environment
https://pdf-lib.js.org
MIT License
7k stars 676 forks source link

Problem with embedding fonts int pdf based on multiple templates #1607

Open tompodsiadlo opened 8 months ago

tompodsiadlo commented 8 months ago

What are you working on?

Hello, Im trying to generate pdf based on couple of predefined partial templates(pdf file). Such a template is for example header with some background and field where in code I put correct value. Next one is row of a table coming from other pdf template, that based on data I used and put multiple instances to my final pdf. In that scenario Im having troubles embedding fonts. I wanted to embed them so generated pdf will be displayed correctly on both windows machine with chrome and mac with safari. On safari all the data that im filling in code is missing, where on chrome it works fine. I assume that there is problem with fonts that safari(and mac native pdf viewer) dosnt have. Is this scenario smth that should work out of the box or is it too crazy?

Version: 1.17.1 Running on node

Additional Notes

No response