Andreas Gal
e97f74f6e3
simplify glyph segment writing code
2011-06-20 04:16:41 -04:00
Andreas Gal
5f75130fbf
store ranges as [start, end], instead of storing all codes
2011-06-20 03:49:40 -04:00
Andreas Gal
52e1631030
use Array.sort to calculate glyph ranges instead of large typed arrays
2011-06-20 03:33:52 -04:00
Andreas Gal
fc4ca2a9dd
style fixes, we should post some sensible style guide
2011-06-20 01:20:05 -04:00
andreasgal
198a1ffcc3
Merge pull request #27 from notmasteryet/objstm
...
Ability to fetch ObjStm objects; multi-item page content
2011-06-19 22:14:44 -07:00
notmasteryet
c2ce7fa7b2
Ability to fetch ObjStm objects; fix DEFLATE stream double-eof-call issue; multi-item page content
2011-06-19 18:55:02 -05:00
Andreas Gal
4fc8a1fa75
make createCMAPTable a nested function function
2011-06-19 16:35:32 -07:00
Andreas Gal
a118f9035a
in preparation for using strings to write out font data, store constant blobs as strings
2011-06-19 16:32:26 -07:00
Andreas Gal
c09ee48094
write OTF header using a string, not an array
2011-06-19 16:13:59 -07:00
Andreas Gal
bb40d20eae
rename conver to convert
2011-06-19 15:58:30 -07:00
Andreas Gal
1a51057417
make createOpenTypeHeader and createTableEntry inner functions of co(n)ver(t) so we can use an upvar to collect the output
2011-06-19 15:58:02 -07:00
Andreas Gal
886054080e
make createOpenTypeHeader and createTableEntry inner functions
2011-06-19 15:54:27 -07:00
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
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
5afd963c8a
handle surrogate pairs in glyph to unicode translation
2011-06-19 15:14:07 -07:00
Andreas Gal
43ec6a9c8a
Merge branch 'master' of github.com:andreasgal/pdf.js
2011-06-19 13:20:00 -07:00
andreasgal
8edc61bd2f
Merge pull request #26 from justindarc/master
...
Updated zoom input
2011-06-19 13:06:53 -07:00
Justin D'Arcangelo
a3781157cf
Minor CSS fix for zoom drop down.
2011-06-19 14:57:45 -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
89a1f3ea17
no need for new for typed array constructors
2011-06-19 11:29:18 -07:00
Chris Jones
9477df21ce
use strict in the utils/ too
2011-06-18 23:21:30 -07:00
Chris Jones
23e19c08b1
use strict mode and fix violators
2011-06-18 23:18:46 -07:00
Chris Jones
1b495b7327
Merge branch 'master' of github.com:andreasgal/pdf.js
2011-06-18 22:05:10 -07:00
Chris Jones
4c018956f2
mozMeasureText() is non-standard and deprecated
2011-06-18 22:04:36 -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
c3a7bc7d79
Add Yury to the contributors list
2011-06-18 23:49:31 -05:00
andreasgal
6790449f7b
Merge pull request #23 from notmasteryet/a2d7c18aee4d66cd37085bf2597808acfeaec8e9
...
XRefStream implementation
2011-06-18 21:38:10 -07:00
Chris Jones
1be8c5e7ed
CharSet is optional
2011-06-18 21:18:56 -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
8bf1792b8a
Merge pull request #21 from justindarc/master
...
Multi-page viewer
2011-06-18 21:06:03 -07:00
Chris Jones
7c024b89aa
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
1fde6b88e7
Minor CSS fix.
2011-06-18 20:15:49 -04:00
Justin D'Arcangelo
6ced547a5f
Removed .DS_Store files.
2011-06-18 20:13:14 -04:00
Justin D'Arcangelo
17574e2d1c
Updated the toolbar graphics.
2011-06-18 20:11:56 -04:00
Justin D'Arcangelo
616b4a5182
Edited the contributors list in the LICENSE file.
2011-06-18 06:11:21 -04:00
Justin D'Arcangelo
5e3e567689
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
c828fdd2ca
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
c04da11be6
remove toString code to avoid any future accidental implicit conversions
2011-06-18 01:18:21 -07:00
Andreas Gal
494227dfcc
avoid toString conversion in lookup
2011-06-17 21:34:06 -07:00
Andreas Gal
d2e18d35b5
speedup unicode/glyph conversion and cache translated strings in the font
2011-06-17 21:22:37 -07:00
Andreas Gal
dea351911a
IsInteger => IsInt
2011-06-17 20:17:10 -07:00
Andreas Gal
120a4a3f38
even more error checking for font translation
2011-06-17 16:34:29 -07:00
Andreas Gal
49c4196ec0
add more error checking for font translation
2011-06-17 16:29:48 -07:00
Andreas Gal
3f5974da32
rename test.html to viewer.html
2011-06-17 16:20:13 -07:00
Andreas Gal
47a8303512
move cffStandardStrings into utils/ along with font_utils.js
2011-06-17 16:07:09 -07:00
Andreas Gal
9e178e88c8
inline Encodings table into pdf.js and use getters for lazy construction
2011-06-17 15:48:17 -07:00
Chris Jones
b7d332a682
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
e475d03675
Do not assume charset is defined and move some fonts timing to the right place
2011-06-17 20:29:34 +02:00
andreasgal
75d6cb27ce
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
notmasteryet
0e5f74b6c2
readXRefStream and PNG predictor 12
2011-06-17 07:37:14 -05:00