Commit Graph

592 Commits

Author SHA1 Message Date
sbarman
3eccfa3cc0 Merge branch 'master' into font 2011-07-21 17:28:16 -07:00
Chris Jones
736f2e9ea1 Merge pull request #265 from sbarman/patternfix
Fix to gradient and tiling colorspaces
2011-07-21 15:39:55 -07:00
sbarman
870027136a Merge branch 'master' into font 2011-07-21 11:29:15 -07:00
Vivien Nicolas
2197235470 Merge to upstream 2011-07-21 18:29:32 +02:00
sbarman
bed8052cab Merge branch 'master' into font 2011-07-21 09:09:25 -07:00
notmasteryet
cecd26d56d Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into aes-crypto 2011-07-20 23:08:28 -05:00
notmasteryet
e1e735c4ff AES algorithm implementation, PDF1.5,1.6 crypto functionality 2011-07-20 23:08:08 -05:00
sbarman
8d09c0d7a4 removed Fonts class 2011-07-20 16:42:51 -07:00
sbarman
8824ff9539 removed code to parse type2 ccharstrings 2011-07-20 14:43:44 -07:00
sbarman
c7aec8ac8a used width info in fontDict 2011-07-20 12:57:47 -07:00
sbarman
8763002c44 extracted filetype in pdf.js instead of fonts.js 2011-07-20 11:25:00 -07:00
Vivien Nicolas
6311977fee Merge with upstream 2011-07-20 15:18:44 +02:00
Vivien Nicolas
3cc9912acd Add a simpler path for cmap format 0 to cmap format 4 2011-07-20 14:29:07 +02:00
sbarman
37ef03d51e Merge branch 'master' into font 2011-07-19 15:09:26 -07:00
Vivien Nicolas
4275a68e29 Filter more characters on font name 2011-07-19 16:52:29 +02:00
Vivien Nicolas
6600e747e5 Fix next line since we already invert the position of the viewport by doing a negative scale 2011-07-19 15:04:22 +02:00
Vivien Nicolas
c6c72291d9 Do not rasterize below 14px 2011-07-19 14:22:51 +02:00
sbarman
77292b3a07 Merge branch 'master' into font 2011-07-18 12:22:26 -07:00
sbarman
0c71f3a10b Merge branch 'master' of github.com:andreasgal/pdf.js into patternfix 2011-07-18 09:18:38 -07:00
sbarman
636b1105b0 cleanup 2011-07-18 09:13:02 -07:00
Saebekassebil
aedd5057c4 Updated syntax 2011-07-18 15:01:12 +02:00
Vivien Nicolas
9b45870d9a Merge branch 'master' of https://github.com/andreasgal/pdf.js 2011-07-18 14:25:13 +02:00
Saebekassebil
d56cc9c5e8 Updating PartialEvaluator.eval syntax for better performance 2011-07-18 12:09:26 +02:00
Chris Jones
daf23a0341 remove debugging code 2011-07-15 18:41:52 -07:00
Chris Jones
6f3fff5798 fix some bugs 2011-07-15 17:40:37 -07:00
sbarman
2098d840da fix to dummyshading 2011-07-15 12:06:38 -07:00
sbarman
5f4b84146f fix to Util.getCssCmyk 2011-07-15 12:05:14 -07:00
sbarman
c438a8748a fix type 2011-07-15 11:41:39 -07:00
sbarman
dd1d90213b cleanup 2011-07-15 11:18:37 -07:00
Vivien Nicolas
42653edf9a Add support for beginfbchar 2011-07-15 19:14:07 +02:00
sbarman
faa6875b80 cleanup, add support for stroking 2011-07-15 09:48:40 -07:00
sbarman
dc77e076c2 Fixed tiling patterns 2011-07-14 11:50:27 -07:00
sbarman
9dcac17a3e patterns working 2011-07-14 10:59:12 -07:00
sbarman
7ee383a7f8 added reset 2011-07-13 17:58:54 -07:00
sbarman
7986c35213 fixed gradients, need to work on tiling 2011-07-13 15:43:09 -07:00
sbarman
01d5e5579c Changed linear gradients 2011-07-13 11:55:54 -07:00
sbarman
da845ec5e6 git radial gradients working 2011-07-13 11:41:04 -07:00
Adil Allawi
06986bb15f nits, picked 2011-07-13 17:46:48 +01:00
Adil Allawi
36763e8e82 Fully support truetype composite fonts, clean up 2011-07-13 09:31:34 +01:00
Adil Allawi
5fb0e66e62 Merge remote-tracking branch 'upstream/master' into CIDFont 2011-07-12 04:01:48 +01:00
Adil Allawi
6b6e97dff6 cleanup, added new flag to the font properties called compositeFont. If true, the encoding and ShowText strings must be multi-byte 2011-07-12 03:58:09 +01:00
sbarman
82f40dd2e5 cleanup 2011-07-11 16:44:58 -07:00
sbarman
dc913b989d interpolated functions 2011-07-11 14:09:16 -07:00
sbarman
e95512e7cf cleanup 2011-07-11 13:14:47 -07:00
sbarman
6f74406a2c added missing restore 2011-07-11 10:29:22 -07:00
sbarman
53511decbb cleanup 2011-07-11 09:54:02 -07:00
Adil Allawi
7b8542c6a7 Second pass CIDFont support - make Arial Unicode in OpenOffice PDF
- supports PDF fonts with CIDtoGIDMap and no cmap
2011-07-11 17:41:55 +01:00
Adil Allawi
b17a666343 First pass CIDFont - stop CID fonts breaking PDF rendering 2011-07-11 17:41:55 +01:00
sbarman
4861a9175d Merge branch 'master' into shading
Conflicts:
	pdf.js
