]> git.parisson.com Git - pdf.js.git/log
pdf.js.git
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 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 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 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 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 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 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 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 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 agoUpdated the toolbar graphics.
Justin D'Arcangelo [Sun, 19 Jun 2011 00:11:56 +0000 (20:11 -0400)]
Updated the toolbar graphics.

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 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 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 agoIsInteger => IsInt
Andreas Gal [Sat, 18 Jun 2011 03:17:10 +0000 (20:17 -0700)]
IsInteger => IsInt

13 years agoeven more error checking for font translation
Andreas Gal [Fri, 17 Jun 2011 23:34:29 +0000 (16:34 -0700)]
even more error checking for font translation

13 years agoadd more error checking for font translation
Andreas Gal [Fri, 17 Jun 2011 23:29:48 +0000 (16:29 -0700)]
add more error checking for font translation

13 years agorename test.html to viewer.html
Andreas Gal [Fri, 17 Jun 2011 23:20:13 +0000 (16:20 -0700)]
rename test.html to viewer.html

13 years agomove cffStandardStrings into utils/ along with font_utils.js
Andreas Gal [Fri, 17 Jun 2011 23:07:09 +0000 (16:07 -0700)]
move cffStandardStrings into utils/ along with font_utils.js

13 years agoinline Encodings table into pdf.js and use getters for lazy construction
Andreas Gal [Fri, 17 Jun 2011 22:48:17 +0000 (15:48 -0700)]
inline Encodings table into pdf.js and use getters for lazy construction

13 years agoMerge pull request #18 from vingtetun/master
Chris Jones [Fri, 17 Jun 2011 19:07:28 +0000 (12:07 -0700)]
Merge pull request #18 from vingtetun/master

Do not assume charset is defined and move some fonts timing to the right place

13 years agoDo not assume charset is defined and move some fonts timing to the right place
Vivien Nicolas [Fri, 17 Jun 2011 18:29:34 +0000 (20:29 +0200)]
Do not assume charset is defined and move some fonts timing to the right place

13 years agoMerge pull request #16 from vingtetun/master
andreasgal [Fri, 17 Jun 2011 18:14:40 +0000 (11:14 -0700)]
Merge pull request #16 from vingtetun/master

Clean up some debug leftovers (mostly dump/logs/minor signature changes)

13 years agoreadXRefStream and PNG predictor 12
notmasteryet [Fri, 17 Jun 2011 12:37:14 +0000 (07:37 -0500)]
readXRefStream and PNG predictor 12

13 years agoClean up some debug leftovers
Vivien Nicolas [Fri, 17 Jun 2011 11:55:42 +0000 (13:55 +0200)]
Clean up some debug leftovers

13 years agorender at 1.5x scale
Chris Jones [Fri, 17 Jun 2011 08:19:59 +0000 (01:19 -0700)]
render at 1.5x scale

13 years ago2nd attempt to make glyph list integers
Andreas Gal [Fri, 17 Jun 2011 08:03:21 +0000 (01:03 -0700)]
2nd attempt to make glyph list integers

13 years agorevert commit 2311c954f8b74297725bda9e90e3eabf79862193
Andreas Gal [Fri, 17 Jun 2011 07:46:27 +0000 (00:46 -0700)]
revert commit 2311c954f8b74297725bda9e90e3eabf79862193

13 years agostore unicode value as integer instead of hex string in glyphlist
Andreas Gal [Fri, 17 Jun 2011 07:34:03 +0000 (00:34 -0700)]
store unicode value as integer instead of hex string in glyphlist

13 years agoMerge pull request #13 from vingtetun/master
Chris Jones [Fri, 17 Jun 2011 07:20:57 +0000 (00:20 -0700)]
Merge pull request #13 from vingtetun/master

Fonts!

13 years agoRename PDFFonts.js to fonts.js
Vivien Nicolas [Fri, 17 Jun 2011 07:11:03 +0000 (09:11 +0200)]
Rename PDFFonts.js to fonts.js

13 years agoMerge with master
Vivien Nicolas [Fri, 17 Jun 2011 07:06:19 +0000 (09:06 +0200)]
Merge with master

13 years agoadd blogs and twitter link
Andreas Gal [Thu, 16 Jun 2011 16:37:15 +0000 (00:37 +0800)]
add blogs and twitter link

