Replies: 1 comment
-
Could anyone let me know about it, as I have to integrate it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Attach (recommended) or Link to PDF file here:
Configuration:
Steps to reproduce the problem:
https://mozilla.github.io/pdf.js/web/viewer.html
The same way I have to use the findbar and everything, not only render pdf but uses all its feature as well
What is the expected behavior? (add screenshot)
I am dispatching the event
pdfViewer.eventBus.dispatch("findbarinit", {
source: this,
bar: pdfFindController,
});
But its not working
What went wrong? (add screenshot)
Can you tell me it is possible to use inbuilt pdf-findbar or not
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
Here is my code
async setupApp() { const DEFAULT_URL = "https://pdfobject.com/pdf/sample.pdf"; const CMAP_URL =
//cdn.jsdelivr.net/npm/pdfjs-dist@${pdfjsViewer.version}/cmaps/`;const CMAP_PACKED = true;
const ENABLE_XFA = true;
const container = document.getElementById("viewerContainer");
const eventBus = new pdfjsViewer.EventBus();
const pdfLinkService = new pdfjsViewer.PDFLinkService({ eventBus });
if (container) {
const pdfFindController = new pdfjsViewer.PDFFindController({
eventBus,
linkService: pdfLinkService,
});
const pdfViewer = new pdfjsViewer.PDFViewer({
container,
eventBus,
textLayer: true,
linkService: pdfLinkService,
findController: pdfFindController,
supportsIntegratedFind: true,
});
this.pdfViewer = pdfViewer;
this.eventBus = eventBus;
this.pdfFindController = pdfFindController;
//pdfFindController.setViewer(pdfViewer);
Beta Was this translation helpful? Give feedback.
All reactions