]> git.parisson.com Git - pdf.js.git/log
pdf.js.git
13 years agowrite OTF header using a string, not an array
Andreas Gal [Sun, 19 Jun 2011 23:13:59 +0000 (16:13 -0700)]
write OTF header using a string, not an array

13 years agorename conver to convert
Andreas Gal [Sun, 19 Jun 2011 22:58:30 +0000 (15:58 -0700)]
rename conver to convert

13 years agorename conver to convert
Andreas Gal [Sun, 19 Jun 2011 22:58:30 +0000 (15:58 -0700)]
rename conver to convert

13 years agomake createOpenTypeHeader and createTableEntry inner functions of co(n)ver(t) so...
Andreas Gal [Sun, 19 Jun 2011 22:58:02 +0000 (15:58 -0700)]
make createOpenTypeHeader and createTableEntry inner functions of co(n)ver(t) so we can use an upvar to collect the output

13 years agomake createOpenTypeHeader and createTableEntry inner functions of co(n)ver(t) so...
Andreas Gal [Sun, 19 Jun 2011 22:58:02 +0000 (15:58 -0700)]
make createOpenTypeHeader and createTableEntry inner functions of co(n)ver(t) so we can use an upvar to collect the output

13 years agomake createOpenTypeHeader and createTableEntry inner functions
Andreas Gal [Sun, 19 Jun 2011 22:54:27 +0000 (15:54 -0700)]
make createOpenTypeHeader and createTableEntry inner functions

13 years agomake createOpenTypeHeader and createTableEntry inner functions
Andreas Gal [Sun, 19 Jun 2011 22:54:27 +0000 (15:54 -0700)]
make createOpenTypeHeader and createTableEntry inner functions

13 years agoadd a closure around Font so we can hide helper functions in it
Andreas Gal [Sun, 19 Jun 2011 22:46:58 +0000 (15:46 -0700)]
add a closure around Font so we can hide helper functions in it

13 years agoadd a closure around Font so we can hide helper functions in it
Andreas Gal [Sun, 19 Jun 2011 22:46:58 +0000 (15:46 -0700)]
add a closure around Font so we can hide helper functions in it

13 years agodon't use an array to translate from a typed array to a string, and always store...
Andreas Gal [Sun, 19 Jun 2011 22:30:55 +0000 (15:30 -0700)]
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

13 years agodon't use an array to translate from a typed array to a string, and always store...
Andreas Gal [Sun, 19 Jun 2011 22:30:55 +0000 (15:30 -0700)]
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

13 years agohandle surrogate pairs in glyph to unicode translation
Andreas Gal [Sun, 19 Jun 2011 22:14:07 +0000 (15:14 -0700)]
handle surrogate pairs in glyph to unicode translation

13 years agohandle surrogate pairs in glyph to unicode translation
Andreas Gal [Sun, 19 Jun 2011 22:14:07 +0000 (15:14 -0700)]
handle surrogate pairs in glyph to unicode translation

13 years agoFix the encoding problem for TrueType
Vivien Nicolas [Sun, 19 Jun 2011 22:09:50 +0000 (00:09 +0200)]
Fix the encoding problem for TrueType

13 years agoFix the encoding problem for TrueType
Vivien Nicolas [Sun, 19 Jun 2011 22:09:50 +0000 (00:09 +0200)]
Fix the encoding problem for TrueType

13 years agoMerge branch 'master' of github.com:andreasgal/pdf.js
Andreas Gal [Sun, 19 Jun 2011 20:20:00 +0000 (13:20 -0700)]
Merge branch 'master' of github.com:andreasgal/pdf.js

13 years agoMerge branch 'master' of github.com:andreasgal/pdf.js
Andreas Gal [Sun, 19 Jun 2011 20:20:00 +0000 (13:20 -0700)]
Merge branch 'master' of github.com:andreasgal/pdf.js

13 years agoMerge pull request #26 from justindarc/master
andreasgal [Sun, 19 Jun 2011 20:06:53 +0000 (13:06 -0700)]
Merge pull request #26 from justindarc/master

Updated zoom input

13 years agoMerge pull request #26 from justindarc/master
andreasgal [Sun, 19 Jun 2011 20:06:53 +0000 (13:06 -0700)]
Merge pull request #26 from justindarc/master

Updated zoom input

13 years agocleanup
sbarman [Sun, 19 Jun 2011 20:01:52 +0000 (15:01 -0500)]
cleanup