13 years agoFix CIMM6/CIIM9
Vivien Nicolas [Fri, 17 Jun 2011 06:36:52 +0000 (08:36 +0200)]
Fix CIMM6/CIIM9

13 years agoDo not use stream when it is not necessary
Vivien Nicolas [Fri, 17 Jun 2011 05:48:45 +0000 (07:48 +0200)]
Do not use stream when it is not necessary

13 years agoUse a typed array in the CMAP construction function
Vivien Nicolas [Fri, 17 Jun 2011 05:14:11 +0000 (07:14 +0200)]
Use a typed array in the CMAP construction function

13 years agoAdd a direct translation to one of the way to format charstring number in flattenChar...
Vivien Nicolas [Fri, 17 Jun 2011 04:53:18 +0000 (06:53 +0200)]
Add a direct translation to one of the way to format charstring number in flattenCharstring (28, x, y)

13 years agoGet rid or IsNum/IsString/IsArray in flattenCharstring
Vivien Nicolas [Fri, 17 Jun 2011 04:44:16 +0000 (06:44 +0200)]
Get rid or IsNum/IsString/IsArray in flattenCharstring

13 years agoMerge pull request #14 from debloper/master
Chris Jones [Fri, 17 Jun 2011 04:12:33 +0000 (21:12 -0700)]
Merge pull request #14 from debloper/master

Test-page updated to allow the user open local PDFs

13 years agoRemove some leftovers from the previous patch
Vivien Nicolas [Fri, 17 Jun 2011 04:06:24 +0000 (06:06 +0200)]
Remove some leftovers from the previous patch

