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
Hello, I am trying to use PDF.js with pdfjs-dist in React. From my research I found that I have to access PDFViewerApplication and setup everything from there. I saw some examples in the internet that people were accessing this from here.
import { PDFViewerApplication } from "pdfjs-dist/lib/web/app";
But with the latest version the web/app directory does not exist, so I cannot retrieve the PDFViewerApplication. Can someone give me pointers if this was changed/moved and where should I look to retrieve it from?
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
-
Hello, I am trying to use PDF.js with pdfjs-dist in React. From my research I found that I have to access PDFViewerApplication and setup everything from there. I saw some examples in the internet that people were accessing this from here.
import { PDFViewerApplication } from "pdfjs-dist/lib/web/app";
But with the latest version the web/app directory does not exist, so I cannot retrieve the PDFViewerApplication. Can someone give me pointers if this was changed/moved and where should I look to retrieve it from?
Beta Was this translation helpful? Give feedback.
All reactions