Commit Graph

243 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
benbro
b6077c7398 IE9 breaks when adding to many style elements to the page. 2012-05-12 03:40:40 +03:00
Artur Adib
2d3ed7fc78 Merge branch 'refs/heads/master' into textsearch
Conflicts:
	web/viewer.css
	web/viewer.html
	web/viewer.js
2012-05-08 17:22:48 -04:00
Yury Delendik
78213e826e Guessing pdf char size based on the CMap numbers 2012-04-23 17:44:51 -05:00
Brendan Dahl
92d0d1d694 Merge new API and text search. 2012-04-20 16:49:08 -07:00
Brendan Dahl
56079d77bc Merge pull request #1504 from yurydelendik/issue-1502
Rebuilding invalid OS/2 table
2012-04-18 10:32:55 -07:00
Yury Delendik
6bf640260f Fix jsdoc comment; remove resources dict from type3 properties 2012-04-14 17:52:49 -07:00
Julian Viereck
3c77291013 Merge text search with current master 2012-04-08 08:57:55 -07:00
Yury Delendik
be6ccdca34 Rebuilding invalid OS/2 table 2012-04-06 15:52:57 -07:00
Brendan Dahl
dd319995e1 Merge pull request #1484 from yurydelendik/issue-1462
Removing double-entry for 'space' for standard encodings
2012-04-05 15:28:30 -07:00
Kalervo Kujala
5083774a8c Fix lint warnings in fonts.js. 2012-04-05 07:37:04 +03:00
Kalervo Kujala
8fd04e7daa Correct Type1 class method names. 2012-04-05 00:14:47 +03: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
Yury Delendik
b3bcd7370c Removing double-entry for 'space' for standard encodings 2012-04-04 09:48:33 -05:00
notmasteryet
512997a5af Merge pull request #1457 from gigaherz/closure-compiler
Fixes to allow compiling with Closure Compiler
2012-03-31 14:42:15 -07:00
notmasteryet
fed4cb194e Merge pull request #1448 from brendandahl/fdselectorder
Fix cff regression.
2012-03-31 07:55:01 -07:00
gigaherz
9abbce021f Undo comment changes. 2012-03-30 23:28:11 +02: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
c7bd123bab Merge pull request #1417 from notmasteryet/issue-1395
Don't print missing symbols in the font
2012-03-30 12:25:36 -07:00
Brendan Dahl
8c5d33c86b Fix cff regression. 2012-03-29 15:37:40 -07:00
Kalervo Kujala
a84fbb9eb2 Fix a couple of closure names. 2012-03-27 14:27:49 +03:00
notmasteryet
851220074d Checking if it's a true symbolic truetype font 2012-03-25 16:30:44 -05:00
notmasteryet
72355121a0 Don't print missing symbols in the font 2012-03-25 14:15:40 -05:00
notmasteryet
32eb64389e Merge pull request #1382 from kkujala/master
Use [] instead of new Array(...).
2012-03-24 10:00:46 -07:00
Brendan Dahl
25c0bfaa79 Merge pull request #1361 from notmasteryet/truetype-enc-1
Fixes TrueType cmap re-encoding
2012-03-22 11:49:16 -07:00
Kalervo Kujala
8e060bdbca Use [] instead of new Array(...). 2012-03-22 15:15:27 +02:00
Brendan Dahl
2d7e1d6346 Merge upstream. 2012-03-21 16:13:24 -07:00
Brendan Dahl
37fef69e5e Remove slice. 2012-03-21 16:03:17 -07:00
Kalervo Kujala
ed2bcf0ffa Add protection against malicious code in font loader. 2012-03-20 17:57:38 +02:00
Kalervo Kujala
eb4ec7899a Remove unreachable logic after error(...) is called.
The function error(...) always throws so there is no need to return separately
or have an else branch.
2012-03-20 14:16:48 +02:00
Brendan Dahl
6f5baaa60b Fix names, remove debug function. 2012-03-19 10:41:13 -07:00
Artur Adib
0c258ae7a8 Merge pull request #1259 from jviereck/worker_cleanup
Worker cleanup
2012-03-19 09:10:21 -07:00
notmasteryet
73c9f8797b Add missing .link files; minor fix 2012-03-17 23:22:42 -05:00
notmasteryet
a66b1a7ad3 Fix unicode re-assignment; MacRomanEncoding detection 2012-03-17 23:05:22 -05:00
Julian Viereck
fd2ab059d3 Rename IRQueue and codeIR -> operatorList 2012-03-16 14:58:53 +01:00
Julian Viereck
889d6d100a Cleanup font loading. 2012-03-16 14:54:10 +01:00
notmasteryet
2508d2c12b Verify the names parameter 2012-03-15 21:25:19 -05:00
notmasteryet
19b670458e Remove empty gryphs; improve glyph unicode movements 2012-03-13 18:59:16 -05:00
Brendan Dahl
adee28b2ec Fix font matrix. 2012-03-11 18:21:38 -07:00
Brendan Dahl
cca0241532 Slight rename. 2012-03-10 19:37:22 -08:00
Brendan Dahl
4a50e06e85 Merge branch 'master' of https://github.com/mozilla/pdf.js into cff 2012-03-10 19:22:02 -08:00
Brendan Dahl
ce53b1b018 CFF Parser and Compiler. 2012-03-10 19:12:33 -08:00
notmasteryet
ab3107e8e0 Optimization 2012-03-01 22:01:39 -06:00
notmasteryet
38e3f32557 Add and fix pdfkit_compressed.pdf 2012-03-01 21:23:36 -06:00
notmasteryet
83860bf281 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into tree-84 2012-03-01 18:36:03 -06:00
notmasteryet
8cb8de3092 Lint error 2012-02-29 22:57:54 -06:00
notmasteryet
a6b9efc06b Re-encode cmap based on post table or current encoding; fix GlyphsUnicode table entries 2012-02-29 22:11:32 -06:00
Artur Adib
5e5522e808 Merge pull request #1289 from notmasteryet/cap1
Fixes cap1 statement
2012-02-29 18:38:27 -08:00
notmasteryet
2cc89735ae Fixing cap1 statement 2012-02-29 18:31:03 -06:00
Artur Adib
d09c0fbfd3 Merge pull request #1252 from notmasteryet/issue-1249
Check if glyphs are stored outside the glyf table
2012-02-29 10:43:45 -08:00
Artur Adib
676e575a52 Merge pull request #1218 from mozilla/bidi
bidi characters algorithm; separation of the toFontChar and toUnicode
2012-02-23 07:00:48 -08:00
Artur Adib
92e2723cbc Merge pull request #1199 from notmasteryet/tree-72
Remove lazy encoding initialization
2012-02-22 13:52:06 -08:00
notmasteryet
31d8d13ba2 Fix merge with symbol font fix (part 2) 2012-02-21 19:56:35 -06:00
notmasteryet
7cad586e63 Fix merge with symbol font fix 2012-02-21 18:27:31 -06:00
notmasteryet
a8cdbcf315 Merge remote-tracking branch 'mozilla/master' into bidi
Conflicts:
	src/fonts.js
