Skip to main content

All Questions

Tagged with
0 votes
1 answer
46 views

Zoom pdf.js on mobile view browser

I created a pdf display on the web with pdf.js and it worked normally, the pdf appeared and I could click next and previous, but when the mobile pdf display became small, I couldn't change the ...
irwan dwiyanto's user avatar
0 votes
0 answers
21 views

Print event listeners onafterprint and onbeforeprint work normally but not inside onload

The following code should print a PDF by opening it in a popup window, starting the print dialogue window and closing the popup as soon as the print window is closed. It works as expected in Chrome (...
qarabala's user avatar
  • 178
0 votes
0 answers
49 views

Customizing Stamping Functionality in Mozilla PDF.js Library

We are currently using the Mozilla PDF.js library to implement PDF viewing functionality in our application. Our requirement is to customize the stamping feature in PDF.js to include predefined images ...
chandreshbaldha's user avatar
0 votes
0 answers
123 views

Some pages are skipped when using pdf-parse to extract text from a PDF

I'm currently using pdf-parse, a Node.js library to extract text from a PDF file. However, I've encountered an issue where certain pages are being skipped during the extraction process. I've checked ...
dealwap's user avatar
  • 661
1 vote
1 answer
596 views

pdf.js - get data of modified pdf file

I'm using the pdf.js (v3.10.111) stable version (for modern browsers) from https://mozilla.github.io/pdf.js/getting_started/#download . I'm able to load a pdf file and make graphical modification on ...
user2194805's user avatar
  • 1,319
0 votes
0 answers
1k views

Getting pdf file from URL in Pdf JS

i am working on a project which user can preview pdf before uploading. i successfully created the script to preview pdf file from with the help this javascript pdf library https://mozilla.github.io/...
Fidelis E Peter's user avatar
1 vote
0 answers
622 views

How do I display a PDF I retrieved from a server onto a PDF.js custom pdf viewer page?

I have a pdf sitting in my cshtml page via @Html.HiddenFor(m => m.ConstructedLinkToPdfDocumentForPDFJS) that I need to pass to a javascript file. This javascript file is using PDF.js to display ...
SomeKindaHooty's user avatar
1 vote
1 answer
329 views

Fabricjs responsive canvas items issues

i'm having some issues when the canvas width and height changes, i want the items to be in there same position.. i' using the latest version of fabricjs and using pdfjs library with it.. here's the ...
WhiteWolf's user avatar
1 vote
1 answer
145 views

fabricJS: mouse down for different buttons

i made a multiple canvases in the same page (depends on the pdf pages), it's working fine.. but when i add buttons to add different canvases some of the doesn't work sadly! what a i trying to do ? ...
WhiteWolf's user avatar
1 vote
2 answers
2k views

How to create a draggable element on top of a PDF using PDF.js and jQuery

I am creating a service to stamp a pdf with an image using PDF.js and jQuery. I managed to create a draggable object using PDF.js but the the object leaves a trail of past objects when it is dragged. ...
Dula's user avatar
  • 1,358
0 votes
1 answer
924 views

Pdf.js issue with dynamic content

I include pdf.js as : <script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.js"></script> In my js I created html for my page (want show first page on pdf files). $('#...
Anastasia Zavizion's user avatar
-1 votes
2 answers
5k views

How to show all the pages of a pdf instead of just one in pdf.js

I am having trouble showing all the pages of a PDF instead of one using pdf.js This is the code that displays the pdf I copied this code from Traversy Media's tutorial but it currently only prints ...
fuzzy buddy's user avatar
1 vote
1 answer
319 views

Get canvas id "OnClick"

I'm trying to generate pdf using pdf.js and now I would like to get the canvas "id" when clicked on that particular canvas. This is my fiddle demo https://jsfiddle.net/14953eak/ Code: <div class=...
coder's user avatar
  • 13.2k
4 votes
0 answers
2k views

window.url.createobjecturl(blob) not working in Edge

Firstly, I tried all questions & answers related this topic. Additionally and I tried related questions and try to solve it but no the success. So please read my question thoroughly. Search ...
Sumit patel's user avatar
  • 3,865
2 votes
3 answers
1k views

How to pass Django variable into Javascript

I would like to get some help to pass Django variable in HTML template into Javascript variable. I believed it would be easy, but up to now, I don't overcome to do that. Especially with a Django for ...
Essex's user avatar
  • 6,038

15 30 50 per page
1
2 3 4 5