PDF.js: Difference between revisions

Content deleted Content added
latest release is 2.5.207
m date format audit, minor formatting, typo(s) fixed: ’s → 's
Line 1:
{{Use dmy dates|date=SeptemberOctober 20122020}}
 
{{Infobox software
Line 14:
| website = [[GitHub]]}}</ref>
| latest release version = 2.5.207
| latest release date = {{Start date and age|df=yes|2020|06|01}}<ref name="PDF.js repo" />
| programming language = [[JavaScript]], [[CSS]], [[HTML]]
| size = 3.94 MB<ref name="PDF.js repo" />
Line 30:
== History and Application ==
 
PDF.js can work as a part of a website or of a browser. Originally created as a [[Firefox extension]],<ref name=":0">{{cite web|title = PDF Viewer(discontinued) |url = https://addons.mozilla.org/en-US/firefox/addon/pdfjs/|website = addons.mozilla.org |accessdate = 2015-12-02 |url-status = dead |archiveurl = https://web.archive.org/web/20151205121858/https://addons.mozilla.org/en-US/firefox/addon/pdfjs/|archivedate = 5 December 2015|df = dmy-all}}</ref> it is now included in [[Mozilla Firefox]] since 2012 (version 15)<ref>{{cite web |title=PDF.JS and Download Manager Panel Pushed to Firefox 15 |first=Lucian |last=Parfeni |url=https://news.softpedia.com/news/PDF-JS-and-Download-Manager-Panel-Pushed-to-Firefox-15-267154.shtml |website=[[Softpedia]] |publisher=SoftNews |date=2012-04-30}}</ref><ref>{{cite web |title = Вышла новая версия браузера Firefox 15 | first = Anton | last = Blagoveschenskiy | url = https://www.rg.ru/2012/08/29/firefox-site-anons.html | newspaper = [[Rossiyskaya Gazeta]] | date = 2012-08-29 | accessdate = 2012-09-09 | language = Russian |trans-title = New version 15 of the Firefox browser released }}</ref> and is enabled by default since 2013 (version 19).<ref>{{cite web|url=https://bugzilla.mozilla.org/show_bug.cgi?id=773397|title=Bug 773397 – Disable pdf.js prior to FF15 beta 5|website=bugzilla.mozilla.org}}</ref><ref name="Firefox Notes - Desktop">{{cite web|title=Firefox 19.0 Release Notes|url=https://www.mozilla.org/en-US/firefox/19.0/releasenotes/|accessdate=30 April 2013|website=mozilla.org}}</ref> It is also included in [[ownCloud]],<ref>{{Citation|title=owncloud/files_pdfviewer|date=2020-02-08|url=https://github.com/owncloud/files_pdfviewer|publisher=ownCloud|access-date=2020-03-28}}</ref>, [[Nextcloud]],<ref>{{Citation|title=nextcloud/files_pdfviewer|date=2020-03-18|url=https://github.com/nextcloud/files_pdfviewer|publisher=Nextcloud|access-date=2020-03-28}}</ref><ref>{{Cite web|url=https://apps.nextcloud.com/apps/files_pdfviewer|title=PDF viewer - Apps - App Store - Nextcloud|website=apps.nextcloud.com|access-date=2020-03-28}}</ref>, and as a browser extension for [[Google Chrome]], [[Chromium (web browser)|Chromium]],<ref>{{cite web|url=https://chrome.google.com/webstore/detail/pdf-viewer/oemmndcbldboiebfnladdacbdfmadadm|title=PDF Viewer|website=Chrome Web Store}}</ref> [[Firefox for Android]],<ref>{{cite web|title=Android PDF.js|url=https://addons.mozilla.org/android/addon/android-pdf-js|website=addons.mozilla.org}}</ref> [[Pale Moon (web browser)|Pale Moon]]<ref>{{cite web|url=https://addons.palemoon.org/addon/moon-pdf-viewer|title=Add-ons - Moon PDF Viewer|website=Pale Moon - Add-ons}}</ref> and [[SeaMonkey]].<ref>{{cite web|title=PDF Viewer for SeaMonkey|url=https://addons.thunderbird.net/seamonkey/addon/pdf-js-for-seamonkey|website=Add-ons for SeaMonkey}}</ref>
 
Developers will also embed PDF.js in their software in order to enable PDF rendering and viewing in a web or native application, or rendering on a server. Examples of PDF.js integrations include within [[Dropbox (service)]] for PDF document previews,<ref> https://dropbox.tech/application/annotations-on-document-previews</ref> [[Slack (software)]],<ref>https://slack.engineering/what-matters-to-you-matters-to-us-10ff49650a5d</ref> and Linkedin for viewing accessible course materials online.<ref>https://engineering.linkedin.com/blog/2019/04/under-the-hood--learning-with-documents</ref> Some software development products are also based on making it easier to extend PDF.js.<ref>https://news.ycombinator.com/item?id=22763656</ref><ref>https://pdfjs.express/blog/introducing-pdfjs-express</ref>
 
==Behavior==
 
According to one benchmark, PDF.js is performant for viewing most common PDF files, while it may have some issues with large or ‘graphics'graphics-heavy’heavy' documents. <ref>https://hacks.mozilla.org/2014/05/how-fast-is-pdf-js/
</ref>
Another analysis found that between 1-3% of PDFs in certain document subsets would crash or freeze the PDF.js viewer, either due to a corrupted file or a complex file.<ref>https://www.pdftron.com/blog/pdf-js/pdf-js-reliability-benchmark/ </ref>
 
PDF.js supports most of the PDF specification, but some features have not been implemented yet, which may impact rendering behavior depending on the features the document uses.<ref>https://www.pdftron.com/blog/pdf-js/guide-to-pdf-js-rendering/</ref>
Line 52:
*Interactive and fillable forms
 
The PDF.js contributor community also notes that the browser behavior of PDF.js varies with browser support for PDF.js’sjs's required features.<ref>[https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#which-browsers-are-supported ]</ref> Performance and reliability will be the best on Chrome and Firefox, which are fully supported and subject to automated testing.
]</ref> Performance and reliability will be the best on Chrome and Firefox, which are fully supported and subject to automated testing.
 
 
 
==See also==
Line 77 ⟶ 74:
| title = pdf.js: Rendering PDF with HTML5 and JavaScript
| authors = Chris Jones and [[Andreas Gal]] (and the pdf.js team)
| work = [[Andreas Gal]]’s's blog
| date = 2011-06-15}}
* {{cite web
Line 94 ⟶ 91:
[[Category:Free web software]]
[[Category:JavaScript libraries]]
 
 
{{free-software-stub}}