2012-02-21 18:23:00 -06:00
Brendan Dahl
884ea5f028 Merge pull request #1244 from notmasteryet/issue-1243
Sets proper unicode range for symbols; sanitize no-glyphs fonts
2012-02-21 11:37:56 -08:00
Brendan Dahl
b9cd526a35 Remove bad chars instead of replaces all. 2012-02-20 15:49:45 -08:00
notmasteryet
a46a684935 Moving all symbolic font glyphs into 0xF000 - 0xF0FF range 2012-02-20 17:19:12 -06:00
notmasteryet
26b58c0e4f Properly build toFontChar 2012-02-20 14:26:30 -06:00
notmasteryet
b4e3554af2 Remove debug code 2012-02-20 13:00:45 -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
b6e4fc771f Fix bad chars in Type2CFF font names. 2012-02-19 22:12:22 -08:00
notmasteryet
8f3b198c23 Check if glyph are stored outside the glyf table 2012-02-19 20:12:57 -06:00
notmasteryet
2703f3f692 Fixing first glyph index 2012-02-18 19:18:54 -06:00
notmasteryet
5efccea2af Using the first glyph code to detect the base glyph offset. 2012-02-18 16:45:47 -06:00
notmasteryet
321750bba6 Sets proper unicode range for symbols; sanitize no-glyphs fonts 2012-02-18 15:01:53 -06:00
Brendan Dahl
0175f53637 Merge upstream. 2012-02-15 12:56:05 -08:00
notmasteryet
6c7e7df6da linting 2012-02-14 23:06:16 -06:00
notmasteryet
16bd59edf0 Separating fontChar and unicode 2012-02-14 23:00:09 -06:00
Brendan Dahl
9fe5eff905 Combining Yury's and my debugging tools. 2012-02-13 17:35:58 -08:00
notmasteryet
3cd4159489 Sanitizing the glyphs to avoid OTS rejections 2012-02-12 21:11:44 -06:00
notmasteryet
00f6f0e096 Remove lazy encoding initialization 2012-02-10 15:55:04 -06:00
Adil Allawi
2e1a88f39e Handle bidi ordering of PDF strings 2012-02-10 17:05:09 +00:00
notmasteryet
d50773fb96 Fixing ToUnicode parsing; workaround for invalid UTF16 encoding 2012-02-09 18:40:44 -08:00
Brendan Dahl
58a697697f Fix closing script tag. 2012-02-08 13:09:21 -08:00
Brendan Dahl
b3fb41caa9 Merge pull request #1106 from arturadib/issue-1049
fontMatrix parsing fix, setFont() supports negative sizes
2012-02-03 11:10:58 -08:00
Artur Adib
7873ec966b Merge branch 'refs/heads/master' into issue-1049
Conflicts:
	src/canvas.js