13 years agocleanup
sbarman [Sun, 19 Jun 2011 20:01:52 +0000 (15:01 -0500)]
cleanup

13 years agoMerge branch 'master' into tiling
sbarman [Sun, 19 Jun 2011 19:15:52 +0000 (12:15 -0700)]
Merge branch 'master' into tiling

13 years agoMerge branch 'master' into tiling
sbarman [Sun, 19 Jun 2011 19:15:52 +0000 (12:15 -0700)]
Merge branch 'master' into tiling

13 years agoMerge branch 'master' of github.com:andreasgal/pdf.js
sbarman [Sun, 19 Jun 2011 19:04:57 +0000 (12:04 -0700)]
Merge branch 'master' of github.com:andreasgal/pdf.js

13 years agoMerge branch 'master' of github.com:andreasgal/pdf.js
sbarman [Sun, 19 Jun 2011 19:04:57 +0000 (12:04 -0700)]
Merge branch 'master' of github.com:andreasgal/pdf.js

13 years agoMinor CSS fix for zoom drop down.
Justin D'Arcangelo [Sun, 19 Jun 2011 18:57:45 +0000 (14:57 -0400)]
Minor CSS fix for zoom drop down.

13 years agoMinor CSS fix for zoom drop down.
Justin D'Arcangelo [Sun, 19 Jun 2011 18:57:45 +0000 (14:57 -0400)]
Minor CSS fix for zoom drop down.

13 years agoChanged the zoom input to utilize a pre-populated combo box.
Justin D'Arcangelo [Sun, 19 Jun 2011 18:54:13 +0000 (14:54 -0400)]
Changed the zoom input to utilize a pre-populated combo box.

13 years agoChanged the zoom input to utilize a pre-populated combo box.
Justin D'Arcangelo [Sun, 19 Jun 2011 18:54:13 +0000 (14:54 -0400)]
Changed the zoom input to utilize a pre-populated combo box.

13 years agono need for new for typed array constructors
Andreas Gal [Sun, 19 Jun 2011 18:29:18 +0000 (11:29 -0700)]
no need for new for typed array constructors

13 years agono need for new for typed array constructors
Andreas Gal [Sun, 19 Jun 2011 18:29:18 +0000 (11:29 -0700)]
no need for new for typed array constructors

13 years agoReally pass the sanitizer (encoding is broken)
Vivien Nicolas [Sun, 19 Jun 2011 09:07:03 +0000 (11:07 +0200)]
Really pass the sanitizer (encoding is broken)

13 years agoReally pass the sanitizer (encoding is broken)
Vivien Nicolas [Sun, 19 Jun 2011 09:07:03 +0000 (11:07 +0200)]
Really pass the sanitizer (encoding is broken)

13 years agoMake Helvetica and Helvetica bold from page 2 to pass the sanitizer
Vivien Nicolas [Sun, 19 Jun 2011 07:29:28 +0000 (09:29 +0200)]
Make Helvetica and Helvetica bold from page 2 to pass the sanitizer

13 years agoMake Helvetica and Helvetica bold from page 2 to pass the sanitizer
Vivien Nicolas [Sun, 19 Jun 2011 07:29:28 +0000 (09:29 +0200)]
Make Helvetica and Helvetica bold from page 2 to pass the sanitizer

13 years agouse strict in the utils/ too
Chris Jones [Sun, 19 Jun 2011 06:21:30 +0000 (23:21 -0700)]
use strict in the utils/ too

13 years agouse strict in the utils/ too
Chris Jones [Sun, 19 Jun 2011 06:21:30 +0000 (23:21 -0700)]
use strict in the utils/ too

13 years agouse strict mode and fix violators
Chris Jones [Sun, 19 Jun 2011 06:18:46 +0000 (23:18 -0700)]
use strict mode and fix violators

13 years agouse strict mode and fix violators
Chris Jones [Sun, 19 Jun 2011 06:18:46 +0000 (23:18 -0700)]
use strict mode and fix violators

13 years agoMerge branch 'master' of github.com:andreasgal/pdf.js
Chris Jones [Sun, 19 Jun 2011 05:05:10 +0000 (22:05 -0700)]
Merge branch 'master' of github.com:andreasgal/pdf.js

13 years agoMerge branch 'master' of github.com:andreasgal/pdf.js
Chris Jones [Sun, 19 Jun 2011 05:05:10 +0000 (22:05 -0700)]
Merge branch 'master' of github.com:andreasgal/pdf.js