13 years agoRework some code to enhance performance (CIIM6/CIIM9 are rejected by the sanitizer...
Vivien Nicolas [Fri, 17 Jun 2011 04:02:29 +0000 (06:02 +0200)]
Rework some code to enhance performance (CIIM6/CIIM9 are rejected by the sanitizer now)

13 years agoadd blogs and twitter link
Andreas Gal [Thu, 16 Jun 2011 16:37:15 +0000 (09:37 -0700)]
add blogs and twitter link

13 years agoRemove some debug leftovers and add some comments about future directions for the...
Vivien Nicolas [Thu, 16 Jun 2011 07:34:43 +0000 (09:34 +0200)]
Remove some debug leftovers and add some comments about future directions for the code

13 years agoTest-page updated to allow the user open local PDFs
Soumya Deb [Thu, 16 Jun 2011 06:44:02 +0000 (12:14 +0530)]
Test-page updated to allow the user open local PDFs

13 years agoResolve the char->glyphs mapping issue
Vivien Nicolas [Thu, 16 Jun 2011 01:55:45 +0000 (03:55 +0200)]
Resolve the char->glyphs mapping issue

13 years agoMerge from gal's master branch (got a regression on the mapping between char->glyph)
Vivien Nicolas [Thu, 16 Jun 2011 01:05:55 +0000 (03:05 +0200)]
Merge from gal's master branch (got a regression on the mapping between char->glyph)

13 years agoChange the nominalWidth to not use the format 28,b0,b1 but b0-139 in order to pass...
Vivien Nicolas [Thu, 16 Jun 2011 00:17:45 +0000 (02:17 +0200)]
Change the nominalWidth to not use the format 28,b0,b1 but b0-139 in order to pass the sanitizer and disable TrueType support until it fully works

13 years agoUse spaces to compare font size to detect when the @font-face rule works, this seems...
Vivien Nicolas [Wed, 15 Jun 2011 23:30:47 +0000 (01:30 +0200)]
Use spaces to compare font size to detect when the @font-face rule works, this seems to be more accurate

13 years agoRemove some useless JS function calls
Vivien Nicolas [Wed, 15 Jun 2011 23:09:17 +0000 (01:09 +0200)]
Remove some useless JS function calls

13 years agoGet rid of the PostScript interpreter (part 1)
Vivien Nicolas [Wed, 15 Jun 2011 21:02:30 +0000 (23:02 +0200)]
Get rid of the PostScript interpreter (part 1)

13 years agoimplement setDash
Chris Jones [Wed, 15 Jun 2011 19:55:48 +0000 (12:55 -0700)]
implement setDash

13 years agoMerge branch 'master' of github.com:andreasgal/pdf.js
Chris Jones [Wed, 15 Jun 2011 19:42:48 +0000 (12:42 -0700)]
Merge branch 'master' of github.com:andreasgal/pdf.js

13 years agoMerge pull request #6 from sbarman/master
Chris Jones [Wed, 15 Jun 2011 19:41:40 +0000 (12:41 -0700)]
Merge pull request #6 from sbarman/master

type 2 shading

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

Conflicts:
pdf.js

13 years agoimplement some operators and add TODOs for remaining undefined ones
Chris Jones [Wed, 15 Jun 2011 19:24:44 +0000 (14:24 -0500)]
implement some operators and add TODOs for remaining undefined ones

13 years agocleaned up fetchIfRef, changed switch-case to array lookup, changed IsFunction to...
sbarman [Wed, 15 Jun 2011 18:34:47 +0000 (11:34 -0700)]
cleaned up fetchIfRef, changed switch-case to array lookup, changed IsFunction to IsPDFFunction

13 years agofixes suggested by @brendaneich
Andreas Gal [Wed, 15 Jun 2011 07:37:15 +0000 (00:37 -0700)]
fixes suggested by @brendaneich

13 years agoMake Type1 glyphs use the default width they declare
Vivien Nicolas [Wed, 15 Jun 2011 07:21:59 +0000 (09:21 +0200)]
Make Type1 glyphs use the default width they declare

13 years agomeasure load/compile/render times
Andreas Gal [Wed, 15 Jun 2011 07:20:26 +0000 (00:20 -0700)]
measure load/compile/render times

13 years agoclarify API a bit and hand in xref and resources to ease translation
Andreas Gal [Wed, 15 Jun 2011 06:44:59 +0000 (23:44 -0700)]
clarify API a bit and hand in xref and resources to ease translation

13 years agocompleted async font loading framework
Andreas Gal [Wed, 15 Jun 2011 06:41:26 +0000 (23:41 -0700)]
completed async font loading framework

13 years agoeagerly translate all fonts (a no-op currently)
Andreas Gal [Wed, 15 Jun 2011 06:34:11 +0000 (23:34 -0700)]
eagerly translate all fonts (a no-op currently)

13 years agopdf is using a dumb name, content makes much more sense than Contents
Andreas Gal [Wed, 15 Jun 2011 06:22:19 +0000 (23:22 -0700)]
pdf is using a dumb name, content makes much more sense than Contents

13 years agocache results of compilation
Andreas Gal [Wed, 15 Jun 2011 06:16:53 +0000 (23:16 -0700)]
cache results of compilation

13 years agoeagerly compile XForm objects
Andreas Gal [Wed, 15 Jun 2011 05:54:49 +0000 (22:54 -0700)]
eagerly compile XForm objects

13 years agoForgot to turn off some debug flags
Vivien Nicolas [Wed, 15 Jun 2011 03:42:15 +0000 (05:42 +0200)]
Forgot to turn off some debug flags

13 years agoAdd Encodings.js and change the code to generate a CharSet per font, this will allow...
Vivien Nicolas [Wed, 15 Jun 2011 03:40:54 +0000 (05:40 +0200)]
Add Encodings.js and change the code to generate a CharSet per font, this will allow future changes to the OpenType font generator

13 years agoreturn ready-to-run closure from compile that captures its objpool
Andreas Gal [Wed, 15 Jun 2011 03:36:45 +0000 (20:36 -0700)]
return ready-to-run closure from compile that captures its objpool

13 years agoAdd a basic support for TrueType (generate fonts with OS/2 table)
Vivien Nicolas [Wed, 15 Jun 2011 02:46:48 +0000 (04:46 +0200)]
Add a basic support for TrueType (generate fonts with OS/2 table)

13 years agocompile PDF command streams into JS code
Andreas Gal [Wed, 15 Jun 2011 01:31:14 +0000 (18:31 -0700)]
compile PDF command streams into JS code

13 years agoCleaned up code, renamed PDFFunction class
sbarman [Tue, 14 Jun 2011 20:49:50 +0000 (13:49 -0700)]
Cleaned up code, renamed PDFFunction class

13 years agoRemove direct access to the underlying map object of dict in the fonts builder
Vivien Nicolas [Tue, 14 Jun 2011 19:51:11 +0000 (21:51 +0200)]
Remove direct access to the underlying map object of dict in the fonts builder

13 years agoAdd XObjects fonts to the list of page fonts and has a forEach method to the Dict...
Vivien Nicolas [Tue, 14 Jun 2011 19:38:59 +0000 (21:38 +0200)]
Add XObjects fonts to the list of page fonts and has a forEach method to the Dict class

13 years agocleaned up code
sbarman [Tue, 14 Jun 2011 19:19:35 +0000 (12:19 -0700)]
cleaned up code

13 years agoImplemented type 2 shading for the pdf (aka gradients)
sbarman [Tue, 14 Jun 2011 18:55:27 +0000 (11:55 -0700)]
Implemented type 2 shading for the pdf (aka gradients)

13 years agoForgot to push function calls changes to get the unicode char from a random code
Vivien Nicolas [Tue, 14 Jun 2011 17:40:36 +0000 (19:40 +0200)]
Forgot to push function calls changes to get the unicode char from a random code

13 years agoAdd support for brackets around the header emails
Vivien Nicolas [Tue, 14 Jun 2011 09:59:10 +0000 (11:59 +0200)]
Add support for brackets around the header emails

13 years agoAdd support for ligatures, asterisks, etc.
Vivien Nicolas [Tue, 14 Jun 2011 09:08:08 +0000 (11:08 +0200)]
Add support for ligatures, asterisks, etc.

13 years agoFix an issue with the setTimeout method used for waiting for fonts to load
Vivien Nicolas [Tue, 14 Jun 2011 02:52:21 +0000 (04:52 +0200)]
Fix an issue with the setTimeout method used for waiting for fonts to load

13 years agoMake the fonts decoding code works with asynchronous data url
Vivien Nicolas [Tue, 14 Jun 2011 02:35:46 +0000 (04:35 +0200)]
Make the fonts decoding code works with asynchronous data url

13 years agoDo not use makeSubStream in the CFF constructor
Vivien Nicolas [Mon, 13 Jun 2011 21:23:13 +0000 (23:23 +0200)]
Do not use makeSubStream in the CFF constructor

13 years agoMerge to upstream
Vivien Nicolas [Mon, 13 Jun 2011 17:16:03 +0000 (19:16 +0200)]
Merge to upstream

13 years agoMerge the stream handling changes with the Font code
Vivien Nicolas [Mon, 13 Jun 2011 16:59:46 +0000 (18:59 +0200)]
Merge the stream handling changes with the Font code

13 years agoUndo last patch, it broke font rendering
Vivien Nicolas [Mon, 13 Jun 2011 05:06:51 +0000 (07:06 +0200)]
Undo last patch, it broke font rendering

13 years agostarting position of a stream is relative to the file, not the current stream
Andreas Gal [Thu, 2 Jun 2011 17:57:06 +0000 (01:57 +0800)]
starting position of a stream is relative to the file, not the current stream

13 years agouse const instead of var
Andreas Gal [Sat, 21 May 2011 05:40:28 +0000 (13:40 +0800)]
use const instead of var

13 years agoSmall changes
Vivien Nicolas [Mon, 13 Jun 2011 03:30:02 +0000 (05:30 +0200)]
Small changes

13 years agoClean up a bit the code to generate an OTF (again)
Vivien Nicolas [Mon, 13 Jun 2011 02:46:21 +0000 (04:46 +0200)]
Clean up a bit the code to generate an OTF (again)

13 years agoClean up a bit the code to generate an OTF
Vivien Nicolas [Mon, 13 Jun 2011 02:37:53 +0000 (04:37 +0200)]
Clean up a bit the code to generate an OTF

13 years agoClean up a bit the CMAP ranges creation loop
Vivien Nicolas [Mon, 13 Jun 2011 01:45:24 +0000 (03:45 +0200)]
Clean up a bit the CMAP ranges creation loop

13 years agoCMAP creation code is now more readable
Vivien Nicolas [Mon, 13 Jun 2011 01:35:56 +0000 (03:35 +0200)]
CMAP creation code is now more readable