Yury Delendik
556820f22f
Merge pull request #4077 from brendandahl/form-fallback
...
Show a different warning for PDF’s with forms.
11 years ago
Yury Delendik
ec01f6734f
Merge pull request #4087 from brendandahl/analyzer
...
Label ref test analyzer images.
11 years ago
Rob Wu
838802c2d3
Explain meaning of elements in secondary_toolbar
11 years ago
Brendan Dahl
fd139324ef
Label ref test analyzer images.
11 years ago
Brendan Dahl
5d080a03bb
Show a different warning for PDF’s with forms.
11 years ago
Rob Wu
f2d13a2e2c
Test if toggleHandTool is null before using it
...
Do not break the viewer if the buttons are not
available for some reason.
11 years ago
Yury Delendik
4d01ff4079
Merge pull request #4062 from kkujala/calgray
...
calgray: fix getRgbBuffer problem
11 years ago
Brendan Dahl
2e7c71c75e
Merge pull request #4011 from Rob--W/issue-3885
...
Set eof to true at the end of a FlateStream
11 years ago
Yury Delendik
378c49c2d8
Avoiding double draw() calls
11 years ago
Brendan Dahl
c1c15ac635
Merge pull request #4060 from yurydelendik/promises
...
Introduces LegacyPromise; polyfills DOM Promise
11 years ago
Jonas Jenwald
534f8216be
Merge pull request #4075 from Fitoschido/patch-1
...
Update Spanish translation
11 years ago
Adolfo Jayme Barrientos
87c3e38edf
Update Spanish translation
...
Sync with latest changes and tweak a string for clarity
11 years ago
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
11 years ago
Yury Delendik
122cd150d4
Merge pull request #4048 from brendandahl/unsupported-features
...
Only trigger warning bar on certain unsupported features.
11 years ago
Yury Delendik
51b958dc2b
Adds glyph mapping for standard fonts
11 years ago
Tim van der Meij
149057cf8f
Merge pull request #4067 from fkaelberer/PNGs_recompressed
...
Recompressed PNG assets
11 years ago
Brendan Dahl
2228343f77
Only trigger warning bar on certain unsupported features.
11 years ago
Brendan Dahl
1bada35388
Merge pull request #4001 from jryans/clean-test-pdfs
...
Clean up test PDF references
11 years ago
Yury Delendik
5973d40afe
Adjusts heuristic for disabling Symbol encoding
11 years ago
Yury Delendik
c389451a5b
Merge pull request #4045 from brendandahl/verbosity
...
Add verbosity as an api setting.
11 years ago
fkaelberer
1b35bf6c5e
Recompressed PNG assets
11 years ago
Yury Delendik
465ae0160e
Merge pull request #4058 from gjuggler/singlefile-fix
...
Fix singlefile build target
11 years ago
Brendan Dahl
d005353115
Merge pull request #4055 from Snuffleupagus/fix-thumbnail-rotation-regression
...
Fix thumbnail rotation regression
11 years ago
Brendan Dahl
534939dc5c
Merge pull request #4053 from Snuffleupagus/rename-Settings
...
Rename 'Settings' to 'ViewHistory'
11 years ago
Yury Delendik
02671decf2
Merge pull request #4066 from Rob--W/crx-pageaction-html-typo
...
Added missing <html> tag to page action
11 years ago
Yury Delendik
85281d3afc
Merge pull request #4059 from glasserc/add-conkeror
...
add support for Conkeror
11 years ago
Rob Wu
ac8b8079a4
Added missing <html> tag to page action
11 years ago
Yury Delendik
83d848084d
Merge pull request #4065 from Rob--W/crx-pageaction-html-typo
...
Remove superfluous <!DOCTYPE html> from page action
11 years ago
Rob Wu
e20bc529c8
Remove superfluos <!DOCTYPE html> from page action
...
Fixes #4064
11 years ago
Kalervo Kujala
4c040dd955
calgray: fix getRgbBuffer problem
...
This fixes issue 3903.
11 years ago
Ethan Glasser-Camp
9b887f5bf3
add support for Conkeror
12 years ago
Gregory Jordan
04e2235ce7
Fix singlefile build target
12 years ago
Jonas Jenwald
3d523000b9
Fix thumbnail rotation regression
12 years ago
Jonas Jenwald
4bd9767112
Rename 'Settings' to 'ViewHistory'
12 years ago
Jonas Jenwald
1de3fae840
Merge pull request #4050 from Snuffleupagus/isViewFinished-typo
...
Fix typo in 'isViewFinished' function name
12 years ago
Jonas Jenwald
31ec36d64f
Fix typo in 'isViewFinished' function name
12 years ago
Yury Delendik
cfb4e95521
Merge pull request #4025 from gjuggler/singlefile
...
Add singlefile build target
12 years ago
Yury Delendik
c0088f50bc
Merge pull request #4003 from Snuffleupagus/issue-3999
...
[JBIG2] Fix getting decodeParms when it's an array
12 years ago
Jonas Jenwald
e6c805490b
[JBIG2] Fix getting decodeParms when it's an array
12 years ago
Rob Wu
4ff1d45f16
Add pdf from issue 3885 to tests
...
Source: https://www.dropbox.com/s/ooqk82fq0gr5p6f/test-min-notext-opt.pdf
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
Brendan Dahl
f2b717c637
Merge pull request #4043 from Snuffleupagus/set-page-cleanup
...
Small cleanup in 'set page'
12 years ago
Brendan Dahl
81cb24bff5
Merge pull request #3997 from Snuffleupagus/bug-946506
...
Fix loading of fonts that are not referenced by an object identifier
12 years ago
Jonas Jenwald
e4f799a09c
Small cleanup in 'set page'
12 years ago
Brendan Dahl
58407cfa94
Merge pull request #4006 from Rob--W/crx-url-in-pageaction
...
[CRX] Add a pageAction to omnibox showing PDF URL
12 years ago
Brendan Dahl
738ae57960
Merge pull request #3967 from Snuffleupagus/scrollIntoView-horizontal
...
Add support for horizontal scrolling in 'scrollIntoView' in ui_utils.js
12 years ago
Jonas Jenwald
183893adbf
Merge pull request #4040 from EE/api-typo
...
Correct a typo in `getJavaScript` function expression name.
12 years ago
J. Ryan Stinnett
ea0ca0f810
Clean up test PDF references
12 years ago