~/talk

PDF.js

Talkat JSConf EU 2011 · 2011-10-01..10-02· [web-platform, javascript]
slides:none on file

A full PDF renderer in JavaScript proves possible: a project with ~15 contributors parses PDFs via XHR (range requests supported), records drawing commands, waits for fonts/images, and paints to canvas with lazy rendering. Native JPEG decode in JS is 10–100x slower, so browser image decoding plus base64 wrapper is used. Type1 fonts undergo type one→type two conversion and embedding via CSS; type‑3 glyphs render slowly. Performance wins come from profiling, inlining, typed arrays and a 50× font‑measure hack; rendering mostly works with some artifacts and printing/selection gaps.

AI-written summary · about

  1. 0:00Introduction
  2. 0:40Agenda
  3. 1:47Why PDF
  4. 3:59Video processing
  5. 5:23PDF file
  6. 6:39Intermediate presentation
  7. 7:53Images
  8. 9:11Fonts
  9. 11:38Measurements
  10. 16:24JPEG
  11. 19:08Strings
  12. 20:11Arrays
  13. 20:56Emulation
  14. 21:16Profilers
  15. 23:00Dont pause
  16. 24:29More fun than printing
  17. 24:52Demo
  18. 25:18Preview
  19. 25:37Demo PDF to JS
  20. 29:49Browser performance
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.