13 years agomozMeasureText() is non-standard and deprecated
Chris Jones [Sun, 19 Jun 2011 05:04:36 +0000 (22:04 -0700)]
mozMeasureText() is non-standard and deprecated

13 years agomozMeasureText() is non-standard and deprecated
Chris Jones [Sun, 19 Jun 2011 05:04:36 +0000 (22:04 -0700)]
mozMeasureText() is non-standard and deprecated

13 years agoMerge pull request #25 from notmasteryet/patch-2
andreasgal [Sun, 19 Jun 2011 05:03:00 +0000 (22:03 -0700)]
Merge pull request #25 from notmasteryet/patch-2

Add Yury to the contributors list

13 years agoMerge pull request #25 from notmasteryet/patch-2
andreasgal [Sun, 19 Jun 2011 05:03:00 +0000 (22:03 -0700)]
Merge pull request #25 from notmasteryet/patch-2

Add Yury to the contributors list

13 years agoAdd Yury to the contributors list
notmasteryet [Sun, 19 Jun 2011 04:49:31 +0000 (23:49 -0500)]
Add Yury to the contributors list

13 years agoAdd Yury to the contributors list
notmasteryet [Sun, 19 Jun 2011 04:49:31 +0000 (23:49 -0500)]
Add Yury to the contributors list

13 years agoMerge pull request #23 from notmasteryet/a2d7c18aee4d66cd37085bf2597808acfeaec8e9
andreasgal [Sun, 19 Jun 2011 04:38:10 +0000 (21:38 -0700)]
Merge pull request #23 from notmasteryet/a2d7c18aee4d66cd37085bf2597808acfeaec8e9

XRefStream implementation

13 years agoMerge pull request #23 from notmasteryet/a2d7c18aee4d66cd37085bf2597808acfeaec8e9
andreasgal [Sun, 19 Jun 2011 04:38:10 +0000 (21:38 -0700)]
Merge pull request #23 from notmasteryet/a2d7c18aee4d66cd37085bf2597808acfeaec8e9

XRefStream implementation

13 years agoCharSet is optional
Chris Jones [Sun, 19 Jun 2011 04:18:56 +0000 (21:18 -0700)]
CharSet is optional

13 years agoCharSet is optional
Chris Jones [Sun, 19 Jun 2011 04:18:56 +0000 (21:18 -0700)]
CharSet is optional

