Commit Graph

5028 Commits

Author SHA1 Message Date
Andreas Gal
f6e85f00cb add a closure around Font so we can hide helper functions in it 2011-06-19 15:46:58 -07:00
Andreas Gal
5001ee7120 don't use an array to translate from a typed array to a string, and always store font data as typed array, never as a stream 2011-06-19 15:30:55 -07:00
Andreas Gal
7bb098dfc7 don't use an array to translate from a typed array to a string, and always store font data as typed array, never as a stream 2011-06-19 15:30:55 -07:00
Andreas Gal
d515d5ab7c handle surrogate pairs in glyph to unicode translation 2011-06-19 15:14:07 -07:00
Andreas Gal
5afd963c8a handle surrogate pairs in glyph to unicode translation 2011-06-19 15:14:07 -07:00
Vivien Nicolas
b3b0322446 Fix the encoding problem for TrueType 2011-06-20 00:09:50 +02:00
Vivien Nicolas
30460ce4b2 Fix the encoding problem for TrueType 2011-06-20 00:09:50 +02:00
Andreas Gal
010475176f Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-19 13:20:00 -07:00
Andreas Gal
43ec6a9c8a Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-19 13:20:00 -07:00
andreasgal
90bfd4aa2e Merge pull request #26 from justindarc/master
Updated zoom input
2011-06-19 13:06:53 -07:00
andreasgal
8edc61bd2f Merge pull request #26 from justindarc/master
Updated zoom input
2011-06-19 13:06:53 -07:00
sbarman
9d286d789e cleanup 2011-06-19 15:01:52 -05:00
sbarman
e9a9de8a1b cleanup 2011-06-19 15:01:52 -05:00
sbarman
07b6ee2d03 Merge branch 'master' into tiling 2011-06-19 12:15:52 -07:00
sbarman
e4bffad60c Merge branch 'master' into tiling 2011-06-19 12:15:52 -07:00
sbarman
8705c341d6 Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-19 12:04:57 -07:00
sbarman
8afd1a65ff Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-19 12:04:57 -07:00
Justin D'Arcangelo
50f3dd72a1 Minor CSS fix for zoom drop down. 2011-06-19 14:57:45 -04:00
Justin D'Arcangelo
a3781157cf Minor CSS fix for zoom drop down. 2011-06-19 14:57:45 -04:00
Justin D'Arcangelo
8935715d96 Changed the zoom input to utilize a pre-populated combo box. 2011-06-19 14:54:13 -04:00
Justin D'Arcangelo
cf0e22ffaf Changed the zoom input to utilize a pre-populated combo box. 2011-06-19 14:54:13 -04:00
Andreas Gal
b6d4de3de0 no need for new for typed array constructors 2011-06-19 11:29:18 -07:00
Andreas Gal
89a1f3ea17 no need for new for typed array constructors 2011-06-19 11:29:18 -07:00
Vivien Nicolas
bf835f7aa5 Really pass the sanitizer (encoding is broken) 2011-06-19 11:07:03 +02:00
Vivien Nicolas
ca61249db1 Really pass the sanitizer (encoding is broken) 2011-06-19 11:07:03 +02:00
Vivien Nicolas
8a24a967c3 Make Helvetica and Helvetica bold from page 2 to pass the sanitizer 2011-06-19 09:29:28 +02:00
Vivien Nicolas
c1fc38725a Make Helvetica and Helvetica bold from page 2 to pass the sanitizer 2011-06-19 09:29:28 +02:00
Chris Jones
8c802e5025 use strict in the utils/ too 2011-06-18 23:21:30 -07:00
Chris Jones
9477df21ce use strict in the utils/ too 2011-06-18 23:21:30 -07:00
Chris Jones
92fa629d10 use strict mode and fix violators 2011-06-18 23:18:46 -07:00
Chris Jones
23e19c08b1 use strict mode and fix violators 2011-06-18 23:18:46 -07:00
Chris Jones
7f102a189e Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-18 22:05:10 -07:00
Chris Jones
1b495b7327 Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-18 22:05:10 -07:00
Chris Jones
d4a42a4e79 mozMeasureText() is non-standard and deprecated 2011-06-18 22:04:36 -07:00
Chris Jones
4c018956f2 mozMeasureText() is non-standard and deprecated 2011-06-18 22:04:36 -07:00
andreasgal
3820e42689 Merge pull request #25 from notmasteryet/patch-2
Add Yury to the contributors list
2011-06-18 22:03:00 -07:00
andreasgal
e2843a5ab0 Merge pull request #25 from notmasteryet/patch-2
Add Yury to the contributors list
2011-06-18 22:03:00 -07:00
notmasteryet
26fc2f17b1 Add Yury to the contributors list 2011-06-18 23:49:31 -05:00
notmasteryet
c3a7bc7d79 Add Yury to the contributors list 2011-06-18 23:49:31 -05:00
andreasgal
d0d608b17f Merge pull request #23 from notmasteryet/a2d7c18aee4d66cd37085bf2597808acfeaec8e9
XRefStream implementation
2011-06-18 21:38:10 -07:00
andreasgal
6790449f7b Merge pull request #23 from notmasteryet/a2d7c18aee4d66cd37085bf2597808acfeaec8e9
XRefStream implementation
2011-06-18 21:38:10 -07:00
Chris Jones
fcbf6e61ce CharSet is optional 2011-06-18 21:18:56 -07:00
Chris Jones
1be8c5e7ed CharSet is optional 2011-06-18 21:18:56 -07:00
Chris Jones
8fcd7c6635 add Vivien to contributors list (list is in order of chronogically first push/pull, nothing else) 2011-06-18 21:12:21 -07:00
Chris Jones
17cbc72e19 add Vivien to contributors list (list is in order of chronogically first push/pull, nothing else) 2011-06-18 21:12:21 -07:00
Chris Jones
3b36a5577b Merge pull request #21 from justindarc/master
Multi-page viewer
2011-06-18 21:06:03 -07:00
Chris Jones
8bf1792b8a Merge pull request #21 from justindarc/master
Multi-page viewer
2011-06-18 21:06:03 -07:00
Vivien Nicolas
7e3c1340ff Re-enable TrueType and add a TODO about translating the ToUnicode entry (note TrueType still fails on cmap) 2011-06-19 04:35:25 +02:00
Vivien Nicolas
b0cde50e21 Re-enable TrueType and add a TODO about translating the ToUnicode entry (note TrueType still fails on cmap) 2011-06-19 04:35:25 +02:00
Chris Jones
f7aa149778 Initial import of first test harness
The harness (test.py) operates as follows.  First it locates executable browsers
(or symlinks or scripts) named "[browser][version]", e.g. "firefox4".
It then launches the located browsers and asks them to load the file
test_slave.html.  At the same time, test.py sets up an HTTP server on
localhost:8080 (there's a race condition here currently ;).  After
test_slave loads in the browser(s), it fetches the task manifest
(test_manifest.json).  The entries in the manifest specify which PDF
to load and how many times to cycle through page rendering.  This will
probably evolve over time.  test_slave then performs the requested
tasks and POSTs the results back to test.py, which saves them.  When
all the results of for a task are in, test.py checks them.

There are three types of tests currently.  "==" tests compare the
rendering of a PDF against a master copy.  This is not yet implemented
because setting up a master copy is complicated.  "fbf" tests render
all a PDF's pages, then go back to page 1 and render all pages a
second time.  The renderings from the first round must match the ones
from the second round.  "load" tests just check that a PDF's pages
load without errors.

Currently the test harness will only launch a "firefox4" target.  This
can be a bash script in your pdf.js checkout, pdf.js/firefox4,
something like the following

 #!/bin/bash
 dist="/path/to/firefox4/installation"
 profile=`mktemp -dt 'pdf.js-test-ff-profile-XXXXXXXXXX'`
 $dist/firefox -no-remote -profile $profile $*
 rm -rf $profile

(Yes, this script doesn't clean up properly on early termination.)
It's possible to run the tests in a normal browsing session, but that
might be annoying.  With that set up, run the harness like so

 python test.py

If all goes well, you'll see all "TEST-PASS" messages printed to
stdout.  If something goes wrong, you'll see "TEST-UNEXPECTED-FAIL"
printed to stdout.
2011-06-18 18:09:21 -07:00