362 Commits

Author SHA1 Message Date
Vivien Nicolas
32118c5650 Add a basic support for TrueType (generate fonts with OS/2 table) 2011-06-15 04:46:48 +02:00
Andreas Gal
7a0ba61a2a compile PDF command streams into JS code 2011-06-14 18:31:14 -07:00
sbarman
58ca7ab61c Cleaned up code, renamed PDFFunction class 2011-06-14 13:49:50 -07:00
Vivien Nicolas
363071aab9 Add XObjects fonts to the list of page fonts and has a forEach method to the Dict class 2011-06-14 21:38:59 +02:00
sbarman
3c12d9ee31 cleaned up code 2011-06-14 12:19:35 -07:00
sbarman
de9150b528 Implemented type 2 shading for the pdf (aka gradients) 2011-06-14 11:57:02 -07:00
Vivien Nicolas
3625ac93a3 Forgot to push function calls changes to get the unicode char from a random code 2011-06-14 19:40:36 +02:00
Vivien Nicolas
0ebd3cdf93 Add support for ligatures, asterisks, etc. 2011-06-14 11:08:08 +02:00
Vivien Nicolas
b0ee046b31 Make the fonts decoding code works with asynchronous data url 2011-06-14 04:35:46 +02:00
Vivien Nicolas
c03dd98075 Do not use makeSubStream in the CFF constructor 2011-06-13 23:23:13 +02:00
Vivien Nicolas
f9e3607601 Merge to upstream 2011-06-13 19:16:03 +02:00
Vivien Nicolas
2dc7bda2bc Merge the stream handling changes with the Font code 2011-06-13 18:59:46 +02:00
Vivien Nicolas
2c4a0aa269 Undo last patch, it broke font rendering 2011-06-13 07:06:51 +02:00
Andreas Gal
83e100b013 starting position of a stream is relative to the file, not the current stream 2011-06-13 12:47:40 +08:00
Andreas Gal
e0a6c8ef76 use const instead of var 2011-06-13 11:40:49 +08:00
Vivien Nicolas
0a135091de Add a root 'Font' class as the outside world API 2011-06-13 01:38:05 +02:00
Andreas Gal
609842b76c remove debug code 2011-06-11 23:49:17 -07:00
Vivien Nicolas
632fcfed18 Turn on TrueType decoder even if the sanitizer prevent them to load at the moment 2011-06-12 03:10:54 +02:00
Vivien Nicolas
828367a1b4 Make the Type1 to OTF code active, even if the sanitizer prevent fonts to load at the moment 2011-06-12 03:00:45 +02:00
Chris Jones
d1cd02f0a7 Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-10 12:17:00 -07:00
Chris Jones
a5731ddc47 skeleton of shading fill 2011-06-10 12:16:45 -07:00
sbarman
b61700b5a5 changed bufferPos to pos, fixed style issue (spacing) 2011-06-10 11:30:48 -07:00
sbarman
3d9f609054 Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-09 23:06:36 -07:00
sbarman
f10aca6a46 Fixed up excess code 2011-06-09 19:34:34 -07:00
sbarman
1dbf2d1d0c cleaned up code, used dict.get2, hoisted conditional outside loop when drawing image 2011-06-09 19:19:09 -07:00
Chris Jones
78d0b3caf1 implement TL and T* 2011-06-09 18:19:17 -07:00
sbarman
b83979f40d Revert "working on optimizations"
This reverts commit 03747940a2f8346e484898b026f43785c25abd04.
2011-06-09 18:17:27 -07:00
sbarman
03747940a2 working on optimizations 2011-06-09 17:15:44 -07:00
Vivien Nicolas
74abf984d5 Add the beginning of a Type1 to Type2 charstring converter 2011-06-10 01:20:00 +02:00
sbarman
0e8f323f0a fixed error with getBytes in flate stream 2011-06-09 15:02:58 -07:00
sbarman
78493db421 Merge remote-tracking branch 'agal/master'
Conflicts:
	pdf.js
	test.html
2011-06-09 14:59:15 -07:00
Andreas Gal
287e7a702a remove left-over shell code 2011-06-10 05:44:41 +08:00
sbarman
c5a04b900f Merge commit '496a6374c1ac04e'
Conflicts:
	pdf.js
2011-06-09 14:42:31 -07:00
sbarman
496a6374c1 fixed the display of images 2011-06-09 14:35:55 -07:00
sbarman
cfff44f2b2 fixed getBytes 2011-06-09 12:53:38 -07:00
sbarman
5da69f520d Half working version of paintImageXObject 2011-06-08 17:45:50 -07:00
sbarman
c326f1808f Fixed geBytes implementation 2011-06-08 17:42:29 -07:00
sbarman
19f9897ec3 added getBytes method 2011-06-08 15:41:17 -07:00
Andreas Gal
bab03e6add remove left-over shell code 2011-06-08 13:40:10 -07:00
sbarman
a89bd1d30e Copied entire buffer for flate stream's snarf function (since decoding looks back) 2011-06-08 11:49:37 -07:00
Andreas Gal
f85953b342 read in image data en-block instead of sucking it through the stream interface 2011-06-09 01:09:02 +08:00
Andreas Gal
8b119087f0 use dict.get2 to lookup with a key that has an abbreviation (i.e. BitsPerComponent/BPC) 2011-06-09 01:09:02 +08:00
Vivien Nicolas
c098f0b31f Fix some bugs and add the beginning of a Type2 reader 2011-06-08 17:26:29 +02:00
Andreas Gal
ee5d8763e8 read in image data en-block instead of sucking it through the stream interface 2011-06-08 07:50:35 -07:00
Vivien Nicolas
4d261759d9 Support TrueType Font 2011-06-07 19:17:46 +02:00
Andreas Gal
5c5d09c898 use dict.get2 to lookup with a key that has an abbreviation (i.e. BitsPerComponent/BPC) 2011-06-06 21:34:21 -07:00
sbarman
99aacfe42c Implemented basic version of smask 2011-06-06 18:35:45 -07:00
sbarman
27b8b68b87 Removed log code from previous commit 2011-06-06 18:34:24 -07:00
sbarman
11f427d235 Fixed FlateStreams to read in multiple blocks 2011-06-06 18:31:54 -07:00
Andreas Gal
386d70f33c add code to parse bits per component information for images 2011-06-05 10:56:05 -07:00