Commit Graph

165 Commits

Author SHA1 Message Date
Brendan Dahl
034583e1a1 Add new severity log info(). Change severity of some log messages. Trigger fallback on errors and warnings for extension. 2012-05-14 17:19:09 -07:00
Yury Delendik
47c43b5779 Removing the rotatePoint, width, height from the API 2012-04-11 08:29:44 -07:00
Brendan Dahl
fece736b8a Merge upstream. 2012-04-05 12:46:23 -07:00
Kalervo Kujala
99440ab691 Refactor class method names.
Also move functionality to more logical place in canvas.js and jpx.js.
2012-04-04 23:43:26 +03:00
gigaherz
c6d7e654ee Replace variables named 'char'=>'character', 'byte'=>'octet' and field '.private'=>'.privateData'. This allows pdf.js to compile with Google's Closure Compiler. 2012-03-30 23:17:04 +02:00
Brendan Dahl
7008d07fde Fix gradients for fill and stroke. 2012-03-29 08:53:51 -07:00
notmasteryet
bcdf7b46c5 Fixing advance after disabled symbols 2012-03-25 14:31:28 -05:00
notmasteryet
72355121a0 Don't print missing symbols in the font 2012-03-25 14:15:40 -05:00
Artur Adib
0c258ae7a8 Merge pull request #1259 from jviereck/worker_cleanup
Worker cleanup
2012-03-19 09:10:21 -07:00
Julian Viereck
25cfebfd71 Change the kExecutionTime value to 15. In theory, this should give 60FPS rendering. 2012-03-16 15:08:50 +01:00
Julian Viereck
fd2ab059d3 Rename IRQueue and codeIR -> operatorList 2012-03-16 14:58:53 +01:00
Julian Viereck
f80fd13fe5 new ScratchCanvas -> createScratchCanvas and fix linting 2012-03-16 14:56:43 +01:00
Julian Viereck
261ff39f6d Remove suffix _IR 2012-03-16 14:56:43 +01:00
Julian Viereck
8325d37f9d No need to store ScratchCanvas on CanvasGraphics 2012-03-16 14:56:43 +01:00
Julian Viereck
889d6d100a Cleanup font loading. 2012-03-16 14:54:10 +01:00
notmasteryet
e8ca7b44d9 Fixing review nits; moving small functions inside bidi 2012-02-22 17:56:47 -06:00
notmasteryet
28b4dac2d8 Merge remote-tracking branch 'mozilla/master' into bidi
Conflicts:
	web/viewer.html
2012-02-20 12:41:19 -06:00
Brendan Dahl
0175f53637 Merge upstream. 2012-02-15 12:56:05 -08:00
Brendan Dahl
ebf26a5e29 Fix undefined stepper. 2012-02-14 10:25:53 -08:00
notmasteryet
1cfb099640 Add bugzill reference, reducing to 1px size 2012-02-13 22:35:42 -06:00
notmasteryet
b32a7b1c8b Reducing min font size to 2; rearranging fontSizeScale logic 2012-02-13 21:12:55 -06:00
notmasteryet
99d71cc713 scale line width; set min font size to 8 2012-02-13 20:45:51 -06:00
Brendan Dahl
9fe5eff905 Combining Yury's and my debugging tools. 2012-02-13 17:35:58 -08:00
Adil Allawi
2bc708305d Fix up bidi algorithm, and set direction of div to match text direction 2012-02-13 02:10:41 +00:00
Adil Allawi
2e1a88f39e Handle bidi ordering of PDF strings 2012-02-10 17:05:09 +00:00
notmasteryet
cc9035438a Optimization: don't scale when parameter is 1.0 2012-02-07 17:14:58 -08:00
notmasteryet
bd95a191b7 Reducing MIN_FONT_SIZE size to 5px 2012-02-04 14:42:07 -06:00
notmasteryet
34e2aa5d21 Browser minimal font adjustment 2012-02-04 12:45:18 -06:00
Artur Adib
7873ec966b Merge branch 'refs/heads/master' into issue-1049
Conflicts:
	src/canvas.js
2012-01-31 13:20:05 -05:00
Kalervo Kujala
66e3441e0e Change throws to errors. 2012-01-24 22:10:16 +02:00
Artur Adib
5c8753dcba Fixing regression errors, better logic 2012-01-23 15:23:09 -05:00
Artur Adib
bbdec90c0d Lint 2012-01-20 18:44:51 -05:00
Artur Adib
786cccf636 setFont() supports negative size, closes #1049 2012-01-20 18:41:01 -05:00
Artur Adib
357f4cc665 Clarifying variable role 2012-01-20 15:20:25 -05:00
Artur Adib
66eff7a5cb more robust fontMatrix parsing, error checking 2012-01-20 14:55:52 -05:00
Brendan Dahl
8aac2256ed Fix zero width lines. 2012-01-17 20:50:49 -08:00
notmasteryet
1bb5592357 Replace makeCssRgb.apply in setStrokeColor and setFillColor 2012-01-16 11:53:59 -06:00
notmasteryet
a84fa13189 using font flags to recognize the symbol and serif fonts; using the encoding instead of predefined MacRoman in TrueType fonts 2012-01-09 19:36:24 -06:00
notmasteryet
edb0ae4eb8 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into textlayout-ui
Conflicts:
	src/canvas.js
