Commit graph

852 commits

Author SHA1 Message Date
Kalervo Kujala
07662cf035 fix jslint warnings
jslint revealed unused and misspelled variable names. Also some code was
refactored to be more simple.
2011-09-11 22:54:00 +03:00
notmasteryet
b5b0357dca Remove extra space 2011-09-11 13:37:13 -05:00
notmasteryet
eaa5b8dab3 Pruning unreachable code; misc font fixes 2011-09-11 13:32:08 -05:00
notmasteryet
faf8b8ac0b Refactoring charsToUnicode into charsToGlyphs 2011-09-10 20:21:20 -05:00
notmasteryet
e523e4dc56 Merge pull request #458 from vingtetun/metrics
Fix for issue #441, #412, #379
2011-09-10 17:27:20 -07:00
Andreas Gal
501a224128 Merge pull request #462 from notmasteryet/bug674619
JPEG marker for YCCK images (in support of bug 674619)
2011-09-10 12:37:03 -07:00
notmasteryet
ee21d4113f JPEG marker for YCCK images (in support of bug 674619) 2011-09-10 13:45:55 -05:00
Vivien Nicolas
7fa63e68dd Merge with upstream 2011-09-10 20:12:57 +02:00
Vivien Nicolas
13bf137220 Draw glyphs one by one to position them correctly and remove all the scaling hack 2011-09-10 19:40:25 +02:00
Kalervo Kujala
d54e425a96 Refactor the repeat logic in readBlock function.
In the function repeat the variabe i is not defined in the scope of the
function. This function was from moved by
92fa629d10 from its original place which had
the i as defined. This fix avoids the scope dependency.
2011-09-10 20:06:03 +03:00
Vivien Nicolas
001ca071f0 Fix a small bug about how 'W' widths array is parsed 2011-09-10 14:27:04 +02:00
Kalervo Kujala
946c4e2a88 Initialize inputBuf to zero. 2011-09-09 20:12:38 +03:00
Vivien Nicolas
d4fb9c786c Use the built-in widths to calculate glyphs metrics 2011-09-09 01:35:37 +02:00
Vivien Nicolas
f759e56a02 Merge remote branch 'upstream/master' into HEAD 2011-09-09 01:34:47 +02:00
Kalervo Kujala
63d3f06265 Fix lastRow bug.
It was introduced by 99ffc9991e.
2011-09-09 00:52:11 +03:00
Kalervo Kujala
b8263a5c1f Initialize inputBuf.
Fix also another jslint error.
2011-09-08 23:10:49 +03:00
Kalervo Kujala
d9e01b1d7a Fix gjslint warnings. 2011-09-08 22:37:35 +03:00
Vivien Nicolas
a7ef696fea Add an empty 'widths' to the properties object for base font 2011-09-08 03:21:27 +02:00
Vivien Nicolas
f014867bf8 Merge remote branch 'upstream/master' into refactor 2011-09-08 03:16:35 +02:00
Vivien Nicolas
567be29720 Add more glue between glyph mapping and code mapping 2011-09-08 03:16:33 +02:00
notmasteryet
92a7468e9a Add PDFString conversion 2011-09-07 20:16:32 -05:00
notmasteryet
768554afd8 Merge pull request #454 from vingtetun/refactor
Refactor the translateFont() method to be more readable and simpler
2011-09-07 17:30:56 -07:00
Kalervo Kujala
a9e0ddc22f Use typed arrays instead of normal arrays in FlateStream.
Also fix a couple of lint warnings.
2011-09-07 23:07:29 +03:00
Kalervo Kujala
fb5807721e Fix array initializations.
And refactor one loop.
2011-09-07 22:11:30 +03:00
Vivien Nicolas
92081af896 Revert a change from the narrow hack 2011-09-07 20:18:02 +02:00
Vivien Nicolas
c5b83eaf73 Refactor translateFont() to be more readable - part3 2011-09-07 19:56:45 +02:00
Vivien Nicolas
4d2b8ea1c8 Refactor translateFont() to be more readable - part2 2011-09-07 19:34:53 +02:00
Vivien Nicolas
8c21f53c98 Refactor translateFont() to be more readable 2011-09-07 18:00:38 +02:00
notmasteryet
d72178d6dd Merge pull request #447 from vingtetun/serif
Add a list of common serif fonts to not always fallback on sans-serif
2011-09-06 17:33:18 -07:00
notmasteryet
122e4c1e67 Merge pull request #443 from vingtetun/master
Partial fix for issue #440
2011-09-06 16:14:48 -07:00
Vivien Nicolas
ea42fd69e4 Add a list of common serif fonts to not always fallback on sans-serif if the font file is missing 2011-09-07 00:29:08 +02:00
Kalervo Kujala
24babb6536 Use unique variable names in toplevelPagesDict function. 2011-09-07 01:17:06 +03:00
Kalervo Kujala
5c132be0e0 Use radix in parseInt function calls. 2011-09-07 00:34:58 +03:00
Vivien Nicolas
5e37bf7aeb Do not alter the encoding if no file is going to be altered 2011-09-06 17:26:48 +02:00
Vivien Nicolas
0c091ca855 Merge remote branch 'upstream/master' 2011-09-06 15:45:56 +02:00
Vivien Nicolas
9012fbd010 Use sans-serif for font fallback by default 2011-09-06 15:11:07 +02:00
notmasteryet
0278e94a40 Merge pull request #436 from vingtetun/master
Fix issue #434
2011-09-05 19:30:06 -07:00
Vivien Nicolas
f7ee90cc8c Fix review comments for #436 2011-09-06 02:28:06 +02:00
Kalervo Kujala
d4b8326496 Fix a bug and speed up graycs_getRgbBuffer.
An rgbBuffer was created which was three times as big as intended. It also
caused that the function was very slow when rendering cable.pdf. Which led
to a slow script warning dialog.

With this fix the function speeds up fifteen-fold in the firebug profile.
2011-09-06 00:11:24 +03:00
Kalervo Kujala
80304b6976 Fix a bug and speed up graycs_getRgbBuffer.
An rgbBuffer was created which was three times as big as intended. It also
caused that the function was very slow when rendering cable.pdf. Which led
to a slow script warning dialog.

With this fix the function speeds up ten-fold in the firebug profile.
2011-09-05 23:11:48 +03:00
Vivien Nicolas
83f930abd6 Add '^M' support in the ASCII85Decode filter and fix the fonts code to load the Type1 spec 2011-09-05 22:09:40 +02:00
Vivien Nicolas
a36436ac78 Remove the isDisplayable function and use inline code instead 2011-09-05 17:34:52 +02:00
Vivien Nicolas
d5dc405e80 Merge remote branch 'upstream/master' 2011-09-05 17:30:59 +02:00
Vivien Nicolas
9701f934ed Move all format 0 characters to the private area 2011-09-05 17:30:01 +02:00
notmasteryet
89440ebef9 Merge pull request #435 from vingtetun/master
Fix for #427 and nit of #422
2011-09-05 07:37:35 -07:00
Vivien Nicolas
b1a5ab6d0f Fix regression on i9.pdf 2011-09-05 14:35:03 +02:00
Kalervo Kujala
ef2f3cdc24 Fix some jslint warnings. 2011-09-04 14:37:30 +03:00
Kalervo Kujala
2b5ed9b0fc Address comments for xref bug. 2011-09-03 22:28:45 +03:00
Kalervo Kujala
5ab01e2cd0 Fix xref bug.
Use this.xref instead of xref in fetchDestinations function.
2011-09-03 21:41:50 +03:00
Kalervo Kujala
0f4b243752 Small corrections to pdf.js.
Also fix some lint errors.
2011-09-03 20:47:58 +03:00