1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-24 17:18:07 +02:00
Commit graph

186 commits

Author SHA1 Message Date
Vivien Nicolas
e62bd48a9e Use strict mode for js files 2011-06-19 02:35:28 +02:00
Andreas Gal
e9980c1558 remove toString code to avoid any future accidental implicit conversions 2011-06-18 01:18:21 -07:00
Andreas Gal
5517602df0 speedup unicode/glyph conversion and cache translated strings in the font 2011-06-17 21:22:37 -07:00
Andreas Gal
2588eb054b IsInteger => IsInt 2011-06-17 20:17:10 -07:00
Andreas Gal
a4e1fba9ec even more error checking for font translation 2011-06-17 16:34:29 -07:00
Andreas Gal
050acaf5e0 add more error checking for font translation 2011-06-17 16:29:48 -07:00
Andreas Gal
1db4812c00 inline Encodings table into pdf.js and use getters for lazy construction 2011-06-17 15:48:17 -07:00
Vivien Nicolas
4bd3308b78 Do not assume charset is defined and move some fonts timing to the right place 2011-06-17 20:29:34 +02:00
Vivien Nicolas
172dadb008 Clean up some debug leftovers 2011-06-17 13:55:42 +02:00
Vivien Nicolas
3dbfde89a3 Resolve the char->glyphs mapping issue 2011-06-16 03:55:45 +02:00
Vivien Nicolas
2e87e8ca83 Merge from gal's master branch (got a regression on the mapping between char->glyph) 2011-06-16 03:05:55 +02:00
Chris Jones
8ab68cf17a implement setDash 2011-06-15 12:55:48 -07:00
Chris Jones
672741bc5c Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-15 12:42:48 -07:00
sbarman
7077ad5b67 Merge branch 'master' of github.com:andreasgal/pdf.js
Conflicts:
	pdf.js
2011-06-15 12:37:05 -07:00
Chris Jones
0c4e4d1651 implement some operators and add TODOs for remaining undefined ones 2011-06-15 14:24:44 -05:00
sbarman
a0375c0f0b cleaned up fetchIfRef, changed switch-case to array lookup, changed IsFunction to IsPDFFunction 2011-06-15 11:34:47 -07:00
Andreas Gal
815544ab81 fixes suggested by @brendaneich 2011-06-15 00:37:15 -07:00
Andreas Gal
02df7f8e58 clarify API a bit and hand in xref and resources to ease translation 2011-06-14 23:44:59 -07:00
Andreas Gal
cf4bca7813 completed async font loading framework 2011-06-14 23:41:26 -07:00
Andreas Gal
d94b3006a3 eagerly translate all fonts (a no-op currently) 2011-06-14 23:34:11 -07:00
Andreas Gal
662fab04ca pdf is using a dumb name, content makes much more sense than Contents 2011-06-14 23:22:19 -07:00
Andreas Gal
d1b9e4054a cache results of compilation 2011-06-14 23:16:53 -07:00
Andreas Gal
e8ce0b361d eagerly compile XForm objects 2011-06-14 22:54:49 -07:00
Andreas Gal
e7d6b47099 return ready-to-run closure from compile that captures its objpool 2011-06-14 20:36:45 -07:00
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