Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example to work with latest pdfmake #231

Closed
akravchukabto opened this issue Dec 6, 2024 · 1 comment
Closed

Update example to work with latest pdfmake #231

akravchukabto opened this issue Dec 6, 2024 · 1 comment

Comments

@akravchukabto
Copy link

Hi, firstly, thank you for your work effort at this library.

I have noticed that when using the latest pdfmake the example does not work.
Line
pdfMake.vfs = pdfFonts.pdfMake.vfs;
throughs error
Uncaught TypeError: Cannot read properties of undefined (reading 'vfs')
as I found in this comment #bpampuch/pdfmake#2802 (comment)
changing this line to
pdfMake.vfs = pdfFonts.pdfMake;
will fix the issue.

I assume there is a need to update example.
Thanks.

@Aymkdn
Copy link
Owner

Aymkdn commented Dec 6, 2024

Thanks. I'll adjust it next week.

Aymkdn added a commit that referenced this issue Dec 10, 2024
@Aymkdn Aymkdn closed this as completed Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants