Tim van der Meij
d8ddde26b7
Merge pull request #6622 from yurydelendik/rm-mc-tests
...
Remove mozcentral test files.
10 years ago
Yury Delendik
4c9f6741ae
Remove mozcentral test files.
10 years ago
Yury Delendik
248e211a20
Merge pull request #6600 from Rob--W/test-server-improved
...
Improve reliability of the test server
10 years ago
Rob Wu
b0ff49e456
Improve reliability of the test server
...
- replace // with /
(otherwise http://localhost:8888// links to e.g. http://src/ instead
of http://localhost:8888/src ).
- Solve XSS issue (file names should be sanitized, not output as-is).
- Prevent server from crashing if there is a stat error (e.g. permission
error or file not found (e.g. broken symlink)).
10 years ago
Yury Delendik
a4ca9986e1
Merge pull request #6318 from Snuffleupagus/bug-1191279
...
For documents with different page sizes, ensure that the correct page becomes visible on load when e.g. the 'page' hash parameter was provided (bug 1191279, issue 6393)
10 years ago
Yury Delendik
3674f0d7c7
Merge pull request #6620 from Rob--W/node-test-random-port
...
Use random port in test webserver
10 years ago
Rob Wu
ff8c334207
Use random port in test webserver
10 years ago
Yury Delendik
3c94ba8a1c
Merge pull request #6617 from Snuffleupagus/issue-6615
...
Correctly handle /FitH destinations with `null` as the parameter
10 years ago
Jonas Jenwald
e629882f2a
Correctly handle /FitH destinations with `null` as the parameter
...
According to http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#G11.2095870 , the vertical position shouldn't change if the parameter is `null`.
Fixes 6615.
10 years ago
Yury Delendik
3c6df26704
Merge pull request #6608 from Rob--W/improved-error-message-local-file
...
Improve error message for non-existent local files
10 years ago
Yury Delendik
5b2015b04b
Merge pull request #6607 from Snuffleupagus/TrueType-without-cmap
...
Prevent `readCmapTable` from failing if the `cmap` is missing in TrueType fonts
10 years ago
Rob Wu
c604cc22d1
Improve error message for non-existent local files
...
I received multiple reports about the following cryptic error in the
Chrome extension when the user tried to open a local file:
> PDF.js v1.1.527 (build: 2096a2a
)
> Message: Cannot read property 'Symbol(Symbol.iterator)' of null
This error most likely originated from core/stream.js:
function Stream(arrayBuffer, start, length, dict) {
this.bytes = (arrayBuffer instanceof Uint8Array ?
arrayBuffer : new Uint8Array(arrayBuffer));
^^^^^^^^^^^
`arrayBuffer` is `null`, and that in turn is caused by the fact that
for non-existing files, there is no data. I've applied two fixes:
1. Never call onDone with a void buffer, but call the error handler
instead.
2. Show a sensible error message for local files with status = 0.
10 years ago
Jonas Jenwald
ff64ef0243
Prevent `readCmapTable` from failing if the `cmap` is missing in TrueType fonts
...
Fixes http://arrow.dit.ie/cgi/viewcontent.cgi?article=1000&context=aaschadpoth#page=3 .
10 years ago
Tim van der Meij
1280b7b76b
Merge pull request #6604 from Snuffleupagus/issue-4665-reduced-test
...
Add a reduced `text` test-case for issue 4665
10 years ago
Tim van der Meij
07067cf078
Merge pull request #6602 from vivin/adding-to-authors
...
Adding to authors
10 years ago
Jonas Jenwald
66c17a69ae
Add a reduced `text` test-case for issue 4665
...
Re: issue 4665 and PR 6601.
Since we currently don't have a good `text` test-case that fails without the above PR, this patch adds a reduced one.
10 years ago
Yury Delendik
bb29e13307
Merge pull request #6601 from yurydelendik/ascent
...
Fixes incorrect PDF file font metrics.
10 years ago
Vivin Paliath
d20bc4675f
Adding to authors
10 years ago
Brendan Dahl
9a830a7b62
Merge pull request #6590 from yurydelendik/combinechars
...
Combines standalone chars into text groups.
10 years ago
Yury Delendik
cc5bc18728
Fixes incorrect PDF file font metrics.
10 years ago
Yury Delendik
4ee0bade82
Test for text layer issue 1045.
10 years ago
Yury Delendik
fa423cfab0
Refactors fake space heuristics for speed.
10 years ago
Jonas Jenwald
1e0bd07d8d
Merge pull request #6595 from yurydelendik/currentscript
...
Uses document.currentScript for pdf.worker.js path.
10 years ago
Yury Delendik
376f8bde14
Combines standalone divs into text groups.
10 years ago
Yury Delendik
601d29b14e
Fixes all examples to require workerSrc to be set.
10 years ago
Yury Delendik
28d340679a
Uses document.currentScript for pdf.worker.js path.
10 years ago
Yury Delendik
9e66625092
Merge pull request #6597 from Snuffleupagus/issue-6596
...
Ensure that the `textLayer` has the same dimensions as the `canvasWrapper` (issue 6596)
10 years ago
Jonas Jenwald
dbc611ac9d
Ensure that the `textLayer` has the same dimensions as the `canvasWrapper` (issue 6596)
...
This is a quick fix to get `scrollIntoView` working again for search results, but we really ought to re-write that function since it seems way too brittle.
Fixes 6596.
10 years ago
Jonas Jenwald
8079bdddb9
Merge pull request #6591 from yurydelendik/select
...
Non/less flashing text layer during selection.
10 years ago
Yury Delendik
b8ad68af25
Non/less flashing text layer during selection.
10 years ago
Jonas Jenwald
c05416f81c
Merge pull request #6586 from Snuffleupagus/new-indeterminate-loading-bar
...
Create a new indeterminate loading bar animation for the default viewer
10 years ago
Jonas Jenwald
0f50147ba8
Create a new indeterminate loading bar animation for the default viewer
...
This patch contains an alternative solution (see the referenced PRs in 4718), in order for the indeterminate loading bar to have a consistent speed regardless of width.
Fixes 4718.
10 years ago
Yury Delendik
7e8dacf57b
Merge pull request #6588 from yurydelendik/spacing
...
Better spacing in text layer.
10 years ago
Yury Delendik
27efe5608f
Test case from #6019 .
10 years ago
Jonas Jenwald
cbce05b893
Merge pull request #6587 from timvandermeij/view-history-memory
...
Move VIEW_HISTORY_MEMORY constant to `view_history.js`
10 years ago
Yury Delendik
fa46b73c47
Better spacing in text layer.
10 years ago
Tim van der Meij
55870788e5
Make the view history cache size configurable during initialization
10 years ago
Tim van der Meij
7681def0de
Move VIEW_HISTORY_MEMORY constant to `view_history.js`
...
Currently this constant is present in `viewer.js`, but it is not used there at all. Instead, it is used in `view_history.js` where we have a global for it. We might as well move the constant to `view_history.js` as that is the only place where it is used, thereby removing a global and an unused constant from `viewer.js`.
10 years ago
Tim van der Meij
ad626610b7
Merge pull request #6585 from Snuffleupagus/issue-3879-reduced-test
...
Replace the linked test-case for issue 3879 with a reduced test-case
10 years ago
Jonas Jenwald
034087bb40
Replace the linked test-case for issue 3879 with a reduced test-case
...
Re: issue 3879 and PR 3880.
10 years ago
Yury Delendik
bc33ae2fc4
Partially reverts #6161 - downgrade shell.js version
...
Due to 'node make web' firefox extension breakage.
10 years ago
Yury Delendik
c8c211602b
Merge pull request #6073 from Snuffleupagus/bug-1170063
...
[Firefox] Handle the user modifying the "mousewheel.with_meta.action" and "mousewheel.with_control.action" prefs (bug 1170063)
10 years ago
Yury Delendik
c2e70ea726
Merge pull request #6580 from yurydelendik/pr5051
...
Find match count (rebase of #5051 )
10 years ago
Yury Delendik
b8b922196c
Moves match counter from find UI to the controller.
10 years ago
Andy Parisi
17fe0b1470
Added find match counter
10 years ago
Yury Delendik
c27d3125bf
Merge pull request #6161 from LilyBin/npm-versions
...
Clean up npm dependencies and add `license` property
10 years ago
Timothy Gu
3d3d8edf29
Clean up npm dependencies and add `license` property
...
underscore and moment were not used anywhere
10 years ago
Yury Delendik
15b00eacc2
Merge pull request #6445 from KamiHQ/fix-pages-rotation
...
Fix exception when rotate page without a document
10 years ago
Yury Delendik
b1515fdd10
Merge pull request #6374 from WilliamRClark/master
...
Update viewer.html for Internet Explorer Compatibility
10 years ago
WilliamRClark
59104a2863
Update viewer.html for Internet Explorer Compatibility
...
If your Internet Explorer 11 default compatibility settings are set to "I.E 7 Compatibility", the PDF plugin will not load. This fix is the same one used by AngularJS to force the browser to use HTML5 mode.
10 years ago