Commit Graph

403 Commits

Author SHA1 Message Date
Vivien Nicolas
80f650b6bb Add a fake canvas for scaling fonts to improve perfs 2011-06-28 18:24:16 +02:00
Vivien Nicolas
e3dbb685f3 Add more precision for positionning fonts by scaling the canvas 2011-06-28 17:26:52 +02:00
Julian Viereck
b00df76044 First pass on FontWorker 2011-06-28 08:06:40 +02:00
Andreas Gal
cc9c7baefb Merge pull request #100 from notmasteryet/openweb-cover
CMYK colors; font fixes r=gal
2011-06-27 18:15:22 -07:00
notmasteryet
6073a030ab CMYK colors; font fixes 2011-06-27 19:34:41 -05:00
sbarman
8a812e2ec9 clean up 2011-06-27 10:51:13 -07:00
sbarman
8bf3a9d1b7 reasonably fast for black and white images 2011-06-27 10:38:10 -07:00
sbarman
683bc19427 working version of PDFImage 2011-06-27 09:58:02 -07:00
sbarman
11601f3020 refactored image drawing code 2011-06-26 22:54:18 -07:00
sbarman
ffe68d4972 Merge branch 'master' into faxstream 2011-06-26 20:04:28 -07:00
sbarman
d29e666cbf clean up code to before 2011-06-25 22:56:51 -07:00
sbarman
c2dce23025 Removed bpc=1 code 2011-06-25 22:52:41 -07:00
Andreas Gal
8cec09ec0e keep track of charScale, wordScale and textHScale 2011-06-25 11:26:54 -04:00
sbarman
12ab3d7338 changed undefined to null check 2011-06-24 21:42:22 -07:00
sbarman
d863286438 Fixed problem with dict 2011-06-24 21:40:54 -07:00
Andreas Gal
8c2804145c hack around OOM problem due to broken pattern code 2011-06-25 00:17:28 -04:00
sbarman
2d88566163 Merge branch 'master' into faxstream 2011-06-24 21:05:59 -07:00
Chris Jones
636a548b5d Merge pull request #86 from andreasgal/staging
fix issue #78, don't try to use 'in' operator on null
2011-06-24 20:43:48 -07:00
Andreas Gal
5422182eda fix issue #78, don't try to use 'in' operator on null 2011-06-24 23:27:22 -04:00
notmasteryet
63e74b53e9 Fix arcfour initialization and encoding; png prediction fix 2011-06-24 22:08:33 -05:00
sbarman
86eeedc397 Fixed bug, used pixBytes instead of rowBytes 2011-06-24 19:40:51 -07:00
sbarman
cde62c85bc fully working faxstreams 2011-06-24 19:07:42 -07:00
notmasteryet
da30105b13 Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into decryptstream 2011-06-24 20:03:26 -05:00
sbarman
6df5714ec3 removed debug code 2011-06-24 14:10:25 -07:00
sbarman
363a631356 working version of faxstream 2011-06-24 13:59:37 -07:00
Vivien Nicolas
a71fa0a11f Merge branch 'master' of https://github.com/andreasgal/pdf.js 2011-06-24 21:27:43 +02:00
sbarman
383bc110cc draws a broken image 2011-06-24 10:24:31 -07:00
sbarman
1ea51ed62d Merge branch 'master' into faxstream
Conflicts:
	pdf.js
