]>
git.parisson.com Git - pdf.js.git/log
Chris Jones [Sun, 19 Jun 2011 05:04:36 +0000 (22:04 -0700)]
mozMeasureText() is non-standard and deprecated
andreasgal [Sun, 19 Jun 2011 04:38:10 +0000 (21:38 -0700)]
Merge pull request #23 from notmasteryet/
a2d7c18aee4d66cd37085bf2597808acfeaec8e9
XRefStream implementation
Chris Jones [Sun, 19 Jun 2011 04:18:56 +0000 (21:18 -0700)]
CharSet is optional
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)
Chris Jones [Sun, 19 Jun 2011 04:06:03 +0000 (21:06 -0700)]
Merge pull request #21 from justindarc/master
Multi-page viewer
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.
Justin D'Arcangelo [Sun, 19 Jun 2011 00:15:49 +0000 (20:15 -0400)]
Minor CSS fix.
Justin D'Arcangelo [Sun, 19 Jun 2011 00:13:14 +0000 (20:13 -0400)]
Removed .DS_Store files.
Justin D'Arcangelo [Sun, 19 Jun 2011 00:11:56 +0000 (20:11 -0400)]
Updated the toolbar graphics.
Justin D'Arcangelo [Sat, 18 Jun 2011 10:11:21 +0000 (06:11 -0400)]
Edited the contributors list in the LICENSE file.
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.
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.
Andreas Gal [Sat, 18 Jun 2011 08:18:21 +0000 (01:18 -0700)]
remove toString code to avoid any future accidental implicit conversions
Andreas Gal [Sat, 18 Jun 2011 04:34:06 +0000 (21:34 -0700)]
avoid toString conversion in lookup
Andreas Gal [Sat, 18 Jun 2011 04:22:37 +0000 (21:22 -0700)]
speedup unicode/glyph conversion and cache translated strings in the font
Andreas Gal [Sat, 18 Jun 2011 03:17:10 +0000 (20:17 -0700)]
IsInteger => IsInt
Andreas Gal [Fri, 17 Jun 2011 23:34:29 +0000 (16:34 -0700)]
even 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
Andreas Gal [Fri, 17 Jun 2011 23:20:13 +0000 (16:20 -0700)]
rename test.html to viewer.html
Andreas Gal [Fri, 17 Jun 2011 23:07:09 +0000 (16:07 -0700)]
move cffStandardStrings into utils/ along with font_utils.js
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
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
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
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)
notmasteryet [Fri, 17 Jun 2011 12:37:14 +0000 (07:37 -0500)]
readXRefStream and PNG predictor 12
Vivien Nicolas [Fri, 17 Jun 2011 11:55:42 +0000 (13:55 +0200)]
Clean up some debug leftovers
Chris Jones [Fri, 17 Jun 2011 08:19:59 +0000 (01:19 -0700)]
render at 1.5x scale
Andreas Gal [Fri, 17 Jun 2011 08:03:21 +0000 (01:03 -0700)]
2nd attempt to make glyph list integers
Andreas Gal [Fri, 17 Jun 2011 07:46:27 +0000 (00:46 -0700)]
Andreas Gal [Fri, 17 Jun 2011 07:34:03 +0000 (00:34 -0700)]
store unicode value as integer instead of hex string in glyphlist
Chris Jones [Fri, 17 Jun 2011 07:20:57 +0000 (00:20 -0700)]
Merge pull request #13 from vingtetun/master
Fonts!
Vivien Nicolas [Fri, 17 Jun 2011 07:11:03 +0000 (09:11 +0200)]
Rename PDFFonts.js to fonts.js
Vivien Nicolas [Fri, 17 Jun 2011 07:06:19 +0000 (09:06 +0200)]
Merge with master
Andreas Gal [Thu, 16 Jun 2011 16:37:15 +0000 (00:37 +0800)]
add blogs and twitter link
Vivien Nicolas [Fri, 17 Jun 2011 06:36:52 +0000 (08:36 +0200)]
Fix CIMM6/CIIM9
Vivien Nicolas [Fri, 17 Jun 2011 05:48:45 +0000 (07:48 +0200)]
Do not use stream when it is not necessary
Vivien Nicolas [Fri, 17 Jun 2011 05:14:11 +0000 (07:14 +0200)]
Use a typed array in the CMAP construction function
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)
Vivien Nicolas [Fri, 17 Jun 2011 04:44:16 +0000 (06:44 +0200)]
Get rid or IsNum/IsString/IsArray in flattenCharstring
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
Vivien Nicolas [Fri, 17 Jun 2011 04:06:24 +0000 (06:06 +0200)]
Remove some leftovers from the previous patch
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)
Andreas Gal [Thu, 16 Jun 2011 16:37:15 +0000 (09:37 -0700)]
add blogs and twitter link
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
Soumya Deb [Thu, 16 Jun 2011 06:44:02 +0000 (12:14 +0530)]
Test-page updated to allow the user open local PDFs
Vivien Nicolas [Thu, 16 Jun 2011 01:55:45 +0000 (03:55 +0200)]
Resolve the char->glyphs mapping issue
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)
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
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
Vivien Nicolas [Wed, 15 Jun 2011 23:09:17 +0000 (01:09 +0200)]
Remove some useless JS function calls
Vivien Nicolas [Wed, 15 Jun 2011 21:02:30 +0000 (23:02 +0200)]
Get rid of the PostScript interpreter (part 1)
Chris Jones [Wed, 15 Jun 2011 19:55:48 +0000 (12:55 -0700)]
implement setDash
Chris Jones [Wed, 15 Jun 2011 19:42:48 +0000 (12:42 -0700)]
Merge branch 'master' of github.com:andreasgal/pdf.js
Chris Jones [Wed, 15 Jun 2011 19:41:40 +0000 (12:41 -0700)]
Merge pull request #6 from sbarman/master
type 2 shading
sbarman [Wed, 15 Jun 2011 19:37:05 +0000 (12:37 -0700)]
Merge branch 'master' of github.com:andreasgal/pdf.js
Conflicts:
pdf.js
Chris Jones [Wed, 15 Jun 2011 19:24:44 +0000 (14:24 -0500)]
implement some operators and add TODOs for remaining undefined ones
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
Andreas Gal [Wed, 15 Jun 2011 07:37:15 +0000 (00:37 -0700)]
fixes suggested by @brendaneich
Vivien Nicolas [Wed, 15 Jun 2011 07:21:59 +0000 (09:21 +0200)]
Make Type1 glyphs use the default width they declare
Andreas Gal [Wed, 15 Jun 2011 07:20:26 +0000 (00:20 -0700)]
measure load/compile/render times
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
Andreas Gal [Wed, 15 Jun 2011 06:41:26 +0000 (23:41 -0700)]
completed async font loading framework
Andreas Gal [Wed, 15 Jun 2011 06:34:11 +0000 (23:34 -0700)]
eagerly translate all fonts (a no-op currently)
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
Andreas Gal [Wed, 15 Jun 2011 06:16:53 +0000 (23:16 -0700)]
cache results of compilation
Andreas Gal [Wed, 15 Jun 2011 05:54:49 +0000 (22:54 -0700)]
eagerly compile XForm objects
Vivien Nicolas [Wed, 15 Jun 2011 03:42:15 +0000 (05:42 +0200)]
Forgot to turn off some debug flags
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
Andreas Gal [Wed, 15 Jun 2011 03:36:45 +0000 (20:36 -0700)]
return ready-to-run closure from compile that captures its objpool
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)
Andreas Gal [Wed, 15 Jun 2011 01:31:14 +0000 (18:31 -0700)]
compile PDF command streams into JS code
sbarman [Tue, 14 Jun 2011 20:49:50 +0000 (13:49 -0700)]
Cleaned up code, renamed PDFFunction class
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
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
sbarman [Tue, 14 Jun 2011 19:19:35 +0000 (12:19 -0700)]
cleaned up code
sbarman [Tue, 14 Jun 2011 18:55:27 +0000 (11:55 -0700)]
Implemented type 2 shading for the pdf (aka gradients)
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
Vivien Nicolas [Tue, 14 Jun 2011 09:59:10 +0000 (11:59 +0200)]
Add support for brackets around the header emails
Vivien Nicolas [Tue, 14 Jun 2011 09:08:08 +0000 (11:08 +0200)]
Add support for ligatures, asterisks, etc.
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
Vivien Nicolas [Tue, 14 Jun 2011 02:35:46 +0000 (04:35 +0200)]
Make the fonts decoding code works with asynchronous data url
Vivien Nicolas [Mon, 13 Jun 2011 21:23:13 +0000 (23:23 +0200)]
Do not use makeSubStream in the CFF constructor
Vivien Nicolas [Mon, 13 Jun 2011 17:16:03 +0000 (19:16 +0200)]
Merge to upstream
Vivien Nicolas [Mon, 13 Jun 2011 16:59:46 +0000 (18:59 +0200)]
Merge the stream handling changes with the Font code
Vivien Nicolas [Mon, 13 Jun 2011 05:06:51 +0000 (07:06 +0200)]
Undo last patch, it broke font rendering
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
Andreas Gal [Sat, 21 May 2011 05:40:28 +0000 (13:40 +0800)]
use const instead of var
Vivien Nicolas [Mon, 13 Jun 2011 03:30:02 +0000 (05:30 +0200)]
Small changes
Vivien Nicolas [Mon, 13 Jun 2011 02:46:21 +0000 (04:46 +0200)]
Clean up a bit the code to generate an OTF (again)
Vivien Nicolas [Mon, 13 Jun 2011 02:37:53 +0000 (04:37 +0200)]
Clean up a bit the code to generate an OTF
Vivien Nicolas [Mon, 13 Jun 2011 01:45:24 +0000 (03:45 +0200)]
Clean up a bit the CMAP ranges creation loop
Vivien Nicolas [Mon, 13 Jun 2011 01:35:56 +0000 (03:35 +0200)]
CMAP creation code is now more readable
Vivien Nicolas [Mon, 13 Jun 2011 00:30:16 +0000 (02:30 +0200)]
Beginning of the separatation of the Type1/CFF/OTF code
Vivien Nicolas [Sun, 12 Jun 2011 23:38:05 +0000 (01:38 +0200)]
Add a root 'Font' class as the outside world API
Vivien Nicolas [Sun, 12 Jun 2011 21:41:57 +0000 (23:41 +0200)]
Add some missing glyphs
Vivien Nicolas [Sun, 12 Jun 2011 19:53:39 +0000 (21:53 +0200)]
OTF fonts works with the sanitizer (woot)
Vivien Nicolas [Sun, 12 Jun 2011 12:23:39 +0000 (14:23 +0200)]
Add some code to make (the first one only...) font pass the sanitizer check
Andreas Gal [Sun, 12 Jun 2011 06:49:17 +0000 (23:49 -0700)]
remove debug code
Vivien Nicolas [Sun, 12 Jun 2011 03:19:43 +0000 (05:19 +0200)]
Remove the Type2 validation data from the tree
Vivien Nicolas [Sun, 12 Jun 2011 01:10:54 +0000 (03:10 +0200)]
Turn on TrueType decoder even if the sanitizer prevent them to load at the moment