You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all! I am unsure if this is the right place to ask this question but I have been stumped trying to find a solution for what I am working on.
I have a Next.js application and I have existing pdf files in the /public directory. I want to create a component that can be reusable sitewide. I want to watermark these existing pdfs with the currently logged-in Company Name. I am getting the 'Error: Expected instance of PDFDict, but got an instance of undefined' error when my render tries to get the pages from the loaded pdf document. Has anyone had to tackle this task before in a Next.js environment? Here is my component file:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all! I am unsure if this is the right place to ask this question but I have been stumped trying to find a solution for what I am working on.
I have a Next.js application and I have existing pdf files in the /public directory. I want to create a component that can be reusable sitewide. I want to watermark these existing pdfs with the currently logged-in Company Name. I am getting the 'Error: Expected instance of PDFDict, but got an instance of undefined' error when my render tries to get the pages from the loaded pdf document. Has anyone had to tackle this task before in a Next.js environment? Here is my component file:
Beta Was this translation helpful? Give feedback.
All reactions