2011-06-24 08:01:55 -07:00
sbarman
6c8e545e5e Still fixing faxstream 2011-06-24 07:51:59 -07:00
notmasteryet
c78c209eb5 Basic DecryptStream functionality; md5 and arcfour algorithms 2011-06-24 07:51:31 -05:00
Vivien Nicolas
26389c083a Fix a bunch of warnings from Firebug strict mode 2011-06-24 11:58:05 +02: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
c822a9d614 Merge remote branch 'upstream/master' 2011-06-24 01:01:35 +02: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
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
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
0746c7db59 Add PatternProxy; makes page 13 work 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
52a117d32a Fixing some smaller bugs & do some cleanup. viewer_worker.html UI is now 2011-06-23 23:33:23 +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
Vivien Nicolas
1de5436561 Remove the ignoreFont variable 2011-06-23 22:22:46 +02:00
sbarman
8c3f5df3be faxstream compiles 2011-06-23 10:35:08 -07:00
sbarman
bf6f32baa8 Merge branch 'master' into faxstream 2011-06-23 09:48:57 -07:00
sbarman
18afc896f6 fix for uncompressed flatestream blocks 2011-06-23 09:41:59 -07:00
sbarman
3f2bbbe919 Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-23 08:05:00 -07:00
Vivien Nicolas
b54164d2a9 Use the real content of the string to measure it's size 2011-06-23 05:38:05 +02:00
sbarman
d610397d1e fake stream for unimplemented filters 2011-06-22 19:20:03 -07:00
sbarman
325170a5fc Cleaning up FaxStream 2011-06-22 18:56:33 -07:00
Chris Jones
57e7e798a6 fix strict-mode violations in chrome 2011-06-22 18:50:38 -07:00
sbarman
1bb4406702 work in progress 2011-06-22 17:55:47 -07:00
sbarman
8c3ebb8d9f Added in the tables for faxstream 2011-06-22 17:54:57 -07:00
sbarman
1673d2497c not working version of ccittfaxstream 2011-06-22 14:26:59 -07:00
Andreas Gal
5585c6a5fe Merge pull request #53 from vingtetun/master
Merge TTF font rewriting to pass the font sanitization pass.
2011-06-22 11:42:06 -07:00
Chris Jones
20b0fb9dc0 add TODO() for Shading Pattern 2011-06-22 02:37:59 -07:00
Vivien Nicolas
fdf4db3365 Merge remote branch 'upstream/master' 2011-06-22 11:31:24 +02:00
Chris Jones
452550ea72 TODO() for 4-component-per-pixel images 2011-06-22 02:23:15 -07:00
Chris Jones
ea9f916ffe TODO() for radial shading 2011-06-22 02:17:45 -07:00
Chris Jones
abcda6e47d band-aid lack of Indexed color space 2011-06-22 02:10:08 -07:00
Vivien Nicolas
e0c98ba3c6 Enhance the converter code by filling Format 6 dense array gaps 2011-06-22 10:56:31 +02:00
Chris Jones
5dc5455959 deal with apparent lack of FontDescriptor for standard fonts 2011-06-22 01:50:43 -07:00
Andreas Gal
6c31e56448 fix typo 2011-06-22 02:36:34 -04:00
Andreas Gal
d1809be1ec fix other cases of reading this.buffer before ensureBuffer, too 2011-06-22 02:35:42 -04:00
Andreas Gal
3f713de5fe ensureBuffer can modify this.buffer, so read it after ensureBuffer 2011-06-22 02:34:26 -04:00
sbarman
e928f18736 Merge pull request #48 from sbarman/ascii85
Ascii85Stream
2011-06-21 22:57:15 -07:00
sbarman
02dc50532e moved array allocation to consturctor 2011-06-21 22:53:47 -07:00
Vivien Nicolas
00df9b82ee Start of a TTF Format6 to Format4 converter (sigh) 2011-06-22 07:46:41 +02:00
sbarman
ec19935ffb clean up code 2011-06-21 22:43:03 -07:00
sbarman
f0a580e1e7 made Ascii85Stream be a child of DecodeStream 2011-06-21 22:39:38 -07:00
Andreas Gal
7bac97e0fb avoid frequent calls to ensureBuffer during decompression 2011-06-22 01:12:27 -04:00
sbarman
e8aecfa31b Merge branch 'master' into ascii85 2011-06-21 22:04:21 -07:00
sbarman
bb0125c294 fixed indent 2011-06-21 21:51:54 -07:00
sbarman
4e72572fe7 rewrote prototype inhertence 2011-06-21 21:48:50 -07:00
sbarman
745745ccd0 work in progress on ascii85 2011-06-21 21:26:48 -07:00
sbarman
3603981581 modified Ascii85Stream to be more like other streams 2011-06-21 21:12:50 -07:00
Vivien Nicolas
fdfd03b671 Support Format 6 cmap table, but does not pass the sanitizer yet 2011-06-22 04:41:31 +02:00
sbarman
2e581a1563 rewrote streams to be object oriented 2011-06-21 17:02:50 -07:00
sbarman
669776e272 combined redudent code in Stream 2011-06-21 15:16:04 -07:00
sbarman
240fcf650b fixed getBytes in Ascii85Stream 2011-06-21 14:34:13 -07:00
Chris Jones
f7fb8e6348 fix typo 2011-06-21 13:56:49 -07:00
Chris Jones
bf8d49ef1a Don't error out for FontFile3 descriptors. 2011-06-21 13:40:21 -07:00
sbarman
beb048b217 initial impl of ASCII85 Decoding 2011-06-21 13:34:35 -07:00
Vivien Nicolas
11a1ebaada Start displaying TrueType fonts 2011-06-21 21:11:59 +02:00
Andreas Gal
5a96404705 whitespace fixes and move inheriting of dict props into the page since it only happens there 2011-06-21 15:05:33 -04:00
Andreas Gal
bad69c984c indentation fix 2011-06-21 14:42:41 -04:00
sbarman
9f995645e5 minor fix to render page, add F command, added inhertable dictionary entries 2011-06-21 10:49:02 -07:00
Andreas Gal
4b118d361c don't die when translating fonts without a charset 2011-06-21 03:42:01 -04:00
Andreas Gal
2069f3f241 style fixes and fix bug in numComps calculation (missing break) 2011-06-21 03:04:33 -04:00
sbarman
a96c7830a3 removed redundant getChar 2011-06-20 22:44:08 -07:00
sbarman
650df34289 Merge branch 'master' into predictor 2011-06-20 22:42:26 -07:00
sbarman
9f56f66c34 Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-20 22:42:07 -07:00
andreasgal
1a70bb6612 Merge pull request #30 from vingtetun/master
Add a fake name table to works with Firefox trunk
2011-06-20 21:57:58 -07:00
Vivien Nicolas
ff6aaa02ee Get rid of the TrueType class, adapt the code to conventions and new code 2011-06-21 06:49:59 +02:00
notmasteryet
cfda084714 Fixes 09061a2cc4 regression, spaces, and default value for type 2011-06-20 22:55:32 -05:00