Commit Graph

270 Commits

Author SHA1 Message Date
Adil Allawi
cc007b539a fix lint nitpick 2011-12-15 09:20:55 +00:00
notmasteryet
c85ec052b1 Unicode normalization; lint warnings 2011-12-14 21:42:06 -06:00
notmasteryet
04551dbf57 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into textsearch-1
Conflicts:
	src/core.js
2011-12-14 19:37:21 -06: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
d1f4e7c7d5 Change to passing promises. 2011-12-14 14:02:00 -08:00
Brendan Dahl
c2b91f1272 Merge upstream. 2011-12-14 13:41:36 -08:00
Brendan Dahl
5ad3a9cc72 Add basic rescale support for smacks. 2011-12-14 12:27:56 -08:00
Brendan Dahl
9d042ce166 Use the general function for is default decode. 2011-12-14 08:47:35 -08:00
notmasteryet
45ef8742ac type3 font.coded comment; proper geometery for showText; glyph name 2011-12-13 18:28:02 -06:00
notmasteryet
c9981b6ff4 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into tree-49 2011-12-13 17:57:58 -06:00
Brendan Dahl
ff1d804fd7 Move the default decode to logic to the colorspace. 2011-12-13 14:35:46 -08:00
Brendan Dahl
55bbcbc664 Working improved version. Still need to refactor default decode stuff. 2011-12-13 13:53:22 -08:00
Brendan Dahl
868d07e289 Merge pull request #917 from arturadib/check-pixels
Throw error on # of pixels mismatch
2011-12-13 13:31:57 -08:00
Brendan Dahl
ac3ccdef4a Merge remote-tracking branch 'origin/nativejpegsmask' into decodemap 2011-12-13 09:12:26 -08:00
Brendan Dahl
2f10d24502 Fix for chrome. 2011-12-13 09:05:00 -08:00
Brendan Dahl
d76f5f6815 Playing with initial decode map impl. 2011-12-13 08:48:27 -08:00
notmasteryet
bed87284db Fixing Type3 text layer creation and character spacing 2011-12-12 21:32:20 -06:00
Brendan Dahl
3f8ba7d56a Merge upstream. 2011-12-12 15:34:11 -08:00
Brendan Dahl
94a48cab82 Address Julian's comments. 2011-12-12 15:09:05 -08:00
Brendan Dahl
fcd612e486 Add comments to some of the code I touched/created. 2011-12-12 11:38:16 -08:00
Artur Adib
2113e0615e Reverting error(); warn() instead of TODO() 2011-12-12 14:33:26 -05:00
Brendan Dahl
948de2bdbe Remove some unintended changes. 2011-12-12 09:53:31 -08:00
Brendan Dahl
176452c988 Style nits. 2011-12-12 09:26:24 -08:00
Brendan Dahl
0d370fd206 Remove debugging. 2011-12-12 09:17:40 -08:00
Brendan Dahl
4c01766278 Merge upstream. 2011-12-11 21:13:53 -08:00
Brendan Dahl
683f64d54f Use promises to track completion of decoding. 2011-12-11 16:56:45 -08:00
notmasteryet
4d44eb6184 fix stream reset, interrupting thread when pages are indexed 2011-12-11 18:14:52 -06:00
notmasteryet
94cc2cdb75 Char code to unicode conversion 2011-12-11 17:59:19 -06:00
notmasteryet
3b72c6063c Text char codes extraction 2011-12-10 17:24:54 -06:00
notmasteryet
315b089b28 (#919) Fixing toUnicode mapping for TrueType fonts with identity mapping 2011-12-09 21:21:58 -06:00
Brendan Dahl
853f16085f Merge pull request #909 from notmasteryet/tree-45
Fixing TrueType code-glyph assigmnent to pass sanitizer
2011-12-09 17:22:47 -08:00
notmasteryet
240bde97b2 Using 'in' instead of array index 2011-12-09 18:25:44 -06:00
Artur Adib
de33e44b09 Lint 2011-12-09 14:57:52 -05:00
Artur Adib
d29e39d754 Merge pull request #898 from kkujala/style
Name constructors in obj.js.
2011-12-09 08:02:06 -08:00
Artur Adib
d65c38c995 Merge pull request #913 from notmasteryet/issue-863
Bad pdf with scanned image
2011-12-09 07:29:02 -08:00
Brendan Dahl
7d1cddf371 Add ability to fast track natively supported jpegs. 2011-12-08 21:18:04 -08:00
notmasteryet
b11d1b2282 Fix error object wrapper (#914) 2011-12-08 20:09:19 -06:00
notmasteryet
fa89ebe537 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into issue-863
Conflicts:
	test/pdfs/.gitignore
2011-12-08 19:22:44 -06:00
notmasteryet
54c31968e7 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into issue-863 2011-12-08 19:20:33 -06:00
Artur Adib
fcbe4f13d1 More sanity checks 2011-12-08 18:19:36 -05:00
Brendan Dahl
d1c823efce Cleaned up how messages are passed and replies work. 2011-12-08 14:51:26 -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
Artur Adib
a21030a502 Throw error when pixels don't match 2011-12-08 17:13:17 -05:00
Brendan Dahl
f7207a51f8 Fix missing bracket. 2011-12-08 12:54:02 -08:00
Brendan Dahl
146cd8c861 Second stage, smasks now working. Still needs optimization. 2011-12-08 12:50:34 -08:00
Artur Adib
7ea770fd08 Merge pull request #911 from notmasteryet/issue-906
(#906) fixing glyph width defined by glyph name
2011-12-08 07:02:23 -08:00
notmasteryet
301a6795db (#906) fixing glyph width defined by glyph name 2011-12-07 23:30:48 -06:00
notmasteryet
fa18c8022e remove glyph references outside range of avaialable glyphs 2011-12-07 21:38:34 -06:00
notmasteryet
18db087f79 Fixing TrueType code-glyph assigmnent to pass sanitizer 2011-12-07 20:59:44 -06: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
Artur Adib
9ea8668dcb Merge pull request #905 from notmasteryet/issue-886b
Fixing missing text (#886)
2011-12-07 10:11:46 -08:00
Julian Viereck
af8e2a1189 Address review comments by yury 2011-12-07 19:07:00 +01:00
Artur Adib
4a9275268d Merge pull request #907 from notmasteryet/tree-43
Fixes the unicode symbols on the text layer
2011-12-07 09:26:21 -08:00
Artur Adib
c3f6dc6055 Merge pull request #908 from notmasteryet/tree-44
fixes gradient fill (#840)
2011-12-07 08:27:09 -08:00
Artur Adib
2ab4f4dda0 Merge pull request #895 from kkujala/constants
Use constants for paint type and pattern size.
2011-12-07 07:29:37 -08:00
notmasteryet
7d64d3168f Revert int16 clamping for horizontal metrics 2011-12-07 06:47:52 -06:00
notmasteryet
69e5cf2560 fixes gradient fill (#840) 2011-12-07 06:42:01 -06:00
notmasteryet
9234c315d5 Fix the unicode symbols on the text layer 2011-12-06 22:59:06 -06:00
notmasteryet
fe02078c9d Fixing missing text (#886) 2011-12-06 22:13:14 -06:00
Kalervo Kujala
f239d01bde Name constructors in obj.js. 2011-12-07 00:18:40 +02:00
Kalervo Kujala
477683e514 Use constants for paint type and pattern size. 2011-12-06 22:07:35 +02:00
Artur Adib
9eae90a1ba Merge pull request #885 from notmasteryet/issue-884
(#884) Use unicode mapping cmap when simple identity cmap was originally used
2011-12-06 11:59:07 -08:00
Artur Adib
bf755f459e Merge pull request #870 from notmasteryet/issue-867
(#867) Set Type3 font encoding; enable text selection testing
2011-12-06 10:12:56 -08: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
notmasteryet
b8a5d6b8a7 Use unicode mapping cmap when simple identity cmap was originally used 2011-12-05 20:42:39 -06:00
notmasteryet
aaa672d5ff Fixing opening from the file system 2011-12-05 17:48:21 -06:00
notmasteryet
dbf869f195 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into forms-1
Conflicts:
	web/viewer.css
2011-12-05 17:01:45 -06: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
d5f4fd05c6 Merge pull request #871 from kkujala/constants
Use constants for radial and axial types.
2011-12-05 09:24:06 -08:00
Julian Viereck
ab08d90680 Merge pull request #868 from kkujala/refactor
Fix few early returns in parser.js.
2011-12-05 09:23:32 -08:00
Artur Adib
e44521eae3 Merge pull request #862 from notmasteryet/issue-828
Fallback to object indexing when reading of xref fails (#828)
2011-12-05 09:06:53 -08:00
Julian Viereck
97802aac64 Inline JpegImageLoader to remove new JpegImageLoader call 2011-12-05 17:59:03 +01:00
Kalervo Kujala
cca0306789 Use object-enumeration for pattern type. 2011-12-05 00:38:45 +02:00
fixplz
5fd3647c57 Style fixes 2011-12-05 00:00:22 +02:00
Kalervo Kujala
7116ce0b53 Use constants for radial and axial types. 2011-12-04 22:22:39 +02:00
notmasteryet
3ea81bf0a6 (#867) Set Type3 font encoding; enable text selection testing 2011-12-04 13:51:12 -06:00
Kalervo Kujala
d2303493fe Fix few early returns in parser.js. 2011-12-04 21:22:08 +02:00
notmasteryet
2719e8eadc add stroke and other text rendering modes 2011-12-02 22:30:31 -06:00
fixplz
7fa9b5827a Avoid skipping over tag in startxref search 2011-12-03 01:55:59 +02:00
notmasteryet
00d1204705 Suppress invisible text (#799) 2011-12-02 16:52:31 -06:00
fixplz
b1ed459443 Scan for startxref more than 1024 chars from end #828 2011-12-03 00:33:00 +02:00
notmasteryet
01a96fdddf Fixing lint errors; extra empty lines 2011-12-02 15:35:18 -06:00
notmasteryet
0f7f80ee6e If readXRefStream or readXRefTable fails, fallback to object indexing (#828) 2011-12-02 15:31:29 -06:00
Brendan Dahl
e0c231eec7 Merge upstream and change to error parameter for callback. 2011-12-02 10:19:43 -08: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
Brendan Dahl
3ae06c96ad Address Yury's comments. 2011-12-01 09:11:33 -08: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
Brendan Dahl
e5d91ab219 Fix invalid arguments error. 2011-11-29 14:50:19 -08:00
Artur Adib
e2e2240a22 Lint lint lint 2011-11-29 16:02:12 -05:00
Brendan Dahl
cddb106358 Fix lints. 2011-11-29 11:32:01 -08:00
Brendan Dahl
b40af3555b Display error messages on more problems. 2011-11-29 11:28:05 -08: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