PDF.js. PDF.js is an HTML5-based Portable Document Format renderer. Project Manager: Bill Walker Developers: Artur Adib, Brendan Dahl Repository: IRC: #pdfjs on irc.mozilla.org Mailing list: dev-pdf-js Meeting Notes Meeting notes are now kept in etherpad and follow the format of Current work items Render PDF 1.7 spec perfectly (tracked by github issues) Analyze pdf.js's feature completeness across all PDFs gather large corpus of PDFs (unassigned) run pdf.js over all PDFs to collect data on missing and broken features (unassigned) prioritize missing features (unassigned) implement missing features (unknown work) Integrate code into Firefox/Gecko proper (as required) Tracking in-progress work We'll try to use github issues to track work. Like bugzilla, "issues" are used to track both bugs filed by users and specific work items for developers. Text looks bad in PDFs is an unspecific issue.
Similarly, Implement fonts Testing Utils. Pdf.js: Rendering PDF with HTML5 and JavaScript | Andreas Gal. Update: I updated the links again. pdf.js has moved to a new location on github. Why? While traveling to the Firefox 4 launch parties in Seoul and Taipei all the way from California, we killed a lot of time by brainstorming cool things to do with the web platform. Like many before us, we were wondering why nobody had implemented a PDF reader in HTML5/JavaScript.
The kinds of operations a PDF reader needs to be fast at –render text, draw lines, blit images– need to be fast in browsers too, so browsers are already highly optimized for them. Building an HTML5-based PDF renderer would also answer the question of whether the web platform and in particular canvas and SVG APIs are complete enough to efficiently and faithfully render PDFs. Displaying PDFs directly in the browser would definitely improve the user’s experience. It’s important to note that we’re not trying to promote PDF to a first-class web citizen like HTML5 is. Benefits Project Status Whats next? Open Source Like this: Like Loading... Les PDF succombent à la tentation du HTML5 et du JavaScript, pdf.js : un projet de la fondation Mozilla. Les navigateurs reposent à présent sur des plug-ins pour afficher les fichiers PDF, mais cela pourrait bientôt changer avec la révélation d'un nouveau projet de la fondation Mozilla. Ce projet en développement depuis quelques mois s'appelle « pdf.js ».
Il substitue d'une manière encore perfectible, mais prometteuse, les rendu des plug-ins avec la balise <Canvas> (de dessin 2D en HTML5), pilotée par du JavaScript. Une démonstration disponible sur le site du contributeur principal du projet (le chercheur Andreas Gal) permet de parcourir les pages d'un fichier PDF d'exemple, riche en combinaisons de textes et d'illustrations, ou d'essayer avec son propre document.
À présent, cette démonstration charge tous les fichiers du projet, cible et prépare manuellement l'affichage du PDF, mais son équipe affiche l’ambition de l'intégrer bientôt à Firefox en passant par la case d'extension, tout en stabilisant le produit. Décidément, JavaScript est partout, même là où on le soupçonnait le moins. Un lecteur PDF utilisant des standards du web. Un lecteur PDF utilisant des standards du web PDF.js est un projet soutenu par la fondation Mozilla, dont l'objectif est d'afficher des PDF dans les navigateurs, sans utiliser de plugin ou de code natif (comme dans Chrome). Ce morceau de javascript, encore en court de développement utilisera la balise Canvas (HTML5), le support du SVG et du javascript pour générer un rendu à partir de n'importe quel fichier PDF.
Enfin un lecteur PDF utilisant des standards du web ! Les développeurs prévoient encore 3 mois de développement pour arriver à intégrer les fonctionnalités majeures du format PDF et comptent porter cette techno dans une extension Firefox. On voit souvent passer des failles dans le format PDF qui éclatent le plugin ou le navigateur. Si une démo vous intéresse, c'est par ici que ça se passe. Pour avoir plus d'info : [Source] Vous avez aimé cet article ? Pdf.js reached its first milestone < Chris Pitchin' Hey. Try out version 0.2. We’re very excited about the progress since the cat was let out of the bag two weeks ago. Below is a comparison of some pages as rendered by the version of pdf.js initially covered by the press and our v0.2 release. In each pair of screenshots, the rendering of the older version is on top, and the rendering of 0.2 is on the bottom. This is the most dramatic demonstration of pdf.js‘s biggest feature in 0.2: loading Type 1 fonts.
(In fact, the difference between the captures above should have been even more dramatic, except that we hard-coded into pdf.js selection of the font used for most body text in the paper, so that we could more easily focus on other unimplemented features.) Dynamically loading Type 1 fonts into a web application was a big challenge. Figure 2 on this page shows off several parts of pdf.js‘s renderer Figure 4 is another dramatic demonstration of the difference made by loading Type 1 fonts and measuring them accurately. Community What’s next? Ouvrir un PDF dans un onglet Firefox. Ouvrir un PDF dans un onglet Firefox S’il y a un truc que j'aime bien dans Chrome, c'est la possibilité d'ouvrir un PDF comme une page web. C'est à dire, directement dans un onglet sans devoir télécharger le PDF et lancer l'artillerie lourde, à savoir un lecteur de PDF. Mais depuis que je suis repassé sous Firefox, je n'ai plus cette possibilité.
Bon, je sais qu'il existe tout un tas de plugins qui doivent permettra ça, et c'est juste dommage que nativement, Firefox ne propose pas un lecteur de PDF intégré. Mais ce n'est une question de temps, car c'est apparemment prévu sur la roadmap. Mais le truc cool, c'est que pour en profiter, pas besoin d'attendre une prochaine release de Firefox. À télécharger ici [Source] Vous avez aimé cet article ? Mozilla/pdf.js @ GitHub.