How can I use a vendor libary (specifically I want to use PDF.js) in a Vue component? (I only want to load it for this specific component as they are rather larger files)  I'm building an editor that needs to load a pdf. So I placed the pdf.js an...
Recently the PDF rendering get a messed up text layer where text gets duplicated with the grey colored overlay. No idea about how to fix it as when i remove   textLayerFactory: new pdfjsViewer.DefaultTextLayerFactory() it works fine. but need this as...
My problem is that the memory usage of my application increases every time I render a pdf file with viewer.js.   I render my pdf this way:  container = document.getElementById('viewerContainer'); viewer = document.getElementById('viewer&#...
I need to place multiple PDFs on a page determined by an AJAX response, and when all documents and pages have rendered, call window.print.  The pages (canvases) of each document are being added to a div with class 'pdfdoc' to keep the pages i...
I am trying to reference PDF.js (by Mozilla) into my React project. However, it is throwing 'Unexpected identifier' error.   I have placed the PDF.js in the public folder and referenced it in my index.html.  File structure:   public   - index...
I have custom pdf viewer html page for rendering the pdf. i am using pdfjs library for render the pdf. It's working fine for me.  When i open the small pdf file then it downloads and renders the file quickly, when i open the large pdf then it dow...
I am trying to parse a pdf with more than 300 page. I am using pdf-parse npm package.  The pdf has 300 pages. But my application crashes to while parsing the pdf. My question is that is there way by which i can parse one page at a time? Below is the...
I am trying to display PDF in browser, I found library PDF.js which is most popular and most suggested library. Documentations and are clear, but one I try to use latest official release 2.0.943 document is not rendered, it gets loaded(as I see corre...
I am trying to draw a grid on top of the image of a PDF, and so I am working with the pdf.js example. I have written some code which reliably produces a grid in fabric.js, and so in the first instance I added it to the pdf.js minimal example to see w...
I'm trying to add a onclick() event in pdfjs.    I have tried adding a method to handle the onclick in pdf.js file. I'm getting this error on click "Uncaught ReferenceError: displayAttachmentsOnLocation is not defined".   In Html:  &l...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.