PDF.js: Difference between revisions

Content deleted Content added
Sylvestre (talk | contribs)
refresh a bit the page
Sylvestre (talk | contribs)
Analysis done by a commercial competitor "You could consider a more robust commercial solution, like PDFTron WebViewer ." and not analysis dated
Line 23:
}}
 
'''PDF.js''' or '''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 FoundationCorporation]] after [[Andreas Gal]] launched it (initially as an experiment) in 2011.
 
== History and Application ==
Line 35:
According to one benchmark, PDF.js is performant for viewing most common PDF files, while it may have some issues with large or 'graphics-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>{{Cite web|title=Benchmark: How Reliable is PDF.js?|url=https://pdftron.com/blog/pdf-js/pdf-js-reliability-benchmark/|access-date=2021-08-05|website=PDFTron}}</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>