Nicholas Nethercote
0685214a77
Don't create the RGB buffer for images that don't need resizing.
11 years ago
Yury Delendik
96fff4cc74
Refactors getTextContent return value
11 years ago
Yury Delendik
09f8f951c8
Extracts evaluator preprocessor and refactor text extraction
11 years ago
Nicholas Nethercote
c044652320
Remove unneeded srcOffset arguments from createRgbBuffer.
11 years ago
Nicholas Nethercote
3de5d6ad0c
Don't create the opacity buffer for images that lack a mask.
11 years ago
Nicholas Nethercote
4332c2fabe
Do createImageData/putImageData in chunks, to save memory.
11 years ago
Yury Delendik
754e000907
Fixes and refactors log functionality
11 years ago
terje.kristiansen
08737375f8
Added withCredentials parameter and passing it to xhr requests
11 years ago
Yury Delendik
7e75a665d2
Checks if subpixel-aa enabled before scaling the fonts
11 years ago
Yury Delendik
1991efe4f0
Fixes type3 glyph compilation for bitpacked mask
11 years ago
Nicholas Nethercote
3f533a1cb0
Use a more compact typed array to pass the image mask from the worker to the main thread.
11 years ago
Yury Delendik
a8c11ad1e5
Introduces disableObjectCreateURL
11 years ago
Jonas Jenwald
7c616502c2
Fix annotation border issue (bug 957034)
11 years ago
Yury Delendik
96eaa15578
Fixes fips regression from #4068
11 years ago
Yury Delendik
0131101275
Takes ascent/descent in account in the text layer
11 years ago
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
11 years ago
Yury Delendik
51b958dc2b
Adds glyph mapping for standard fonts
11 years ago
Brendan Dahl
2228343f77
Only trigger warning bar on certain unsupported features.
11 years ago
Yury Delendik
5973d40afe
Adjusts heuristic for disabling Symbol encoding
11 years ago
Kalervo Kujala
4c040dd955
calgray: fix getRgbBuffer problem
...
This fixes issue 3903.
11 years ago
Jonas Jenwald
e6c805490b
[JBIG2] Fix getting decodeParms when it's an array
12 years ago
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).
12 years ago
Gregory Jordan
1838ec0427
Add a singlefile target to build one concatenated file
12 years ago
Brendan Dahl
53549411b4
Add verbosity as an api setting.
12 years ago
Jonas Jenwald
b1c5ef9ccc
Fix loading of fonts that are not referenced by an object identifier
12 years ago
Michał Gołębiowski
ba2bbf0677
Correct a typo in `getJavaScript` function expression name.
12 years ago
Hengjie
b96811df25
Fix Blob creation in Safari 7.0.
...
It should be !== ‘undefined’ to avoid matching everything that Blob can be a type of
12 years ago
Yury Delendik
90956ce3e0
Takes chunk id == 0 into account during grouping
12 years ago
Yury Delendik
98ebf57144
Index objects if Prev xref was not found
12 years ago
Yury Delendik
4966bf3fc8
Limits U and O entries size
12 years ago
Brendan Dahl
a4f329aa38
Combine if/else block with switch for getOperatorList.
12 years ago
Brendan Dahl
7563a9dfa0
Update docs on the workerSrc setting.
12 years ago
Brendan Dahl
0385131a9a
Leave initial request open until the viewer is ready to switch to range requests.
12 years ago
Yury Delendik
e712c4136a
Cleaning up fonts when viewer is idle for some time
12 years ago
Yury Delendik
2b63cd7e62
Allocates bigger hashData buffer
12 years ago
Benjamin Flesch
d0ae79c994
Fixed Typo
12 years ago
Jonas Jenwald
564ae6e4f7
Prevent updating the current transformation matrix when the stateStack is empty
12 years ago
Yury Delendik
d72c94f4a3
Comment fix: shedule -> schedule
12 years ago
Yury Delendik
c8af2565f1
Uses blob URL instead of data when possible
12 years ago
Yury Delendik
4ce6cb8b0f
Uses postMessage transfers
12 years ago
Yury Delendik
9a633f26a0
Fixes gidStart for CID fonts
12 years ago
Brendan Dahl
c2d65fc4ab
Don't traverse all pages to get a single page.
12 years ago
Brendan Dahl
3ac89aacd2
Remove slow commands check.
12 years ago
Yury Delendik
82a9a13e5f
Fixes glyphs with invalid flags
12 years ago
Brendan Dahl
f4942b11f8
Reduce the memory usage of the operator list.
12 years ago
Yury Delendik
57e2a667ee
Fixes cvt table length; removes cvt when hints invalid
12 years ago
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
12 years ago
Jonas Jenwald
4ae3802484
Fix undefined group bounding box
12 years ago
Yury Delendik
175341cb0d
Resizes loca table when needed
12 years ago
Yury Delendik
cf55d69c38
Fixes invalid maxZones value
12 years ago