2012-01-03 18:42:13 -06:00
Artur Adib
86387272fc webkit dash support 2012-01-03 14:51:35 -05:00
notmasteryet
cbf4c0393f Replace nbsp entity with character code 2011-12-30 19:32:35 -06:00
notmasteryet
877e0f4159 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into textlayout-ui
Conflicts:
	web/viewer.js
2011-12-30 19:22:59 -06:00
notmasteryet
3f286803d0 Move the media left-top corner to the (0,0) canvas position 2011-12-30 16:45:33 -06:00
notmasteryet
d7754a402e Correct stroke width for text; convert intel-load test to eq-test 2011-12-22 17:43:14 -06:00
notmasteryet
0f6291c7b9 Move text layer UI to viewer.js; fixes adding div with single char; replaces innerHTML to textContent 2011-12-18 12:53:30 -06:00
Artur Adib
f7f7269253 Merge pull request #937 from ironymark/master
stop canvasRenderTextLayer blocking browser UI
2011-12-16 09:06:18 -08:00
Adil Allawi
b921486bce simplify adding of textdivs to DOM as queue is no longer needed 2011-12-16 10:38:30 +00:00
Brendan Dahl
8096d747c0 Fix nits. 2011-12-15 15:13:48 -08:00
Adil Allawi
5bd080fd05 oops, interval was not clearing because 'this' is not the same 'this' inside an interval. Should use local variable 'self' instead. Reviewers you should have spotted this! :) 2011-12-15 11:32:58 +00:00
Adil Allawi
c93e7c9c87 Merge branch 'master' of https://github.com/mozilla/pdf.js 2011-12-15 10:09:04 +00:00
Adil Allawi
4a14a79884 use array index instead of array.shift() 2011-12-15 10:08:50 +00:00
Adil Allawi
cc007b539a fix lint nitpick 2011-12-15 09:20:55 +00:00
Adil Allawi
ce57bac447 Build Text Layer one div at a a time as an Interval instead of a all in a TimeOut to keep the browser responsive 2011-12-14 22:28:34 +00:00
Brendan Dahl
c2b91f1272 Merge upstream. 2011-12-14 13:41:36 -08:00
notmasteryet
45ef8742ac type3 font.coded comment; proper geometery for showText; glyph name 2011-12-13 18:28:02 -06:00
notmasteryet
bed87284db Fixing Type3 text layer creation and character spacing 2011-12-12 21:32:20 -06:00
Brendan Dahl
948de2bdbe Remove some unintended changes. 2011-12-12 09:53:31 -08:00
Brendan Dahl
4c01766278 Merge upstream. 2011-12-11 21:13:53 -08:00
Brendan Dahl
7d1cddf371 Add ability to fast track natively supported jpegs. 2011-12-08 21:18:04 -08:00
Kalervo Kujala
cd01302de8 Merge remote-tracking branch 'upstream/master' into style
Conflicts:
	src/image.js
	src/pattern.js