13 years agoadd Vivien to contributors list (list is in order of chronogically first push/pull...
Chris Jones [Sun, 19 Jun 2011 04:12:21 +0000 (21:12 -0700)]
add Vivien to contributors list (list is in order of chronogically first push/pull, nothing else)

13 years agoadd Vivien to contributors list (list is in order of chronogically first push/pull...
Chris Jones [Sun, 19 Jun 2011 04:12:21 +0000 (21:12 -0700)]
add Vivien to contributors list (list is in order of chronogically first push/pull, nothing else)

13 years agoMerge pull request #21 from justindarc/master
Chris Jones [Sun, 19 Jun 2011 04:06:03 +0000 (21:06 -0700)]
Merge pull request #21 from justindarc/master

Multi-page viewer

13 years agoMerge pull request #21 from justindarc/master
Chris Jones [Sun, 19 Jun 2011 04:06:03 +0000 (21:06 -0700)]
Merge pull request #21 from justindarc/master

Multi-page viewer

13 years agoRe-enable TrueType and add a TODO about translating the ToUnicode entry (note TrueTyp...
Vivien Nicolas [Sun, 19 Jun 2011 02:35:25 +0000 (04:35 +0200)]
Re-enable TrueType and add a TODO about translating the ToUnicode entry (note TrueType still fails on cmap)

13 years agoRe-enable TrueType and add a TODO about translating the ToUnicode entry (note TrueTyp...
Vivien Nicolas [Sun, 19 Jun 2011 02:35:25 +0000 (04:35 +0200)]
Re-enable TrueType and add a TODO about translating the ToUnicode entry (note TrueType still fails on cmap)

13 years agoInitial import of first test harness
Chris Jones [Sun, 19 Jun 2011 01:09:21 +0000 (18:09 -0700)]
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.

13 years agoInitial import of first test harness
Chris Jones [Sun, 19 Jun 2011 01:09:21 +0000 (18:09 -0700)]
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.

13 years agoAnother undeclared variable caught by strict mode
Vivien Nicolas [Sun, 19 Jun 2011 01:08:43 +0000 (03:08 +0200)]
Another undeclared variable caught by strict mode

13 years agoAnother undeclared variable caught by strict mode
Vivien Nicolas [Sun, 19 Jun 2011 01:08:43 +0000 (03:08 +0200)]
Another undeclared variable caught by strict mode

13 years agoAsk chromium to shut up on font/otf mimetype by using another wrong mimetype and...
Vivien Nicolas [Sun, 19 Jun 2011 01:04:15 +0000 (03:04 +0200)]
Ask chromium to shut up on font/otf mimetype by using another wrong mimetype and fix a few more 'strict mode' errrors

13 years agoAsk chromium to shut up on font/otf mimetype by using another wrong mimetype and...
Vivien Nicolas [Sun, 19 Jun 2011 01:04:15 +0000 (03:04 +0200)]
Ask chromium to shut up on font/otf mimetype by using another wrong mimetype and fix a few more 'strict mode' errrors

13 years agoAdding myself as a contributor
Vivien Nicolas [Sun, 19 Jun 2011 00:36:47 +0000 (02:36 +0200)]
Adding myself as a contributor

13 years agoAdding myself as a contributor
Vivien Nicolas [Sun, 19 Jun 2011 00:36:47 +0000 (02:36 +0200)]
Adding myself as a contributor

13 years agoUse strict mode for js files
Vivien Nicolas [Sun, 19 Jun 2011 00:35:28 +0000 (02:35 +0200)]
Use strict mode for js files

13 years agoUse strict mode for js files
Vivien Nicolas [Sun, 19 Jun 2011 00:35:28 +0000 (02:35 +0200)]
Use strict mode for js files

13 years agoFill informations for the 'name' table in order to pass the sanitizer (Mozilla bug...
Vivien Nicolas [Sun, 19 Jun 2011 00:25:21 +0000 (02:25 +0200)]
Fill informations for the 'name' table in order to pass the sanitizer (Mozilla bug 660088)

13 years agoFill informations for the 'name' table in order to pass the sanitizer (Mozilla bug...
Vivien Nicolas [Sun, 19 Jun 2011 00:25:21 +0000 (02:25 +0200)]
Fill informations for the 'name' table in order to pass the sanitizer (Mozilla bug 660088)

13 years agoMinor CSS fix.
Justin D'Arcangelo [Sun, 19 Jun 2011 00:15:49 +0000 (20:15 -0400)]
Minor CSS fix.

13 years agoMinor CSS fix.
Justin D'Arcangelo [Sun, 19 Jun 2011 00:15:49 +0000 (20:15 -0400)]
Minor CSS fix.

13 years agoRemoved .DS_Store files.
Justin D'Arcangelo [Sun, 19 Jun 2011 00:13:14 +0000 (20:13 -0400)]
Removed .DS_Store files.

13 years agoRemoved .DS_Store files.
Justin D'Arcangelo [Sun, 19 Jun 2011 00:13:14 +0000 (20:13 -0400)]
Removed .DS_Store files.

13 years agoUpdated the toolbar graphics.
Justin D'Arcangelo [Sun, 19 Jun 2011 00:11:56 +0000 (20:11 -0400)]
Updated the toolbar graphics.

13 years agoUpdated the toolbar graphics.
Justin D'Arcangelo [Sun, 19 Jun 2011 00:11:56 +0000 (20:11 -0400)]
Updated the toolbar graphics.

13 years agoMerge branch 'master' into tiling
sbarman [Sat, 18 Jun 2011 20:07:20 +0000 (13:07 -0700)]
Merge branch 'master' into tiling

13 years agoMerge branch 'master' into tiling
sbarman [Sat, 18 Jun 2011 20:07:20 +0000 (13:07 -0700)]
Merge branch 'master' into tiling

13 years agoFixed predictor
sbarman [Sat, 18 Jun 2011 20:06:54 +0000 (13:06 -0700)]
Fixed predictor

13 years agoFixed predictor
sbarman [Sat, 18 Jun 2011 20:06:54 +0000 (13:06 -0700)]
Fixed predictor

13 years agoUse measureText instead of mozMeasureText (deprecated)
Vivien Nicolas [Sat, 18 Jun 2011 19:54:53 +0000 (21:54 +0200)]
Use measureText instead of mozMeasureText (deprecated)

13 years agoUse measureText instead of mozMeasureText (deprecated)
Vivien Nicolas [Sat, 18 Jun 2011 19:54:53 +0000 (21:54 +0200)]
Use measureText instead of mozMeasureText (deprecated)

13 years agoMerge remote branch 'upstream/master'
Vivien Nicolas [Sat, 18 Jun 2011 19:53:52 +0000 (21:53 +0200)]
Merge remote branch 'upstream/master'

13 years agoMerge remote branch 'upstream/master'
Vivien Nicolas [Sat, 18 Jun 2011 19:53:52 +0000 (21:53 +0200)]
Merge remote branch 'upstream/master'

13 years agoMerge branch 'master' into predictor
sbarman [Sat, 18 Jun 2011 16:33:59 +0000 (09:33 -0700)]
Merge branch 'master' into predictor

13 years agoMerge branch 'master' into predictor
sbarman [Sat, 18 Jun 2011 16:33:59 +0000 (09:33 -0700)]
Merge branch 'master' into predictor

13 years agoEdited the contributors list in the LICENSE file.
Justin D'Arcangelo [Sat, 18 Jun 2011 10:11:21 +0000 (06:11 -0400)]
Edited the contributors list in the LICENSE file.

13 years agoEdited the contributors list in the LICENSE file.
Justin D'Arcangelo [Sat, 18 Jun 2011 10:11:21 +0000 (06:11 -0400)]
Edited the contributors list in the LICENSE file.

13 years agoAdded font loading in the multi-page viewer. Added support for changing the zoom...
Justin D'Arcangelo [Sat, 18 Jun 2011 09:52:24 +0000 (05:52 -0400)]
Added font loading in the multi-page viewer. Added support for changing the zoom/scale factor.

13 years agoAdded font loading in the multi-page viewer. Added support for changing the zoom...
Justin D'Arcangelo [Sat, 18 Jun 2011 09:52:24 +0000 (05:52 -0400)]
Added font loading in the multi-page viewer. Added support for changing the zoom/scale factor.

13 years agoAdded a new multi-page viewer that uses lazy loading to display pages in a scrolling...
Justin D'Arcangelo [Sat, 18 Jun 2011 08:33:13 +0000 (04:33 -0400)]
Added a new multi-page viewer that uses lazy loading to display pages in a scrolling manner.

13 years agoAdded a new multi-page viewer that uses lazy loading to display pages in a scrolling...
Justin D'Arcangelo [Sat, 18 Jun 2011 08:33:13 +0000 (04:33 -0400)]
Added a new multi-page viewer that uses lazy loading to display pages in a scrolling manner.

13 years agoremove toString code to avoid any future accidental implicit conversions
Andreas Gal [Sat, 18 Jun 2011 08:18:21 +0000 (01:18 -0700)]
remove toString code to avoid any future accidental implicit conversions

13 years agoremove toString code to avoid any future accidental implicit conversions
Andreas Gal [Sat, 18 Jun 2011 08:18:21 +0000 (01:18 -0700)]
remove toString code to avoid any future accidental implicit conversions

13 years agoavoid toString conversion in lookup
Andreas Gal [Sat, 18 Jun 2011 04:34:06 +0000 (21:34 -0700)]
avoid toString conversion in lookup

13 years agoavoid toString conversion in lookup
Andreas Gal [Sat, 18 Jun 2011 04:34:06 +0000 (21:34 -0700)]
avoid toString conversion in lookup

13 years agospeedup unicode/glyph conversion and cache translated strings in the font
Andreas Gal [Sat, 18 Jun 2011 04:22:37 +0000 (21:22 -0700)]
speedup unicode/glyph conversion and cache translated strings in the font

13 years agospeedup unicode/glyph conversion and cache translated strings in the font
Andreas Gal [Sat, 18 Jun 2011 04:22:37 +0000 (21:22 -0700)]
speedup unicode/glyph conversion and cache translated strings in the font

13 years agoIsInteger => IsInt
Andreas Gal [Sat, 18 Jun 2011 03:17:10 +0000 (20:17 -0700)]
IsInteger => IsInt

13 years agoIsInteger => IsInt
Andreas Gal [Sat, 18 Jun 2011 03:17:10 +0000 (20:17 -0700)]
IsInteger => IsInt

13 years agoMerge branch 'master' into streamrewrite2
sbarman [Sat, 18 Jun 2011 00:58:44 +0000 (17:58 -0700)]
Merge branch 'master' into streamrewrite2