Hacker GitHub

← All repos

mozilla/pdf.js

View on GitHub ↗ ★ 54,076 JavaScript

PDF Reader in JavaScript

67 mentions on Hacker News by 60 people: 4 stories, 63 comments · first 2012-01-27 · latest 2026-10-30

Mentions per year 67 mentions · busiest year 2014 (10)
20082026
  1. …https://github.com/mermaid-js/mermaid https://github.com/moment/moment https://github.com/mozilla/pdf.js https://github.com/pixijs/pixijs https://github.com/mapbox/earcut https://github.com/primus/eventemitter3 https://github.com
  2. …any case, Hebrew is handled differently from other RTL languages, hence this bug report in PDF.js: https://github.com/mozilla/pdf.js/issues/20097 Almost certainly something a smaller team would have never caught, given that a team with a…
  3. I'm curious to know why you built this when the Mozilla PDF viewer exists: https://github.com/mozilla/pdf.js Not criticizing because there's lots of reason to build things that exist, just curious.
  4. https://github.com/mozilla/pdf.js#readme (Apache 2)
  5. Yes, pdf.js can do that: https://github.com/mozilla/pdf.js/blob/master/web/viewer.htm... . The purpose of my original comment was to simply say: there’s an existing implementation so if you’re building a pdf file viewer/editor, and you…
    comment by rad_gruchalski · 2025-05-13 · in PDF to Text, a challenging problem
  6. …enabled by default. The feature is still sitting as "planned for the future" in their PDF library: https://github.com/mozilla/pdf.js/issues/15843
  7. https://github.com/mozilla/pdf.js#online-demo
    comment by haebom · 2023-12-12 · in Ask HN: Best PDF Viewer in Browser?
  8. …are actually an extension, just one built in as Firefox's default pdf viewer. It's called pdf.js https://github.com/mozilla/pdf.js/ You can actually use this pdf viewer in another browser like Chrome if you'd like, there's a demo URL on…
  9. …/blog.chromium.org/2011/01/html-video-codec-support-i... [2]: https://github.com/chromium/pdfium [3]: https://github.com/mozilla/pdf.js
  10. They already have a pdf reader they could add with ease https://github.com/mozilla/pdf.js
    comment by nazgulsenpai · 2022-12-26 · in Save web pages as PDF in Firefox for Android
  11. …might want to have a look at the documents used as test cases in other projects, such as pdf.js: https://github.com/mozilla/pdf.js/tree/master/test/pdfs
  12. PDF.js does support decrypting password-protected documents on its own: https://github.com/mozilla/pdf.js/issues/7967
    comment by commoner · 2022-08-22 · in React PDF Viewer
  13. …one in Chrome or similar. This is what PDF.js is... > PDF.js is built into version 19+ of Firefox. https://github.com/mozilla/pdf.js
    comment by mcny · 2022-08-22 · in React PDF Viewer
  14. …I'm taking my shot with https://github.com/wailsapp/wails (webview2 supported on Windows) and https://github.com/mozilla/pdf.js for a PDF processing related use case. Wails because I imagine extensive Golang based services…
  15. Firefox has included a viewer based on PDF.js since 2013: https://github.com/mozilla/pdf.js#online-demo No need to download to anything other than localstorage. There have been a half dozen vulnerabilities found in the Firefox extension…
    comment by LeifCarrotson · 2022-01-14 · in The collapse of 1284 at Beauvais Cathedral [pdf]
  16. https://github.com/mozilla/pdf.js/issues/2750 It's because pdf.js does not print vector and instead is just printing canvas bitmaps. If they ever get the SVG backend working its will finally have good print quality without trying to get…
  17. …browser's own JS engine (but confined to a sandbox), and quickjs in other settings (say a website). https://github.com/mozilla/pdf.js/issues/12487 But I can't find Components.utils.Sandbox being referenced in the code on github. So maybe…
    comment by est31 · 2021-04-19 · in Firefox 88.0
  18. …with it (probably overkill, really) and I'm using Mozilla's pdf.js [1] to render documents. [1] https://github.com/mozilla/pdf.js
  19. …easier for you to contribute to the project by providing you with the lines you'd need to update: https://github.com/mozilla/pdf.js/blob/83e1bbea6e23db8744420... https://github.com/mozilla/pdf.js/blob/83e1bbea6e23db8744420...
  20. …easier for you to contribute to the project by providing you with the lines you'd need to update: https://github.com/mozilla/pdf.js/blob/83e1bbea6e23db8744420... https://github.com/mozilla/pdf.js/blob/83e1bbea6e23db8744420...
  21. Firefox PDF support is actually Javascript. https://github.com/mozilla/pdf.js
  22. …other than for the purpose of functioning as the core pdf viewer. But I am not that imaginative! https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Ques... https://en.wikipedia.org/wiki/PDF.js
    comment by mapgrep · 2020-08-25 · in Firefox 80
  23. …pdf form printing for quite a long time[1],instead of rolling a canvas screenshot hack. [1] https://github.com/mozilla/pdf.js/issues/7613
  24. …moving away from their proprietary XFA format, with the introduction of their forms extension. [1] https://github.com/mozilla/pdf.js/issues/2373
  25. IIRC this is also how Firefox is doing it for its pdf.js print feature: https://github.com/mozilla/pdf.js/blob/master/web/pdf_print_... Which is why when you print a PDF from Firefox, it doesn't look very nice. But it's safer than sending…
  26. Better to go upstream https://github.com/mozilla/pdf.js/issues
    comment by phonon · 2019-06-24 · in Give Firefox a chance
  27. …https://opensource.google.com/projects/pdfium its native and fast. Firefox I think still uses https://github.com/mozilla/pdf.js which was not bad last time I used it, but it all javascript so performance isn't up to par with native. Also…
  28. …PDF generation is done with some script like https://github.com/mrrio/jspdf and then rendered with https://github.com/mozilla/pdf.js :)
  29. …dependencies. Since it's such a quickly evolving project, I wondered where form support is up to. https://github.com/mozilla/pdf.js/issues/7613 Form support is not complete. Seems like it required quite a rewrite to get the foundation in a…
    comment by throwaway12iii · 2018-12-13 · in 50 CVEs in 50 Days: Fuzzing Adobe Reader
  30. …next page, and p/k to go to previous page. Works quite nicely for flipping through PDF slides. [0]: https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Ques...
  31. …Firefox itself use pdf.js for PDF rendering? The FAQ says it's been baked into Firefox since v19: https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Ques...
  32. …PDFViewerApplication.preferences.set('renderer', 'svg');` in the console, and reload the page/viewer: https://github.com/mozilla/pdf.js/pull/8564
    comment by pettou · 2017-06-27 · in SVG backend for PDF.js
  33. You might be able to tweak this pdf.js example to dump out its canvas element after it renders. https://github.com/mozilla/pdf.js/blob/master/examples/learn...
  34. Javascript-based PDF renderers exist already - Firefox uses one by default. https://github.com/mozilla/pdf.js/
  35. …of PDFs every day ...has anyone from Mozilla ever talked to ACORD (or even knows who they are?) [1] https://github.com/mozilla/pdf.js/issues/7613 [2] http://www.codeproject.com/Articles/466362/Blend-PDF-with-HT...…
    comment by phonon · 2016-10-01 · in Firefox: Announcing Project Mortar
  36. How many people are working on PDF.js that are paid by Mozilla? https://github.com/mozilla/pdf.js/graphs/contributors looks like there are only 2 main contributors (i.e. maintainers, in the sense of continuously and ongoing committing for…
    comment by nachtigall · 2016-09-30 · in Firefox: Announcing Project Mortar
  37. https://www.adobe.com/uk/epaper/tips/acr5reflow/ https://github.com/mozilla/pdf.js/issues/4816
  38. …would be http://web.mit.edu/~simsong/www/ugh.pdf#page=177 For pdf.js (used by Firefox), refer to https://github.com/mozilla/pdf.js/wiki/Viewer-options If using Adobe Reader, refer https://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pd…
  39. …we will need to add PDF support into Photopea in the future. Luckily, there already exists pdf.js https://github.com/mozilla/pdf.js/ :)
    comment by IvanK_net · 2016-03-04 · in Fun Photoshop File Format Facts
  40. Yeah, and that feature was only used in the Firefox deployment of pdf.js. https://github.com/mozilla/pdf.js/commit/4f3f983a214867011dd... Not sure who's to blame, but like he said, there was no vulnerability in the web version.
  41. I believe the upstream pdf.js fixed this already, https://github.com/mozilla/pdf.js/ .
  42. Checkout the pdfjs test suite, if you want to try it: https://github.com/mozilla/pdf.js/tree/master/test/pdfs
    comment by ushi · 2015-03-17 · in PDF Viewing
  43. The Firefox PDF viewer (pdf.js) can be used in any browser from any website. https://github.com/mozilla/pdf.js See a demo: http://mozilla.github.io/pdf.js/web/viewer.html
  44. …past it to get to the add-on. PDF.js uses this approach actually. See "Development version" at https://github.com/mozilla/pdf.js/ as an example.
  45. If anyone wants to report an issue: https://github.com/mozilla/pdf.js/issues
  46. It appears to be a bug in pdf.js (or the PDF format itself): https://github.com/mozilla/pdf.js/issues/5064 As somebody else mentioned, you can use the arrow/triangle to display the regular viewer toolbar, and zoom out. This is obviously…
  47. …v1.0.277 is a pre-release, so this will probably be in the next release or the one after that. ( https://github.com/mozilla/pdf.js/releases ) I have recently switched my project from v0.8.1013 (from feb 2014) to v1.0.68 and rendering times…
    comment by jeroen · 2014-06-16 · in An even slimmer pdf.js
  48. …but my overall understanding of the code base is pretty weak. I recommend filing a new issue here: https://github.com/mozilla/pdf.js/issues/new
    comment by nnethercote · 2014-05-09 · in How fast is PDF.js?
  49. …be stuck with this behaviour till "pdf.js 2.0". Edit: This is an example of what I'm talking about https://github.com/mozilla/pdf.js/issues/3853
    comment by keeperofdakeys · 2014-05-09 · in How fast is PDF.js?
  50. > Will a bug filed at GitHub like https://github.com/mozilla/pdf.js/issues/4761 still reach the right place? Filing at Bugzilla will probably give you a wider audience. This can be useful if the underlying perf problem is with Firefox…
    comment by nnethercote · 2014-05-09 · in How fast is PDF.js?