890 Commits

Author SHA1 Message Date
Ionuț G. Stan
0c321466dc Set DeviceGray as initial value for color space
See the PDF reference, section 4.3 Graphics State, table 4.2, third row.

> The current color space in which color values are to be interpreted
> (see Section 4.5, “Color Spaces”). There are two separate color space
> parameters: one for stroking and one for all other painting opera-
> tions. Initial value: DeviceGray.

The problem before was that certain PDFs didn't explicitly set the
color space, so a call to `setFillColor` or `setStrokeColor` were failing
when the `getRgb` method was call, as the color space was null.

See source code of CanvasGraphics.prototype.setFillColor/setStrokeColor.
2011-10-27 05:45:10 +03:00
Ionuț G. Stan
56b9a3543d Close path in closeFillStroke and closeEOFillStroke
See Chapter 4, page 230, Table 4.10 of the PDF specification.
2011-10-27 03:08:11 +03:00
Ionuț G. Stan
a17b13019b Fix strict mode syntax error in Safari
This happens in Safari 5.1 and Mobile Safari on iOS 5.

Apparently, Safari considers the function name as part of the ECMA's
FormalParameterList and applies the strict mode rules from section 13.1
of the specification.

> It is a SyntaxError if any Identifier value occurs more than once
> within a FormalParameterList of a strict mode
> FunctionDeclaration or FunctionExpression.
2011-10-27 02:47:18 +03:00
Chris Jones
8341579fd3 Merge pull request #699 from kkujala/dev
Fix strict js warnings.
2011-10-24 18:58:12 -07:00
Chris Jones
22601dcff6 Merge pull request #689 from vingtetun/jpx2000-donotcrash
Do not stop rendering on filter JPXdecode
2011-10-24 18:27:49 -07:00
Kalervo Kujala
e72216649a Fix strict js wanings. 2011-10-24 22:52:37 +03:00
Vivien Nicolas
440e3c263f TODO's all unknown filters 2011-10-24 10:33:23 +02:00
=
a203437d67 Fix lint error. 2011-10-21 16:32:35 -07:00
=
300730c335 Addressing Vivian's comments. 2011-10-21 15:56:10 -07:00
=
23363cf464 Remove debugger 2011-10-21 09:56:28 -07:00
=
d272f835d7 Merge remote-tracking branch 'origin/integration' into integration 2011-10-21 09:55:24 -07:00
=
5293a248b6 Merge remote-tracking branch 'upstream/master' into integration 2011-10-21 09:06:08 -07:00
Julian Viereck
b873c1f4da Fix imageObj.imageMask bug from merge 2011-10-21 09:42:44 +02:00
=
435d9f2e9a Removing all console logs. 2011-10-20 16:59:59 -07:00
=
29ed0be26b Merge upstream/master. 2011-10-20 16:56:30 -07:00
Chris Jones
7185a12300 Merge pull request #685 from kkujala/master
Refactor duplicate code in getTwoDimCode function.
2011-10-20 16:43:08 -07:00
Kalervo Kujala
7da3c68c48 Fix strict javascript warning in CanvasGraphics. 2011-10-20 23:56:23 +03:00
=
82aef59edf Refactor TilingPattern to be more similar to the
other IR patterns.
2011-10-20 13:54:39 -07:00
=
1d66c0e895 Rename JpegStreamIr to just JpegImage since it isn't
an IR.
2011-10-20 12:18:24 -07:00
=
2ad1e622ab Move remaining worker.js code into pdf.js. 2011-10-20 12:13:18 -07:00
=
211cf22886 Fix setting the font from graphics state. Fix
setting other graphical state params.
2011-10-20 11:47:13 -07:00
=
d4a810e2b3 Fix merge problem with argsArray/fnArray. 2011-10-20 10:01:25 -07:00
Vivien Nicolas
a2692bbb89 Do not stop rendering on filter JPXdecode 2011-10-20 18:52:04 +02:00
Kalervo Kujala
0a83c2661d Refactor duplicate code in getTwoDimCode function.
Also reuse the existing findTableCode function for it.
2011-10-19 22:58:03 +03:00
=
452f33b328 Remove WorkerPage. 2011-10-19 12:42:33 -07:00
=
65ea07a3a2 Initial merge of master. 2011-10-19 11:14:13 -07:00
vingtetun
fefe4247c0 Merge pull request #665 from notmasteryet/viewlink
Adds "bookmark" icon and fixes scale/ current page number issues
2011-10-18 12:34:08 -07:00
notmasteryet
7323e670b6 Merge pull request #676 from vingtetun/oncontextmenu
Fix issue 581 by adding oncontextmenu='return false;' to buttons
2011-10-17 19:15:19 -07:00
Kalervo Kujala
3ba167645f Refactor duplicate code in getWhiteCode.
Reuse functionality from getBlackCode for this.
2011-10-18 00:29:43 +03:00
vingtetun
2dac9ce451 Merge pull request #672 from kkujala/master
Refactor duplicate code in getBlackCode.
2011-10-17 13:27:36 -07:00
Kalervo Kujala
6688c3a1f5 Handle blackTable2 array access correctly. 2011-10-17 22:24:19 +03:00
Vivien Nicolas
674d6a7d18 Fix warnings in strict mode 2011-10-17 20:39:29 +02:00
Kalervo Kujala
d39ea4dc54 Adhere to 80 char line limit. 2011-10-16 12:34:34 +03:00
Kalervo Kujala
3c53e34c7b Refactor duplicate code in getBlackCode. 2011-10-15 23:32:56 +03:00
Kalervo Kujala
fb174290c7 Move function creation out of the loop.
Also name the anonymous function. Jslint complains about this.
2011-10-15 22:03:57 +03:00
notmasteryet
b54be346b5 Add "bookmark" icon; and fixing scale/ current page number issues 2011-10-14 21:05:57 -05:00
notmasteryet
176bef3c0e Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into tree-33 2011-10-13 17:45:58 -05:00
Julian Viereck
fdf8ef33f6 Fix length in setGState(). 2011-10-13 22:54:47 +02:00
Julian Viereck
b832aa5c1e Address latest review comments by Artur 2011-10-13 20:30:55 +02:00
notmasteryet
01f026ce14 Fixing duplicate charstring selection 2011-10-12 19:53:57 -05:00
notmasteryet
53cfe2792b Fixing #650 regression 2011-10-12 17:52:11 -05:00
notmasteryet
511177576c Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into liveprog 2011-10-12 17:36:03 -05:00
notmasteryet
db5550af09 Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into issue-649 2011-10-11 20:29:40 -05:00
notmasteryet
e745114a5e Making the normalized name same in pdf.js and fonts.js 2011-10-11 19:38:20 -05:00
Julian Viereck
3142c2a7da Merge master -> worker_pull + fix too long line 2011-10-11 22:21:34 +02:00
Julian Viereck
15d1d359b3 Fix lint, remove for old worker code, fix some small stuff 2011-10-11 22:09:17 +02:00
Julian Viereck
9b8ce24924 Kill global vars FontsMap, FontLoadedCounter, objIdCounter. 2011-10-11 22:09:16 +02:00
notmasteryet
aa98632b0b Fixing DescendantFonts object fetching (#600) 2011-10-11 22:07:54 +02:00
Julian Viereck
1b69ca80a6 Remove commented out code and change some comments to fit current code state 2011-10-11 19:51:35 +02:00
notmasteryet
6d6c5f94cc Fixing interpolation function (#549) 2011-10-10 22:35:17 -05:00