Content deleted Content added
No edit summary Tags: Reverted references removed Mobile edit Mobile web edit |
Rescuing 1 sources and tagging 0 as dead.) #IABot (v2.0.9.5 |
||
(10 intermediate revisions by 8 users not shown) | |||
Line 1:
{{Short description|PDF viewer in JavaScript included in Mozilla Firefox}}
{{Use dmy dates|date=October 2020}}
{{Infobox software
| name = PDF.js
| logo = Pdf-js logo.svg
| screenshot = PDF js Screenshot in Firefox 100.png
| caption = PDF.js in Firefox 100, with a table of contents displayed on the sidebar
| collapsible =
| author = [[Andreas Gal]]
| developer = [[Mozilla]]
| released = {{Start date|2011|07|02|df=yes}}<ref name="PDF.js repo">{{cite web |title = Releases · mozilla/pdf.js |url = https://github.com/mozilla/pdf.js/releases |access-date = 12 March 2021 |website = [[GitHub]]}}</ref>
| latest release version = {{wikidata|property|edit|reference|P348}}
| latest release date = {{start date and age|{{wikidata|qualifier|mdy|P348|P577}}}}
| programming language = [[JavaScript]], [[CSS]], [[HTML]]
| size = 3.94 MB<ref name="PDF.js repo" />
| platform = [[JavaScript engine]], [[web browser]]
| genre = [[PDF viewer]]
| license = [[Apache License]] 2.0<ref>{{cite web |url = https://github.com/mozilla/pdf.js/blob/master/LICENSE |title = pdf.js/LICENSE at master · mozilla/pdf.js |website = [[GitHub]]|date = 17 February 2022 }}</ref>
| website = {{URL|https://mozilla.github.io/pdf.js/}}
}}
'''PDF.js''' is a [[JavaScript library]] that renders [[Portable Document Format]] (PDF) files using the [[web standard]]s-compliant [[HTML5 Canvas]]. The project is led by the [[Mozilla Corporation]] after [[Andreas Gal]] launched it (initially as an experiment) in 2011.
== History and application ==
PDF.js was originally created as an [[Browser extension|extension]] for [[Firefox]]<ref name=":0">{{cite web|title = PDF Viewer(discontinued) |url = https://addons.mozilla.org/en-US/firefox/addon/pdfjs/|website = addons.mozilla.org |access-date = 2015-12-02
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 is [[sandboxed]] in a browser.<ref name=":2">{{Cite web |last=Shankland |first=Stephen |date=2011-06-24 |title=Mozilla eyes hassle-free PDFs on the Web |url=https://www.cnet.com/culture/mozilla-eyes-hassle-free-pdfs-on-the-web/ |access-date=2022-05-24 |website=CNET |language=en}}</ref> Its implementation uses the [[Canvas element]] from [[HTML5]], which allows for fast rendering speeds.<ref name=":2" />
PDF.js is also used in [[Mozilla Thunderbird|Thunderbird]],<ref>{{Cite web|title=810815 - Integrate pdf.js to Thunderbird|url=https://bugzilla.mozilla.org/show_bug.cgi?id=810815|access-date=2022-01-28|website=bugzilla.mozilla.org|language=en}}</ref> [[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 is available as a browser
It can be integrated or embedded in a web or native application to enable PDF rendering and viewing, and allows advanced usages such as [[Server-side rendering]].
Line 99 ⟶ 37:
==Behavior==
According to a benchmark by [[Mozilla]], PDF.js is performant for viewing most common PDF files, while it may have some issues with large or 'graphics-heavy' documents.<ref>{{Cite web|url=https://hacks.mozilla.org/2014/05/how-fast-is-pdf-js/|title=How fast is PDF.js? – Mozilla Hacks - the Web developer blog}}</ref>
PDF.js supports most of the PDF specifications (including form support or [[XFA]]<ref>{{Cite web|title=1706133 - (pdf-xfa) [meta] XFA support|url=https://bugzilla.mozilla.org/show_bug.cgi?id=1706133|access-date=2022-01-28|website=bugzilla.mozilla.org|language=en}}</ref>), but some features have not been implemented yet, which may impact rendering behavior depending on the features the document uses.<ref>{{Cite web|title=Guide to Evaluating PDF.js Rendering|url=https://pdftron.com/blog/pdf-js/guide-to-pdf-js-rendering/|access-date=2021-08-05|website=PDFTron}}</ref>
Line 134 ⟶ 72:
| url = https://andreasgal.com/2011/06/15/pdf-js/
| title = pdf.js: Rendering PDF with HTML5 and JavaScript
|
| work = [[Andreas Gal]]'s blog
| date = 2011-06-15}}
* {{cite web
|
|
|
|
|
|access-date = 3 January 2020
|archive-date = 13 January 2015
|archive-url = https://web.archive.org/web/20150113184320/https://webscripts.softpedia.com/blog/Script-of-the-Day-pdf-js-266909.shtml
}}
{{Mozilla organisations}}
|