2011-12-09 00:28:31 +02:00
Kalervo Kujala
1ef4c94de2 Name all constructors. 2011-12-09 00:18:43 +02:00
Brendan Dahl
146cd8c861 Second stage, smasks now working. Still needs optimization. 2011-12-08 12:50:34 -08:00
Brendan Dahl
2a632d4ab2 First stage of trying to support smasks on native jpegs. 2011-12-07 15:36:27 -08:00
notmasteryet
cb592d6e51 Merge pull request #776 from jviereck/jpegimage_cleanup
Don't create JpegImage object anymore - go functional style
2011-12-07 11:11:11 -08:00
notmasteryet
69e5cf2560 fixes gradient fill (#840) 2011-12-07 06:42:01 -06:00
Artur Adib
7edefbbe41 Merge pull request #846 from jviereck/feature_img_data
Add feature detection for using Uint8Array as imageData
2011-12-06 07:17:23 -08:00
Artur Adib
3c601f012b Merge pull request #864 from notmasteryet/issue-799
Suppress invisible text (#799)
2011-12-05 12:55:49 -08:00
Brendan Dahl
3b112edd91 Merge pull request #857 from jviereck/hotcmds
Only check execution time on some commands
2011-12-05 10:43:03 -08:00
Julian Viereck
cf7d4503d6 Address review comments: Introduce new CanvasGraphics.putBinaryImageData and make sure feature detection work always 2011-12-05 18:27:09 +01:00
Julian Viereck
97802aac64 Inline JpegImageLoader to remove new JpegImageLoader call 2011-12-05 17:59:03 +01:00
notmasteryet
2719e8eadc add stroke and other text rendering modes 2011-12-02 22:30:31 -06:00
notmasteryet
00d1204705 Suppress invisible text (#799) 2011-12-02 16:52:31 -06:00
notmasteryet
bb6e5c6e00 (#840) fix font stretching and overlapping characters encoding 2011-12-01 20:56:26 -06:00
Artur Adib
705356fa41 Addressing comments by @vingtetun 2011-12-01 14:11:17 -05:00
Artur Adib
5e1d78ef20 Merge branch 'master' of git://github.com/mozilla/pdf.js into text-select
Conflicts:
	src/canvas.js
2011-12-01 10:42:07 -05:00
Julian Viereck
594e5daa7c Only check execution time on some commands 2011-12-01 00:02:30 +01:00
notmasteryet
0414c0711f Fixing base encoding presence detection; character width scale 2011-11-29 22:06:00 -06:00
Artur Adib
e2e2240a22 Lint lint lint 2011-11-29 16:02:12 -05:00
Artur Adib
a544bed57e Merge branch 'master' of git://github.com/mozilla/pdf.js into text-select
Conflicts:
	src/canvas.js
2011-11-29 14:17:05 -05:00
Julian Viereck
01d2929401 Add feature detection for using Uint8Array as imageData 2011-11-29 19:31:47 +01:00
Artur Adib
fcc05b08bf Merge pull request #838 from notmasteryet/to-unicode-1
Making cmap equal to ToUnicode tables
2011-11-29 10:28:50 -08:00
Artur Adib
4cfc552163 Merge branch 'master' of git://github.com/mozilla/pdf.js into text-select
Conflicts:
	src/canvas.js
	web/viewer.js
2011-11-28 10:02:07 -05:00
Artur Adib
a1853185b1 Comments 2011-11-28 09:25:25 -05:00
notmasteryet
2e70984f38 Merge pull request #829 from jviereck/canvas_currentTransform
Implement ctx.mozCurrentTransform and ctx.mozCurrentTransformInverse shim
2011-11-28 05:09:42 -08:00
Julian Viereck
8991cfad83 Check after each executed command if execution took too long already 2011-11-27 20:54:25 +01:00
Julian Viereck
36e618c373 Address Yury's review comments + remove call to addCtxCurrentTransform in pattern.js as the contet is added during the CanvasGraphics constructor already 2011-11-27 09:22:21 +01:00
Julian Viereck
a30f0ff848 Implement ctx.mozCurrentTransform and ctx.mozCurrentTransformInverse shim 2011-11-27 09:22:20 +01:00
notmasteryet
709dc1a0c9 Initial ToUnicode modifications 2011-11-24 09:38:09 -06:00
Artur Adib
dc33b24fae Merge branch 'refs/heads/master' into text-select 2011-11-21 11:45:10 -05:00
notmasteryet
7a2301dc95 Inline setXXXRGBColor calls 2011-11-15 20:16:22 -06:00
notmasteryet
ef58ccd284 Issue #644: bypassing identity cmap translation loading; resetting color space when stroke/fill color set 2011-11-15 18:23:45 -06:00
Artur Adib
b1ae23772f No suppressWarnings in Yury's encoding patch 2011-11-14 15:32:52 -05:00
Artur Adib
5c261b46cc Merge branch 'refs/heads/master' into text-select
Conflicts:
	src/fonts.js
2011-11-14 15:21:18 -05:00
notmasteryet
60744a8a61 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into encoding-2
Conflicts:
	src/evaluator.js
	src/fonts.js
2011-11-12 11:09:19 -06:00
Artur Adib
8c182cb724 Default font fallback is same as setFont()'s 2011-11-08 17:27:02 -05:00
Artur Adib
686f275830 Fix font and spaces 2011-11-08 16:05:11 -05:00
Artur Adib
9ebec03ddc Implemented selection for showText() 2011-11-08 15:27:03 -05:00
Artur Adib
46a48a56b7 Merge branch 'refs/heads/master' into text-select
Conflicts:
	src/core.js
2011-11-08 08:56:52 -05:00
notmasteryet
cd3ab6059d Merge pull request #748 from arturadib/for-cache
For-loop cache
2011-11-05 20:24:46 -07:00
Kalervo Kujala
33af12abd0 Fix jslint warnings. 2011-11-03 23:26:58 +02:00