Content deleted Content added
Link, Added refs, removed baseless and useless claims, removed pdf.js as alternative name |
Rescuing 1 sources and tagging 0 as dead.) #IABot (v2.0.9.5 |
||
(19 intermediate revisions by 14 users not shown) | |||
Line 25:
== History and application ==
PDF.js
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" />
Developers will also embed PDF.js in their software to enable PDF rendering and viewing in a web or native application or rendering on a server. Examples of PDF.js integrations include [[Dropbox (service)]] for PDF document previews,<ref>{{Cite web|last=Lauraharrisneal|title=Annotations on Document Previews|url=https://dropbox.tech/application/annotations-on-document-previews|access-date=2021-08-05|website=dropbox.tech|language=en}}</ref> [[Slack (software)]],<ref>{{Cite news|date=2016-11-16|title=What matters to you, matters to us. - Slack Engineering|language=en-US|work=Slack Engineering|url=https://slack.engineering/what-matters-to-you-matters-to-us-10ff49650a5d|access-date=2021-08-05}}</ref> and Linkedin for viewing accessible course materials online.<ref>{{Cite web|title=Under the hood: Learning with documents|url=https://engineering.linkedin.com/blog/2019/04/under-the-hood--learning-with-documents|access-date=2021-08-05|website=engineering.linkedin.com|language=en}}</ref> Some software development products are also making it easier to extend PDF.js.<ref>{{Cite web|title=Show HN: Pdf.js Express – PDF annotation, e-signatures, and form filling | Hacker News|url=https://news.ycombinator.com/item?id=22763656|access-date=2021-08-05|website=news.ycombinator.com}}</ref><ref>{{Cite web|title=Introducing PDF.js Express|url=https://pdfjs.express/_markdown_template/MarkdownTemplate|access-date=2021-08-05|website=pdfjs.express|language=en}}</ref>▼
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 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> [[Pale Moon (web browser)|Pale Moon]]<ref>{{cite web|title=Add-ons - Moon PDF Viewer|url=https://addons.palemoon.org/addon/moon-pdf-viewer|archive-url=https://web.archive.org/web/20200103222159/https://addons.palemoon.org/addon/moon-pdf-viewer/|archive-date=January 3, 2020|access-date=May 4, 2021|website=Pale Moon - Add-ons}}</ref><ref name=":1">{{Cite web|title=IsaacSchemm/pdf.js-seamonkey: SeaMonkey fork of pdf.js|url=https://github.com/IsaacSchemm/pdf.js-seamonkey|url-status=live|archive-url=https://web.archive.org/web/20201206160734/https://github.com/IsaacSchemm/pdf.js-seamonkey|archive-date=December 6, 2020|access-date=May 4, 2021|website=[[GitHub]]}}</ref> and [[SeaMonkey]].<ref name=":1" /><ref>{{cite web|title=PDF Viewer for SeaMonkey|url=https://addons.thunderbird.net/seamonkey/addon/pdf-js-for-seamonkey|website=Add-ons for SeaMonkey|date=25 April 2020|access-date=13 January 2020|archive-date=13 January 2020|archive-url=https://web.archive.org/web/20200113054940/https://addons.thunderbird.net/seamonkey/addon/pdf-js-for-seamonkey|url-status=dead}}</ref>
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]].
▲
==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>)
Several [[PDF/X]] or optional PDF features that are not supported in PDF.js include:
* [[ICC color profiles|ICC Color Profiles]]<ref>{{Cite web |title=ICC profiles support for images · Issue #2856 · mozilla/pdf.js |url=https://github.com/mozilla/pdf.js/issues/2856 |access-date=2022-05-24 |website=GitHub |language=en}}</ref>
Line 66 ⟶ 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}}
Line 84 ⟶ 94:
[[Category:JavaScript libraries]]
[[Category:Firefox extensions merged to Firefox]]
|