Commit Graph

568 Commits

Author SHA1 Message Date
Justin D'Arcangelo
791947ff74 Refactored the multi-page viewer to adhere to the coding style guidelines. 2011-06-23 20:50:01 -04:00
Vivien Nicolas
014fc4c0fe Remove code to handle FlateStream differently now that we have a sane interface 2011-06-24 02:45:58 +02:00
Chris Jones
ae2e637044 TODO for bpc!=8 2011-06-23 17:09:42 -07:00
Vivien Nicolas
69449f7346 Merge branch 'master' of https://github.com/vingtetun/pdf.js 2011-06-24 01:39:55 +02:00
Vivien Nicolas
df406d43a1 Remove some useless var 2011-06-24 01:37:54 +02:00
Chris Jones
0bd6e5e064 Merge pull request #65 from sayrer/master
Let the browser quit, add automation into harness rather than rely on shell scripts
2011-06-23 16:18:05 -07:00
Vivien Nicolas
c822a9d614 Merge remote branch 'upstream/master' 2011-06-24 01:01:35 +02:00
Rob Sayre
ebb75998a2 only supply a -foreground argument on Mac. 2011-06-23 15:47:25 -07:00
Chris Jones
d97f9086bd fix rendering of some symbols. Patch by Vivien Nicolas. 2011-06-23 15:36:53 -07:00
Vivien Nicolas
a4bb3cba5b Merge remote branch 'upstream/master' 2011-06-24 00:29:32 +02:00
Chris Jones
a85c31b2c0 Merge pull request #45 from jviereck/master
WebWorker support
2011-06-23 15:21:10 -07:00
Rob Sayre
f212637433 Remove invalid trailing commas. 2011-06-23 15:09:17 -07:00
Julian Viereck
8cd986f15a Small rebase tidyup + cleanup 2011-06-23 23:55:14 +02:00
Vivien Nicolas
e953f2363c Merge remote branch 'upstream/master' 2011-06-23 23:42:01 +02:00
Julian Viereck
d1b75dd633 Replace tic & toc by console.time/timeEnd 2011-06-23 23:33:25 +02:00
Julian Viereck
3bef1534b4 Reverts parts of 60f4d16360: Use old font-is-loaded mechanism + some code refactoring to add bindDOM and bindWorker. 2011-06-23 23:33:25 +02:00
Julian Viereck
d6239571e9 Clear the main canvas right before the next rendering begins. Keeps the canvas from beeing blank for a few ms 2011-06-23 23:33:25 +02:00
Julian Viereck
4b27045d2e Ensure divs used to make fonts load are not visible 2011-06-23 23:33:25 +02:00
Julian Viereck
f256716022 Fix WebWorker logging and add separate timing for fonts. 2011-06-23 23:33:25 +02:00
Julian Viereck
f32dfa9414 Fix sending image data to main thread 2011-06-23 23:33:24 +02:00
Julian Viereck
da7f555fd7 Change postMessage to send only one object that holds the action and data. 2011-06-23 23:33:24 +02:00
Julian Viereck
a3d815074d First pass on review: worker.js -> pdf_worker.js, Font.bind cleanup + other stuff 2011-06-23 23:33:24 +02:00
Julian Viereck
4281f799e5 Move client code into worker_client.js. Cleanup + comments + 2-space-indention 2011-06-23 23:33:24 +02:00
Julian Viereck
08405fa618 Fix putImageData. Needs to be copied byte by byte. 2011-06-23 23:33:24 +02:00
Julian Viereck
0746c7db59 Add PatternProxy; makes page 13 work 2011-06-23 23:33:24 +02:00
Julian Viereck
22bdd50a98 Merge ImageCanvasProxy and CanvasProxy. Add support for rendering multiple canvas objects on the worker and assemble them again on the main thread. 2011-06-23 23:33:24 +02:00
Julian Viereck
000d640258 Replace ImageCanvas by ScratchCanvas 2011-06-23 23:33:23 +02:00
Julian Viereck
50d902d9eb Make the ProxyCanvas be more a canvas - provide a ctx object to interact through 2011-06-23 23:33:23 +02:00
Julian Viereck
fe7c8b52f6 Add very simple GradientProxy support - makes page 11 render. 2011-06-23 23:33:23 +02:00
Julian Viereck
2c17af3720 Add JpegStreamProxy - doesnt seem to be used anywhere in the example.pdf file 2011-06-23 23:33:23 +02:00
Julian Viereck
e2cd5facbd Fix font loading issue by using a hidden DOM font node 2011-06-23 23:33:23 +02:00
Julian Viereck
52a117d32a Fixing some smaller bugs & do some cleanup. viewer_worker.html UI is now 2011-06-23 23:33:23 +02:00
Julian Viereck
39ac389a7e Get working for not real images 2011-06-23 23:33:22 +02:00
Julian Viereck
fc007b99d0 Introduce ImageCanvas to handle canvas rendering in WebWorker 2011-06-23 23:33:22 +02:00
Julian Viereck
61b76c7e87 Make fonts getting loaded by a very nasty hack 2011-06-23 23:33:22 +02:00
Julian Viereck
e15328800a Most working, but once you add the font-css file to the web page, there is no font drawn at all 2011-06-23 23:32:24 +02:00
Julian Viereck
986ef148c4 Backup work 2011-06-23 23:30:54 +02:00
Vivien Nicolas
4d155983c5 Remove some hardcoded glue 2011-06-23 23:15:22 +02:00
Rob Sayre
1d5e28347f Cleanup newlines and fix a mistakenly symlinked file. 2011-06-23 13:59:38 -07:00
Rob Sayre
62c69c3746 Merge remote branch 'upstream/master' 2011-06-23 13:49:16 -07:00
Rob Sayre
d19a6ef983 Add sample manifests. Also make a browser path argument, so you can just specify one browser without messing with a manifest. 2011-06-23 13:47:43 -07:00
Vivien Nicolas
1de5436561 Remove the ignoreFont variable 2011-06-23 22:22:46 +02:00
Vivien Nicolas
ef418de40b Fix bustage of the previous commit 2011-06-23 22:20:55 +02:00
Rob Sayre
ed574cb6c0 Add SpecialPowers extension to allow the browser to quit from content, and a bunch of other exciting things. 2011-06-23 13:12:22 -07:00
Vivien Nicolas
fc35a70acb Add a createPostTable function and remove the useless join('') calls 2011-06-23 22:11:16 +02:00
Andreas Gal
819664f051 Merge pull request #63 from sbarman/uncompressedflate
Uncompressed flate
2011-06-23 12:05:38 -07:00
Rob Sayre
984c4d4de6 Add a user.js file Firefox profile. Change HTTP server to run on background thread. 2011-06-23 11:24:36 -07:00
sbarman
8c3f5df3be faxstream compiles 2011-06-23 10:35:08 -07:00
Rob Sayre
f31290e00f Add pdf.pdf to .gitignore 2011-06-23 10:27:53 -07:00
Rob Sayre
9da2b9c0ea Merge upstream. 2011-06-23 09:57:36 -07:00