2011-07-11 09:25:22 -07:00
sbarman
07f8145165 cleanup 2011-07-11 09:23:30 -07:00
Chris Jones
452ba3d85b #123, part 2: move more PDF-page rendering stuff into pdf.js 2011-07-10 23:21:13 -07:00
Andreas Gal
47c29974c4 Merge pull request #241 from cgjones/workers
#123, part 1: create PartialEvaluator
2011-07-10 15:02:46 -07:00
notmasteryet
f541c4cd37 Removing const and extending shadow() arguments 2011-07-10 13:48:05 -05:00
Andreas Gal
77fe66d64f Merge pull request #239 from cgjones/issue-236
return a dummy fill style for NYI shading
2011-07-10 00:28:01 -07:00
Chris Jones
03212b3cc0 set up dummy functions for NYIs 2011-07-09 23:38:04 -07:00
Chris Jones
56b1f3b333 return a dummy fill style for NYI shading 2011-07-09 23:30:16 -07:00
Chris Jones
671dd3b0e8 back out bad font measurement changes 2011-07-09 21:43:28 -07:00
Chris Jones
db9b0b1d66 back out bad font measurement changes 2011-07-09 21:43:12 -07:00
Chris Jones
7974d8264b #123, part 1: create PartialEvaluator 2011-07-09 21:29:35 -07:00
sbarman
d38a5488d4 fix to colorspaces 2011-07-09 16:58:25 -07:00
Chris Jones
fb9b8b6417 Merge pull request #226 from andreasgal/staging
simplify font measurement code, bug is now fixed in nightlies, no need to
2011-07-09 16:51:04 -07:00
Andreas Gal
a5237dd60e address review comment 2011-07-09 16:45:23 -07:00
Andreas Gal
adb619941c simplify font measurement code, bug is now fixed in nightlies, no need to hack around it 2011-07-08 19:28:24 -07:00
Andreas Gal
f2a4756c77 backout font measurement change, it is breaking tests 2011-07-08 18:51:20 -07:00
Andreas Gal
83a5ecf456 Merge pull request #225 from sbarman/shading
implemented colored tiling patterns
2011-07-08 18:40:11 -07:00
Andreas Gal
4a7fe7cb5d move text measurement into Font 2011-07-08 17:57:03 -07:00
sbarman
5820f4b151 fix tiling colorspace 2011-07-08 17:35:25 -07:00
Andreas Gal
09a465a2fd Merge github.com:andreasgal/pdf.js into staging 2011-07-08 16:36:54 -07:00
Andreas Gal
0b6c0db931 move unicode translation cache into Font 2011-07-08 16:36:50 -07:00
Andreas Gal
fa0cd9d587 Merge pull request #222 from sbarman/encoding
Encoding
2011-07-08 15:48:08 -07:00
sbarman
c16f594465 Merge pull request #220 from saebekassebil/master
ASCIIHexDecode Filter implementation
2011-07-08 15:41:25 -07:00
Saebekassebil
ae867e3a9c Using map for hex conversion and left-shift for secure division 2011-07-09 00:30:46 +02:00
sbarman
2bb68cc062 Merge branch 'master' into encoding 2011-07-08 15:29:20 -07:00
sbarman
396dbe5135 fix encoding table 2011-07-08 15:28:04 -07:00
Andreas Gal
6fecf59ca7 address review comments 2011-07-08 15:13:33 -07:00
Andreas Gal
f6eb9cecd3 avoid font lookup by id in showText 2011-07-08 14:58:19 -07:00
Saebekassebil
4391e2985a Adding AsciiHexDecode Filter 2011-07-08 23:19:03 +02:00
Andreas Gal
d3979e4ac2 Merge pull request #219 from sbarman/font
Font code cleanup, avoid name collisions
2011-07-08 11:06:54 -07:00
sbarman
7b659fd605 fixed case when font cannot be found 2011-07-08 10:04:52 -07:00
sbarman
4404871212 fixed font loading bug 2011-07-08 08:14:34 -07:00
Saebekassebil
82b6b4ead8 min. perf. Dict 2011-07-08 14:57:40 +02:00
Andreas Gal
7fb940c4ba revert a couple changes from the last merge 2011-07-08 01:02:14 -07:00
Andreas Gal
df79f10f2f Merge pull request #214 from saebekassebil/master
Dict object improvements. Performance.
2011-07-08 00:59:00 -07:00
sbarman
c39eae3ce9 fixed up minor bugs 2011-07-07 17:15:53 -07:00
sbarman
8ac2367fa0 not refer fonts by name, instead use id 2011-07-07 16:48:04 -07:00
sbarman
8db3787544 fix bug with unref var 2011-07-07 11:56:10 -07:00
sbarman
15a50e4237 cleanup 2011-07-07 11:48:34 -07:00
sbarman
f34308efd3 cleanup 2011-07-07 11:47:49 -07:00
sbarman
39624e9173 fix performance issue with SeparationCS 2011-07-07 11:46:52 -07:00
sbarman
b62eddd937 fixed to index cs 2011-07-07 11:26:29 -07:00
sbarman
6ae81e1f8c cleanup 2011-07-07 11:21:41 -07:00
sbarman
54ae4fc6cb changed name from TintCS to SeparationCS 2011-07-07 11:13:39 -07:00
sbarman
1007e279c6 added comments 2011-07-07 11:01:14 -07:00
sbarman
da8f0120a5 working separation cs 2011-07-07 09:38:58 -07:00
Saebekassebil
42cdf6bf02 Fixing typo in Dict 2011-07-07 16:51:44 +02:00
Saebekassebil
056a729115 Use .call instead of .apply. minor. 2011-07-07 16:06:45 +02:00
Saebekassebil
ff17a5db5a Updated Dict object. Perf. Improv. 2011-07-07 01:02:42 +02:00
sbarman
622669c415 fixed bug using mozCurrentTransformInverse 2011-07-06 15:28:58 -07:00
sbarman
c0d3f75de5 Merge branch 'master' into shadinghack 2011-07-06 14:32:21 -07:00
sbarman
0c2b6aea5f cleanup 2011-07-06 14:28:52 -07:00
sbarman
eb3a95ef45 added check for mozInverseTransform 2011-07-06 14:22:26 -07:00
sbarman
5022e2411c removed extra restore 2011-07-06 12:53:18 -07:00
sbarman
55bb98317d cleanup 2011-07-06 10:44:56 -07:00
sbarman
d749b7ccbd cleanup 2011-07-06 10:44:01 -07:00
sbarman
b83d2cdffc cleanup 2011-07-06 10:41:44 -07:00
sbarman
9d182ec9ef Merge branch 'master' into patterncs
Conflicts:
	pdf.js
