Yury Delendik
a583c319a1
Implements shading types 4-7
11 years ago
Yury Delendik
e9327050c3
Basic function.js split
11 years ago
Yury Delendik
18515b8668
Using blob URL for open file
11 years ago
Yury Delendik
bf432a37bb
Refactors shared/pattern.js into core/ and display/
11 years ago
Rob Wu
2779bab03e
Use [].forEach instead of for-..-in in evaluator
...
To prevent errors whenever the array's prototype is extended.
(cmap is an array)
11 years ago
Yury Delendik
4054b0c385
SMask emulation
11 years ago
Jonas Jenwald
575bdd8863
Fix loading of fonts with invalid encoding name entry (bug 859204 and 878112)
11 years ago
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
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
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
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
12 years ago
Yury Delendik
51b958dc2b
Adds glyph mapping for standard fonts
12 years ago
Brendan Dahl
2228343f77
Only trigger warning bar on certain unsupported features.
12 years ago
Yury Delendik
5973d40afe
Adjusts heuristic for disabling Symbol encoding
12 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
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
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
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
Jonas Jenwald
564ae6e4f7
Prevent updating the current transformation matrix when the stateStack is empty
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
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
Yury Delendik
175341cb0d
Resizes loca table when needed
12 years ago
Yury Delendik
cf55d69c38
Fixes invalid maxZones value
12 years ago
Yury Delendik
93076ced03
Ignoring glyphs without points
12 years ago
Yury Delendik
bbda42110b
Skipping empty font tables
12 years ago
Yury Delendik
bb2570c9c1
Removes duplicate entries after reading cmap table
12 years ago
Yury Delendik
cd44093891
Workaround for some bad Type1 data
12 years ago
Yury Delendik
95d9107d8b
Fixes reading Type1 FontBBox data for usWin values
12 years ago
Yury Delendik
104d89856d
Renames Symbol encoding name.
12 years ago