2012-01-31 13:20:05 -05:00
notmasteryet
5415fed14d Mapping well-known chars to the similar equivalents in the normal characters range 2012-01-27 20:36:27 -06:00
notmasteryet
10a0a60f8e Fixing symbols encoding 2012-01-27 18:53:05 -06:00
notmasteryet
dd066f8369 Fixing standard encoding mapping 2012-01-26 18:51:58 -06:00
Artur Adib
b34c55cc3c Use ES5 .trim() 2012-01-23 15:29:15 -05:00
notmasteryet
1ac24dbc01 Merge remote-tracking branch 'mozilla/master' into textsearch-1
Conflicts:
	src/core.js
	src/fonts.js
2012-01-22 13:56:56 -06:00
notmasteryet
c6662d12e1 Changing glyphNameMap and GlyphUnicode lookup order 2012-01-21 17:18:36 -06:00
Artur Adib
86de8aca33 Nit 2012-01-20 16:25:06 -05:00
Artur Adib
66eff7a5cb more robust fontMatrix parsing, error checking 2012-01-20 14:55:52 -05:00
Artur Adib
d9f1365b9c Merge pull request #1092 from notmasteryet/issue-940
Fixes type2 fonts conversion
2012-01-19 06:59:35 -08:00
Artur Adib
ee8c86d2b6 Merge pull request #1086 from notmasteryet/issue-1084
Use .sheet property instead of document.styleSheets
2012-01-18 09:25:37 -08:00
notmasteryet
85a0eccc7e Fallback map of the "non-standard" fonts 2012-01-16 18:10:48 -06:00
notmasteryet
2927f5e7bd Fixes type2 fonts conversion (#940) 2012-01-16 14:13:38 -06:00
notmasteryet
8b52b50c67 Use .sheet property instead of document.styleSheets 2012-01-15 15:19:51 -06:00
notmasteryet
09dfde69a2 Duplicate short map into private use area 2012-01-10 22:01:24 -06:00
notmasteryet
933be30c3a Converting MacRoman symbols to Unicodes 2012-01-10 19:41:45 -06:00
notmasteryet
550819b829 fix serif and symbol attribute detection for standard fonts 2012-01-09 21:15:18 -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
Christian Legnitto
03e39363b6 Add the style element to the head rather than first element in the document, as the first element could be a comment and this would line would then throw 2012-01-02 21:40:43 -08: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
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
notmasteryet
94cc2cdb75 Char code to unicode conversion 2011-12-11 17:59:19 -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
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
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
Artur Adib
9ea8668dcb Merge pull request #905 from notmasteryet/issue-886b
Fixing missing text (#886)
2011-12-07 10:11:46 -08:00
notmasteryet
7d64d3168f Revert int16 clamping for horizontal metrics 2011-12-07 06:47:52 -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
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
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
notmasteryet
3ea81bf0a6 (#867) Set Type3 font encoding; enable text selection testing 2011-12-04 13:51:12 -06:00
notmasteryet
bb6e5c6e00 (#840) fix font stretching and overlapping characters encoding 2011-12-01 20:56:26 -06:00
notmasteryet
0414c0711f Fixing base encoding presence detection; character width scale 2011-11-29 22:06:00 -06:00
notmasteryet
683a8f0de8 Remove indexOf, using reverse map instead 2011-11-28 21:54:07 -06:00
notmasteryet
88310a09c2 Removing refreshToUnicode 2011-11-28 19:49:02 -06:00
notmasteryet
e4e864766d Fix CIDFontType2 large cmap tables 2011-11-28 19:47:37 -06:00
notmasteryet
08e3fd88ad Removing adaptUnicode; making cmap equal to ToUnicode tables 2011-11-27 20:43:23 -06:00
notmasteryet
709dc1a0c9 Initial ToUnicode modifications 2011-11-24 09:38:09 -06: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
notmasteryet
cd3ab6059d Merge pull request #748 from arturadib/for-cache
For-loop cache
2011-11-05 20:24:46 -07:00
Artur Adib
7d38d7f062 Missing var 2011-11-02 17:34:24 -04:00
Artur Adib
ddf77cda6b Using ii convention 2011-11-02 15:21:45 -04:00
Artur Adib
c8c5b4f8ea First iteration, tracemonkey/ecma262 working 2011-11-02 14:43:27 -04:00
Ionuț G. Stan
090b4d6647 Fix same origin policy issue when adding @font-face rules
If the first stylesheet in the document is located on an external domain, then
trying to access the `cssRules` property of that `CSSStyleSheet` object will
result in a Security error being thrown in Firefox. In Safari, `cssRules` will
be null, which causes a null pointer exception in the `styleSheet.cssRules.length`
expression.
2011-11-02 13:06:26 +02:00
notmasteryet
5d347b0ddb removing differences from the cmap 2011-10-30 23:32:06 -05:00
notmasteryet
aaad824f77 Fixing duplicates in cmap 2011-10-29 21:55:43 -05:00
notmasteryet
a1d2c1c6d3 Fix Type1 width; TrueType special characters 2011-10-29 14:19:13 -05:00
notmasteryet
343e174951 Change cmap encoding for Type 1 2011-10-29 09:29:19 -05:00
notmasteryet
38372ee2f2 TrueType encoding for files without font data 2011-10-29 08:45:29 -05:00
notmasteryet
7f038536fb Migration of the 'encoding-1' branch (ref #674) 2011-10-28 20:38:31 -05:00
Kalervo Kujala
7e6a589074 Fix js strict warning in worker.js.
Also fix a few minor nits.
2011-10-27 21:51:10 +03:00
Artur Adib
41caf5018d Merge branch 'refs/heads/master' into filesplit
Conflicts:
	pdf.js
2011-10-26 15:10:58 -04:00
Artur Adib
e71b6188c6 'use strict' everywhere 2011-10-25 18:18:22 -07:00
Artur Adib
8fbb05613e Progress 2011-10-25 09:10:56 -07:00
Artur Adib
a7278b7fbc Splitting files 2011-10-24 16:55:23 -07:00