2011-07-06 10:36:49 -07:00
Rob Sayre
699c91b0aa Fix up late patches to pdf.js and web/compatibility.js. 2011-07-05 23:55:40 -07:00
Rob Sayre
ebeff10a9a Merge upstream. 2011-07-05 23:23:12 -07:00
Rob Sayre
f5a3587dde Almost passing gjslint. 2011-07-05 23:06:45 -07:00
sbarman
493fb45efd Added hack to display gradients 2011-07-05 22:51:58 -07:00
Adil Allawi
a6f4a92286 OpenOffice includes the optional reference to a Font dictionary in the Resources dictionary. This breaks SetFont in pdf.js as the Font in this.res is not a dictionary but an xref. 2011-07-06 00:01:24 +01:00
Chris Jones
b1f717cb7f get shavian-load test working 2011-07-05 18:46:08 -04:00
sbarman
8fce6938c4 Initial implementation of shading patterns. Radial shading is somewhat broken. 2011-07-05 15:09:45 -05:00
Chris Jones
6561104d7e Merge pull request #190 from sbarman/unicodecharts
Add check for reference in the Page class
2011-07-05 10:02:33 -07:00
sbarman
7d3e08eefd bug with length of lookup table 2011-07-05 11:44:26 -05:00
sbarman
28a01646bb cleanup 2011-07-05 11:13:53 -05:00
sbarman
2e83b0cc0d Fixes to parser for the test pdf in www.unicode.org/charts 2011-07-05 11:10:14 -05:00
Chris Jones
122d168b51 fix some bugs 2011-07-04 23:28:44 -04:00
Chris Jones
d4f49c05c5 fix another binary-mode issue 2011-07-04 17:39:29 -04:00
sbarman
597cdb59f9 called getStrokeColorSpace instead of getFillColorSapce 2011-07-03 09:23:17 -05:00
sbarman
8d196a96d0 fix for colorspaces 2011-07-03 01:20:30 -05:00
Andreas Gal
40afbc725b work-around for issue #158 2011-07-02 01:11:55 -07:00
Andreas Gal
d3bb64bccd Merge pull request #120 from sbarman/colorspace
Colorspace
2011-07-02 00:24:40 -07:00
Vivien Nicolas
3e78538c1c Remove cmap format 100, fixes some nits to merge with upstream 2011-07-02 05:46:50 +02:00
Vivien Nicolas
22264c07c8 Fix TrueType bustage 2011-07-01 07:24:48 +02:00
Vivien Nicolas
e13164eca6 Read the text matrix from the Type1 font ascii header 2011-07-01 07:16:56 +02:00
Vivien Nicolas
ce17e9481f Merge branch 'master' of https://github.com/andreasgal/pdf.js 2011-06-30 11:50:53 +02:00
Vivien Nicolas
9b67a1e6b5 Forgot to add pdf.js to the last commit 2011-06-30 11:50:47 +02:00
Vivien Nicolas
2e71f79865 Remove the first empty character of charset 2011-06-30 02:58:40 +02:00
sbarman
a013e803a2 cleanup 2011-06-29 10:30:28 -07:00
sbarman
ed7e18f730 clean up 2011-06-29 10:27:00 -07:00
sbarman
03a1a0369b Merge branch 'master' into colorspace 2011-06-29 10:15:52 -07:00
sbarman
08e7b9a858 Working version of indexed color space 2011-06-29 10:15:16 -07:00
Julian Viereck
31e9bea5c9 Make worker code work with latest font code changes 2011-06-29 14:26:38 +02:00
sbarman
a5be9c4648 refactored colorspace into own class 2011-06-28 19:25:36 -07:00
Vivien Nicolas
dd923d5aea Merge with upstream, reverse changeset 4e24288 since it brokes TTF on linux 2011-06-29 02:58:51 +02:00
Chris Jones
7c9bf1f36f Merge pull request #95 from jviereck/master
Make processing of fonts happen in a worker.
2011-06-28 14:56:10 -07:00
sbarman
5a1a35813b Merge branch 'master' into colorspace
Conflicts:
	pdf.js
2011-06-28 14:23:56 -07:00
Rob Sayre
3213299f30 const doesn't work in Chrome. 2011-06-28 13:59:22 -07:00
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