Commit Graph

311 Commits

Author SHA1 Message Date
sbarman
9419a0d4b8 Used symbolic constants 2011-06-20 13:38:27 -07:00
sbarman
9d286d789e 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
8705c341d6 Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-19 12:04:57 -07:00
Chris Jones
8c802e5025 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
7f102a189e 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
andreasgal
3820e42689 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
andreasgal
d0d608b17f 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
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
3b36a5577b Merge pull request #21 from justindarc/master
Multi-page viewer
2011-06-18 21:06:03 -07: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
Justin D'Arcangelo
95a8a3dc2f Minor CSS fix. 2011-06-18 20:15:49 -04:00
Justin D'Arcangelo
dd0ed98789 Removed .DS_Store files. 2011-06-18 20:13:14 -04:00
Justin D'Arcangelo
9c04f4dbb6 Updated the toolbar graphics. 2011-06-18 20:11:56 -04:00
sbarman
57034abe4c Merge branch 'master' into tiling 2011-06-18 13:07:20 -07:00
Justin D'Arcangelo
2d85ae2422 Edited the contributors list in the LICENSE file. 2011-06-18 06:11:21 -04:00
Justin D'Arcangelo
87fef70bbf Added font loading in the multi-page viewer. Added support for changing the zoom/scale factor. 2011-06-18 05:52:24 -04:00
Justin D'Arcangelo
a9451a309f Added a new multi-page viewer that uses lazy loading to display pages in a scrolling manner. 2011-06-18 04:33:13 -04:00
Andreas Gal
e9980c1558 remove toString code to avoid any future accidental implicit conversions 2011-06-18 01:18:21 -07:00
Andreas Gal
6dc697071e avoid toString conversion in lookup 2011-06-17 21:34:06 -07:00
Andreas Gal
5517602df0 speedup unicode/glyph conversion and cache translated strings in the font 2011-06-17 21:22:37 -07:00
Andreas Gal
2588eb054b IsInteger => IsInt 2011-06-17 20:17:10 -07:00
sbarman
1fa41144c7 Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-17 17:58:24 -07:00
sbarman
74024df89a clean up tiling 2011-06-17 17:48:44 -07:00
sbarman
569e8c1d02 clean up tiling 2011-06-17 17:46:02 -07:00
sbarman
2179d64593 Merge branch 'master' into tiling 2011-06-17 17:38:29 -07:00
sbarman
4593fb3949 Cleaned up code for tiling 2011-06-17 17:35:56 -07:00
Andreas Gal
a4e1fba9ec even more error checking for font translation 2011-06-17 16:34:29 -07:00
Andreas Gal
050acaf5e0 add more error checking for font translation 2011-06-17 16:29:48 -07:00
Andreas Gal
22efbb3af3 rename test.html to viewer.html 2011-06-17 16:20:13 -07:00
Andreas Gal
735bfa5972 move cffStandardStrings into utils/ along with font_utils.js 2011-06-17 16:07:09 -07:00
Andreas Gal
1db4812c00 inline Encodings table into pdf.js and use getters for lazy construction 2011-06-17 15:48:17 -07:00
sbarman
70e6f493b1 Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-17 12:14:45 -07:00
Chris Jones
3309bc8ceb Merge pull request #18 from vingtetun/master
Do not assume charset is defined and move some fonts timing to the right place
2011-06-17 12:07:28 -07:00
Vivien Nicolas
4bd3308b78 Do not assume charset is defined and move some fonts timing to the right place 2011-06-17 20:29:34 +02:00
andreasgal
ecedfb52d5 Merge pull request #16 from vingtetun/master
Clean up some debug leftovers (mostly dump/logs/minor signature changes)
2011-06-17 11:14:40 -07:00
sbarman
4a5e1329c2 Merge branch 'master' into tiling 2011-06-17 09:00:04 -07:00
sbarman
6ad785b188 Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-17 08:33:14 -07:00
notmasteryet
a2d7c18aee readXRefStream and PNG predictor 12 2011-06-17 07:37:14 -05:00
Vivien Nicolas
172dadb008 Clean up some debug leftovers 2011-06-17 13:55:42 +02:00
Chris Jones
370303f005 render at 1.5x scale 2011-06-17 01:19:59 -07:00
Andreas Gal
fd269facbc 2nd attempt to make glyph list integers 2011-06-17 01:03:21 -07:00
Andreas Gal
4184414501 revert commit 2311c954f8 2011-06-17 00:46:27 -07:00
Andreas Gal
2311c954f8 store unicode value as integer instead of hex string in glyphlist 2011-06-17 00:34:03 -07:00
Chris Jones
00bde52237 Merge pull request #13 from vingtetun/master
Fonts!
2011-06-17 00:20:57 -07:00
Vivien Nicolas
6f91d109c6 Rename PDFFonts.js to fonts.js 2011-06-17 09:11:03 +02:00