Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

PDF.js

From Wikipedia, the free encyclopedia
PDF viewer in JavaScript included in Mozilla Firefox

PDF.js
PDF.js in Firefox 100, with a table of contents displayed on the sidebar
Original authorAndreas Gal
DeveloperMozilla
Initial release2 July 2011 (2011-07-02)[1]
Stable release
5.4.449[2] Edit this on Wikidata / November 29, 2025; 2 months ago (November 29, 2025)
Written inJavaScript,CSS,HTML
PlatformJavaScript engine,web browser
Size3.94 MB[1]
TypePDF viewer
LicenseApache License 2.0[3]
Websitemozilla.github.io/pdf.js/
Repository

PDF.js is aJavaScript library that rendersPortable Document Format (PDF) files using theweb standards-compliantHTML5 Canvas. The project is led by theMozilla Corporation afterAndreas Gal launched it (initially as an experiment) in 2011.

History and application

[edit]

PDF.js was originally created as anextension forFirefox[4] and is included in Firefox since 2012 (version 15),[5][6] and enabled by default since 2013 (version 19).[7][8] It was added toFirefox for Android in 2023 (version 111).[9]

The project was created to provide a way for viewing PDF documents natively in the web browser, which prevents potential security risks when opening PDF documents outside a browser, as the code for displaying the document issandboxed in a browser.[10] Its implementation uses theCanvas element fromHTML5, which allows for fast rendering speeds.[10]

PDF.js is also used inThunderbird,[11]ownCloud,[12]Nextcloud,[13][14] and is available as a browser extension forGoogle Chrome/Chromium,[15]Pale Moon[16][17] andSeaMonkey.[17][18]

It can be integrated or embedded in a web or native application to enable PDF rendering and viewing, and allows advanced usages such asServer-side rendering.

Many web applications, includingDropbox,[19]Slack,[20] andLinkedIn Learning[21] integrate PDF.js to enable previewing PDF documents.

Behavior

[edit]

According to a benchmark byMozilla, PDF.js is performant for viewing most common PDF files, while it may have some issues with large or 'graphics-heavy' documents.[22]

PDF.js supports most of the PDF specifications (including form support orXFA[23]), but some features have not been implemented yet, which may impact rendering behavior depending on the features the document uses.[24]

SeveralPDF/X or optional PDF features that are not supported in PDF.js include:

The PDF.js contributor community also notes that the browser behavior of PDF.js varies with browser support for PDF.js's required features.[28] Performance and reliability will be the best on Chrome and Firefox, which are fully supported and subject to automated testing.

See also

[edit]

References

[edit]
  1. ^ab"Releases · mozilla/pdf.js".GitHub. Retrieved12 March 2021.
  2. ^"Release 5.4.449". 29 November 2025. Retrieved30 November 2025.
  3. ^"pdf.js/LICENSE at master · mozilla/pdf.js".GitHub. 17 February 2022.
  4. ^"PDF Viewer(discontinued)".addons.mozilla.org. Archived fromthe original on 5 December 2015. Retrieved2 December 2015.
  5. ^Parfeni, Lucian (30 April 2012)."PDF.JS and Download Manager Panel Pushed to Firefox 15".Softpedia. SoftNews.
  6. ^Blagoveschenskiy, Anton (29 August 2012)."Вышла новая версия браузера Firefox 15" [New version 15 of the Firefox browser released].Rossiyskaya Gazeta (in Russian). Retrieved9 September 2012.
  7. ^"Bug 773397 – Disable pdf.js prior to FF15 beta 5".bugzilla.mozilla.org.
  8. ^"Firefox 19.0 Release Notes".mozilla.org. Retrieved30 April 2013.
  9. ^"Firefox for Android 111.0, See All New Features, Updates and Fixes".www.mozilla.org. Retrieved19 April 2024.
  10. ^abShankland, Stephen (24 June 2011)."Mozilla eyes hassle-free PDFs on the Web".CNET. Retrieved24 May 2022.
  11. ^"810815 - Integrate pdf.js to Thunderbird".bugzilla.mozilla.org. Retrieved28 January 2022.
  12. ^owncloud/files_pdfviewer, ownCloud, 8 February 2020, retrieved28 March 2020
  13. ^nextcloud/files_pdfviewer, Nextcloud, 18 March 2020, retrieved28 March 2020
  14. ^"PDF viewer - Apps - App Store - Nextcloud".apps.nextcloud.com. Retrieved28 March 2020.
  15. ^"PDF Viewer".Chrome Web Store.
  16. ^"Add-ons - Moon PDF Viewer".Pale Moon - Add-ons. Archived fromthe original on 3 January 2020. Retrieved4 May 2021.
  17. ^ab"IsaacSchemm/pdf.js-seamonkey: SeaMonkey fork of pdf.js".GitHub.Archived from the original on 6 December 2020. Retrieved4 May 2021.
  18. ^"PDF Viewer for SeaMonkey".Add-ons for SeaMonkey. 25 April 2020. Archived fromthe original on 13 January 2020. Retrieved13 January 2020.
  19. ^Lauraharrisneal."Annotations on Document Previews".dropbox.tech. Retrieved5 August 2021.
  20. ^"What matters to you, matters to us. - Slack Engineering".Slack Engineering. 16 November 2016. Retrieved5 August 2021.
  21. ^"Under the hood: Learning with documents".engineering.linkedin.com. Retrieved5 August 2021.
  22. ^"How fast is PDF.js? – Mozilla Hacks - the Web developer blog".
  23. ^"1706133 - (pdf-xfa) [meta] XFA support".bugzilla.mozilla.org. Retrieved28 January 2022.
  24. ^"Guide to Evaluating PDF.js Rendering".PDFTron. Retrieved5 August 2021.
  25. ^"ICC profiles support for images · Issue #2856 · mozilla/pdf.js".GitHub. Retrieved24 May 2022.
  26. ^"Overprint Support · Issue #7360 · mozilla/pdf.js".GitHub. Retrieved24 May 2022.
  27. ^"Issue about knockout groups. · Issue #3136 · mozilla/pdf.js".GitHub. Retrieved24 May 2022.
  28. ^"Frequently Asked Questions · mozilla/pdf.js Wiki".GitHub. Retrieved5 August 2021.

External links

[edit]
Applications and Projects
Mozilla
Labs
Mozilla
Research
Mozilla
Foundation
Firefox
Origins
Frameworks
Components
Typefaces
Discontinued
Forks
Discontinued projects are initalics. Some projects abandoned by Mozilla that are still maintained by third parties are inunderline.
Organization
Foundation
Official affiliates
People
Other topics
Other
Community
Retrieved from "https://en.wikipedia.org/w/index.php?title=PDF.js&oldid=1301080934"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp