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

TypeError: pdf_lib__WEBPACK_IMPORTED_MODULE_2__.PDFDocument.registerFontkit is not a function #1638

Open
2 tasks done
pensionbox-piyush opened this issue Jun 15, 2024 · 0 comments

Comments

@pensionbox-piyush
Copy link

What were you trying to do?

i am trying to add a custom font but getting this error in Next.js 14.1.3.
Screenshot from 2024-06-15 12-42-16
Screenshot from 2024-06-15 12-42-28

How did you attempt to do it?

FIle Code snippets:
Screenshot from 2024-06-15 12-43-58
Screenshot from 2024-06-15 12-44-09

What actually happened?

My package.json :
Screenshot from 2024-06-15 12-44-56

What did you expect to happen?

setting up an custom fonts facing errors

How can we reproduce the issue?

You can reproduce it by simply following the code snippets

Version

1.17.1

What environment are you running pdf-lib in?

Browser

Checklist

  • My report includes a Short, Self Contained, Correct (Compilable) Example.
  • I have attached all PDFs, images, and other files needed to run my SSCCE.

Additional Notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant