Yury Delendik
09f8f951c8
Extracts evaluator preprocessor and refactor text extraction
2014-01-17 07:16:52 -06:00
Nicholas Nethercote
c044652320
Remove unneeded srcOffset arguments from createRgbBuffer.
2014-01-16 20:15:37 -08:00
Nicholas Nethercote
3de5d6ad0c
Don't create the opacity buffer for images that lack a mask.
2014-01-16 20:15:37 -08:00
Nicholas Nethercote
4332c2fabe
Do createImageData/putImageData in chunks, to save memory.
2014-01-16 17:20:20 -08:00
Brendan Dahl
455265474a
Merge pull request #4093 from yurydelendik/issue4068
...
Fixes fips regression from #4068
2014-01-16 13:45:10 -08:00
Brendan Dahl
ff66c23e6e
Merge pull request #4089 from yurydelendik/issue3725
...
Takes ascent/descent in account in the text layer
2014-01-16 13:12:04 -08:00
Brendan Dahl
c57fdcceed
Merge pull request #4125 from yurydelendik/issue4111
...
Fixes and refactors log functionality
2014-01-16 10:54:09 -08:00
Brendan Dahl
3b829f4a45
Merge pull request #4103 from yurydelendik/issue3977
...
Introduces disableObjectCreateURL
2014-01-16 10:51:22 -08:00
Yury Delendik
754e000907
Fixes and refactors log functionality
2014-01-15 15:28:31 -06:00
Yury Delendik
ab4f27b272
Merge pull request #4124 from tkristiansen/with-credentials
...
Allow setting xhr.withCredentials
2014-01-15 11:42:41 -08:00
terje.kristiansen
08737375f8
Added withCredentials parameter and passing it to xhr requests
2014-01-15 10:12:40 +01:00
Yury Delendik
7e75a665d2
Checks if subpixel-aa enabled before scaling the fonts
2014-01-14 17:31:23 -06:00
Yury Delendik
1991efe4f0
Fixes type3 glyph compilation for bitpacked mask
2014-01-13 21:21:03 -06:00
Nicholas Nethercote
3f533a1cb0
Use a more compact typed array to pass the image mask from the worker to the main thread.
2014-01-13 20:09:05 -06:00
Yury Delendik
a8c11ad1e5
Introduces disableObjectCreateURL
2014-01-10 16:30:41 -06:00
Jonas Jenwald
7c616502c2
Fix annotation border issue (bug 957034)
2014-01-09 13:44:21 +01:00
Yury Delendik
96eaa15578
Fixes fips regression from #4068
2014-01-08 16:33:22 -06:00
Brendan Dahl
508b00a34f
Merge pull request #4071 from yurydelendik/bug921760
...
Adds glyph mapping for standard fonts
2014-01-08 12:36:54 -08:00
Yury Delendik
0131101275
Takes ascent/descent in account in the text layer
2014-01-08 13:50:52 -06:00
Brendan Dahl
bac4133f21
Merge pull request #4068 from yurydelendik/bug864847
...
Adjusts heuristic for disabling Symbol encoding
2014-01-08 10:48:18 -08:00
Yury Delendik
4d01ff4079
Merge pull request #4062 from kkujala/calgray
...
calgray: fix getRgbBuffer problem
2014-01-07 10:54:09 -08:00
Brendan Dahl
2e7c71c75e
Merge pull request #4011 from Rob--W/issue-3885
...
Set eof to true at the end of a FlateStream
2014-01-07 10:52:37 -08:00
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
2014-01-03 18:17:05 -06:00
Yury Delendik
51b958dc2b
Adds glyph mapping for standard fonts
2014-01-03 14:17:50 -06:00
Brendan Dahl
2228343f77
Only trigger warning bar on certain unsupported features.
2014-01-03 09:34:13 -08:00
Yury Delendik
5973d40afe
Adjusts heuristic for disabling Symbol encoding
2014-01-02 18:44:11 -06:00
Yury Delendik
c389451a5b
Merge pull request #4045 from brendandahl/verbosity
...
Add verbosity as an api setting.
2014-01-02 12:25:00 -08:00
Kalervo Kujala
4c040dd955
calgray: fix getRgbBuffer problem
...
This fixes issue 3903.
2014-01-01 23:49:03 +02:00
Yury Delendik
cfb4e95521
Merge pull request #4025 from gjuggler/singlefile
...
Add singlefile build target
2013-12-20 05:44:40 -08:00
Jonas Jenwald
e6c805490b
[JBIG2] Fix getting decodeParms when it's an array
2013-12-19 20:23:58 +01:00
Rob Wu
43847d7ff8
Set eof to true at the end of a FlateStream
...
At the initialization of `Lexer_getObj` (in `parser.js`), there's a loop
that skips whitespace and breaks out whenever EOF is encountered.
(https://github.com/mozilla/pdf.js/blob/88ec2bd1a/src/core/parser.js#L586-L599 )
Whenever the current character is not a whitespace character,
`ch = this.nextChar();` is used to find the next character
(using `return this.currentChar = this.stream.getByte())`).
The aforementioned `getByte` method retrieves the next byte using
(https://github.com/mozilla/pdf.js/blob/88ec2bd1a/src/core/stream.js#L122-L128 )
var pos = this.pos;
while (this.bufferLength <= pos) {
if (this.eof)
return -1;
this.readBlock();
}
return this.buffer[this.pos++];
This piece of code relies on this.eof to detect whether the last character
has been read. When the stream is a `FlateStream`, and the end of the stream
has been reached, then **`this.eof` is not set to `true`**, because this check
is done inside a loop that does not occur when the read block size is zero:
(https://github.com/mozilla/pdf.js/blob/88ec2bd1ac/src/core/stream.js#L511-L517 )
for (var n = bufferLength; n < end; ++n) {
if (typeof (b = bytes[bytesPos++]) == 'undefined') {
this.eof = true;
break;
}
buffer[n] = b;
}
This commit fixes the issue by setting this.eof to true whenever the loop is not
going to run (i.e. when bufferLength === end, i.e. blockLen === 0).
2013-12-19 18:37:39 +01:00
Gregory Jordan
1838ec0427
Add a singlefile target to build one concatenated file
2013-12-19 08:18:47 -07:00
Brendan Dahl
53549411b4
Add verbosity as an api setting.
2013-12-18 13:39:03 -08:00
Brendan Dahl
81cb24bff5
Merge pull request #3997 from Snuffleupagus/bug-946506
...
Fix loading of fonts that are not referenced by an object identifier
2013-12-18 09:49:14 -08:00
Jonas Jenwald
b1c5ef9ccc
Fix loading of fonts that are not referenced by an object identifier
2013-12-17 00:19:31 +01:00
Michał Gołębiowski
ba2bbf0677
Correct a typo in getJavaScript
function expression name.
2013-12-16 21:40:43 +01:00
Hengjie
b96811df25
Fix Blob creation in Safari 7.0.
...
It should be !== ‘undefined’ to avoid matching everything that Blob can be a type of
2013-12-06 02:10:41 +13:00
Brendan Dahl
2af3e25651
Merge pull request #3954 from yurydelendik/invalid-start
...
Index objects if Prev xref was not found
2013-11-25 10:12:43 -08:00
Brendan Dahl
1c0ed17d8f
Merge pull request #3964 from yurydelendik/issue-3962
...
Fixes chunks grouping
2013-11-25 09:28:25 -08:00
Yury Delendik
90956ce3e0
Takes chunk id == 0 into account during grouping
2013-11-23 12:04:22 -06:00
Yury Delendik
98ebf57144
Index objects if Prev xref was not found
2013-11-22 08:49:36 -06:00
Yury Delendik
419e2e15e5
Merge pull request #3940 from brendandahl/operator-cleanup
...
Combine if/else block with switch for getOperatorList.
2013-11-22 06:14:57 -08:00
Yury Delendik
4966bf3fc8
Limits U and O entries size
2013-11-21 14:49:39 -06:00
Yury Delendik
124eb30e8d
Merge pull request #3936 from brendandahl/initial-data
...
Leave initial request open until the viewer is ready to switch to range requests.
2013-11-21 06:22:24 -08:00
Brendan Dahl
a4f329aa38
Combine if/else block with switch for getOperatorList.
2013-11-18 16:50:58 -08:00
Brendan Dahl
7563a9dfa0
Update docs on the workerSrc setting.
2013-11-18 14:37:01 -08:00
Brendan Dahl
29ee96cc67
Merge pull request #3927 from Snuffleupagus/issue-3925
...
Prevent updating the current transformation matrix when the stateStack is empty
2013-11-18 14:04:56 -08:00
Brendan Dahl
ff64b50582
Merge pull request #3931 from yurydelendik/bug900822
...
Allocates bigger hashData buffer
2013-11-18 13:09:40 -08:00
Brendan Dahl
3132c9e7e9
Merge pull request #3911 from yurydelendik/mem-redux2
...
Cleaning up fonts when viewer is idle for some time
2013-11-18 13:01:23 -08:00
Brendan Dahl
0385131a9a
Leave initial request open until the viewer is ready to switch to range requests.
2013-11-18 11:17:26 -08:00
Yury Delendik
e712c4136a
Cleaning up fonts when viewer is idle for some time
2013-11-18 13:01:54 -06:00
Yury Delendik
2b63cd7e62
Allocates bigger hashData buffer
2013-11-18 07:48:06 -06:00
Benjamin Flesch
d0ae79c994
Fixed Typo
2013-11-18 11:58:38 +01:00
Jonas Jenwald
564ae6e4f7
Prevent updating the current transformation matrix when the stateStack is empty
2013-11-17 01:54:14 +01:00
Brendan Dahl
1f7bfc8cc7
Merge pull request #3904 from yurydelendik/mem-redux
...
Reduces amount of memory allocated during worker operations
2013-11-15 11:44:40 -08:00
Yury Delendik
d72c94f4a3
Comment fix: shedule -> schedule
2013-11-14 15:45:02 -08:00
Yury Delendik
b70def015f
Merge pull request #3916 from brendandahl/remove-slow-commands
...
Remove slow commands check.
2013-11-14 15:43:09 -08:00
Yury Delendik
c8af2565f1
Uses blob URL instead of data when possible
2013-11-14 15:21:42 -08:00
Yury Delendik
4ce6cb8b0f
Uses postMessage transfers
2013-11-14 15:21:42 -08:00
Yury Delendik
011ed72383
Merge pull request #3917 from yurydelendik/issue-3857
...
Fixes gidStart for CID fonts
2013-11-14 10:45:32 -08:00
Brendan Dahl
7bdee4069c
Merge pull request #3848 from brendandahl/page-refs
...
Don't traverse all pages to get a single page.
2013-11-13 17:02:11 -08:00
Yury Delendik
9a633f26a0
Fixes gidStart for CID fonts
2013-11-13 18:27:52 -06:00
Brendan Dahl
c2d65fc4ab
Don't traverse all pages to get a single page.
2013-11-13 15:27:46 -08:00
Tim van der Meij
c320a0c2a5
Merge pull request #3887 from yurydelendik/bug903856
...
Fixing glyphs with invalid flags
2013-11-13 14:11:24 -08:00
Brendan Dahl
3ac89aacd2
Remove slow commands check.
2013-11-13 13:41:25 -08:00
Yury Delendik
82a9a13e5f
Fixes glyphs with invalid flags
2013-11-13 13:45:59 -06:00
Brendan Dahl
f4942b11f8
Reduce the memory usage of the operator list.
2013-11-13 11:43:38 -08:00
Brendan Dahl
bd6871a1cd
Merge pull request #3884 from yurydelendik/bug868745
...
Resizes loca table when needed
2013-11-11 14:59:18 -08:00
Brendan Dahl
558b722757
Merge pull request #3883 from yurydelendik/bug904941
...
Fixes invalid maxZones value
2013-11-11 09:57:38 -08:00
Tim van der Meij
6be8a2bd83
Merge pull request #3882 from yurydelendik/issue3438
...
Ignoring glyphs without points
2013-11-08 14:21:17 -08:00
Yury Delendik
57e2a667ee
Fixes cvt table length; removes cvt when hints invalid
2013-11-08 11:38:36 -06:00
Yury Delendik
d4167b62c8
Merge pull request #3890 from sriram-dev/3205-word-spacing
...
correct word spacing
2013-11-08 09:18:00 -08:00
Brendan Dahl
e076eeb5bd
Merge pull request #3877 from yurydelendik/issue1171
...
Skipping empty font tables
2013-11-08 09:12:04 -08:00
Sriram
8dad6d6e8a
Fix word spacing in Type 0 fonts
...
Fix word spacing in Type 0 font
correct word spacing
correct word spacing in type 0 font
fix word spacing
2013-11-08 20:48:30 +05:30
Brendan Dahl
18d8557abd
Merge pull request #3875 from yurydelendik/issue3025
...
Removes duplicate entries after reading cmap table
2013-11-07 12:29:25 -08:00
Brendan Dahl
90fb92d1fc
Merge pull request #3869 from yurydelendik/symbolenc
...
Renames Symbol encoding name.
2013-11-06 11:15:08 -08:00
Brendan Dahl
c8e021dfa6
Merge pull request #3867 from yurydelendik/pfb
...
Workaround for some bad Type1 data
2013-11-06 11:14:42 -08:00
Jonas Jenwald
4ae3802484
Fix undefined group bounding box
2013-11-04 18:16:33 +01:00
Yury Delendik
175341cb0d
Resizes loca table when needed
2013-11-03 07:29:29 -06:00
Yury Delendik
cf55d69c38
Fixes invalid maxZones value
2013-11-02 18:16:24 -05:00
Yury Delendik
93076ced03
Ignoring glyphs without points
2013-11-02 17:07:13 -05:00
Yury Delendik
bbda42110b
Skipping empty font tables
2013-11-01 19:05:17 -05:00
Yury Delendik
bb2570c9c1
Removes duplicate entries after reading cmap table
2013-11-01 16:30:28 -05:00
Yury Delendik
cd44093891
Workaround for some bad Type1 data
2013-11-01 13:58:33 -05:00
Yury Delendik
95d9107d8b
Fixes reading Type1 FontBBox data for usWin values
2013-11-01 11:33:30 -05:00
Brendan Dahl
b34c6a4e02
Merge pull request #3861 from yurydelendik/pc-undef
...
Avoiding 'pc is undefined' failures
2013-10-31 16:23:35 -07:00
Yury Delendik
104d89856d
Renames Symbol encoding name.
2013-10-31 10:33:23 -05:00
Brendan Dahl
f7b2b2e1f2
Merge pull request #3760 from jribbens/patch-1
...
Fix bug in api.js whereby fake workers didn't load the worker code
2013-10-30 10:47:38 -07:00
Brendan Dahl
f72fad9a1a
Merge pull request #3744 from Snuffleupagus/enable-www-links
...
Enable links beginning with 'www.' even if no protocol is specified
2013-10-30 10:32:22 -07:00
Yury Delendik
83e17c2953
Avoiding 'pc is undefined' failures
2013-10-30 11:14:13 -05:00
Yury Delendik
19485c34c8
Merge pull request #3798 from brendandahl/intersect-bbox
...
Intersect group bounding box with the current canvas dimensions.
2013-10-25 13:42:56 -07:00
Brendan Dahl
d86c7e3ebf
Merge pull request #3577 from kkujala/calgray
...
Implement initial CalGray support
2013-10-16 14:00:41 -07:00
Brendan Dahl
29269748c3
Merge pull request #3554 from fkaelberer/FasterJPXdecoding
...
Speed up JPX decoding on Firefox
2013-10-16 11:37:47 -07:00
Tim van der Meij
4fe1e41c35
Minor nit fixes for api.js
2013-10-16 12:07:27 +02:00
fkaelberer
f6841d1720
extract code to own method for faster JPX decoding
2013-10-16 09:47:03 +02:00
Jonas Jenwald
fb52144cfb
Enable links beginning with 'www.' even if no protocol is specified
2013-10-16 00:12:23 +02:00
Brendan Dahl
7ebec6c5a4
Add missing jsdocs for PDFJS globals.
2013-10-15 13:41:49 -07:00
Kalervo Kujala
a5bf02573d
Implement initial CalGray support
...
Gamma and Whitepoint are supported in this patch for CalGray.
Blackpoint is not supported.
2013-10-13 19:55:42 +03:00
Tim van der Meij
b9bceb4c4b
Merge pull request #3764 from saebekassebil/fingerprint
...
Simplify get fingerprint() method
2013-10-11 11:55:37 -07:00
Brendan Dahl
29b89f1f1e
Intersect group bounding box with the current canvas dimensions.
2013-10-10 12:41:11 -07:00