Commit Graph

8336 Commits

Author SHA1 Message Date
Yury Delendik
27efe5608f Test case from #6019. 2015-11-03 09:03:08 -06:00
Jonas Jenwald
cbce05b893 Merge pull request #6587 from timvandermeij/view-history-memory
Move VIEW_HISTORY_MEMORY constant to `view_history.js`
2015-11-02 16:46:32 +01:00
Yury Delendik
fa46b73c47 Better spacing in text layer. 2015-11-02 08:54:15 -06:00
Tim van der Meij
55870788e5 Make the view history cache size configurable during initialization 2015-11-02 14:56:50 +01:00
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`.
2015-11-01 15:45:12 +01:00
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
2015-11-01 15:18:32 +01:00
Jonas Jenwald
034087bb40 Replace the linked test-case for issue 3879 with a reduced test-case
Re: issue 3879 and PR 3880.
2015-11-01 13:02:10 +01:00
Yury Delendik
bc33ae2fc4 Partially reverts #6161 - downgrade shell.js version
Due to 'node make web' firefox extension breakage.
2015-10-30 12:41:46 -05:00
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)
2015-10-30 11:54:04 -05:00
Yury Delendik
c2e70ea726 Merge pull request #6580 from yurydelendik/pr5051
Find match count (rebase of #5051)
2015-10-30 11:22:37 -05:00
Yury Delendik
b8b922196c Moves match counter from find UI to the controller. 2015-10-30 11:20:29 -05:00
Andy Parisi
17fe0b1470 Added find match counter 2015-10-30 10:21:26 -05:00
Yury Delendik
c27d3125bf Merge pull request #6161 from LilyBin/npm-versions
Clean up npm dependencies and add `license` property
2015-10-30 08:53:55 -05:00
Timothy Gu
3d3d8edf29 Clean up npm dependencies and add license property
underscore and moment were not used anywhere
2015-10-30 08:49:50 -05:00
Yury Delendik
15b00eacc2 Merge pull request #6445 from KamiHQ/fix-pages-rotation
Fix exception when rotate page without a document
2015-10-30 08:31:14 -05:00
Yury Delendik
b1515fdd10 Merge pull request #6374 from WilliamRClark/master
Update viewer.html for Internet Explorer Compatibility
2015-10-30 08:21:38 -05:00
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.
2015-10-30 08:19:19 -05:00
Tim van der Meij
1672c77395 Merge pull request #6576 from Snuffleupagus/issue-1293-reduced-test
Replace the linked test-case for issue 1293 with a reduced test-case
2015-10-29 23:03:10 +01:00
Brendan Dahl
b56b41514c Merge pull request #6578 from yurydelendik/issue6577
Ignore any pending data when worker is terminated.
2015-10-29 11:49:40 -07:00
Yury Delendik
8d15ecb14b Ignore any pending data when worker is terminated. 2015-10-29 13:06:22 -05:00
Yury Delendik
7e79ce49fd Fixing C++,PHP and Pascal presence in the repo 2015-10-29 13:03:51 -05:00
Jonas Jenwald
cf09f38340 Replace the linked test-case for issue 1293 with a reduced test-case
When I submitted PR 3576, I included a linked test-case. The reason was that I didn't know enough about the PDF format, in order to successfully create a reduced test-case.
Considering that the link points to a Dropbox, there's no guarantee that the PDF file will remain available, hence it seems worthwhile to replace the test-case.

*Note:* Since this is a `load` test, `makeref` won't be necessary.
2015-10-29 13:39:29 +01:00
Tim van der Meij
335aeb2e37 Merge pull request #6552 from yurydelendik/dpiscale
Better CSS scaling for deviceRixelRatio != 1.
2015-10-28 23:35:00 +01:00
Yury Delendik
7cb32759ed Better CSS scaling for deviceRixelRatio != 1. 2015-10-28 17:27:42 -05:00
Yury Delendik
d26ef21d52 Merge pull request #6568 from tonyjin/api-rangeChunkSize
[api-minor] Add an optional param to DocumentInitParameters for speci…
2015-10-28 16:52:52 -05:00
Yury Delendik
7a3963eff6 Merge pull request #6566 from Snuffleupagus/OperatorList_totalLength
Add a `totalLength` getter to `OperatorList`, since the `length` is zero after flushing
2015-10-28 16:49:17 -05:00
Tony Jin
ef667823dd [api-minor] Add an optional param to DocumentInitParameters for specifying the range request chunk size to use. Defaults to 2^16 = 65536. 2015-10-26 17:22:11 -07:00
Jonas Jenwald
1c66d4a106 Add a totalLength getter to OperatorList, since the length is zero after flushing
In the `RenderPageRequest` handler in `worker.js`, we attempt to print an `info` message containing the rendering time and the length of the operator list. The latter is currently broken (and has been for quite some time), since the `length` of an `OperatorList` is reset when flushing occurs.
This patch attempts to rectify this, by adding a getter which keeps track of the total length.
2015-10-26 18:12:14 +01:00
Tim van der Meij
aae82ec4c5 Merge pull request #6562 from Snuffleupagus/pr-5124-unit-test
Improved `get fingerprint` unit-tests (PR 5124)
2015-10-24 14:44:30 +02:00
Jonas Jenwald
25e55322c4 Improved get fingerprint unit-tests (PR 5124)
This patch adds a unit-test for the changes contained in PR 5124, and also improves the existing `get fingerprint` test slightly.
2015-10-24 14:18:36 +02:00
Yury Delendik
4afd51ade6 Merge pull request #6560 from Snuffleupagus/pr-6546-followup-TypeError_page_is_undefined
Prevent `TypeError: page is undefined` when the document has been destroyed (PR 6546 follow-up)
2015-10-23 16:28:04 -05:00
Jonas Jenwald
5bd95df427 Prevent TypeError: page is undefined when the document has been destroyed (PR 6546 follow-up)
*Follow-up to PR 6546.*

If rendering has already started when the document is destroyed, then `this.pageCache[data.pageIndex]` may already have been cleared when the `StartRenderingPage`/`RenderPageChunk` messages are recieved in `api.js`, which results in `TypeError`s being thrown.
2015-10-23 22:16:34 +02:00
Yury Delendik
5111422d89 Merge pull request #6558 from Snuffleupagus/issue-6151-test
Add a reduced test-case for issue 6151
2015-10-23 14:45:57 -05:00
Brendan Dahl
2a15695e2d Merge pull request #6555 from yurydelendik/v1.2
Update version number for minor API changes.
2015-10-23 11:12:38 -07:00
Yury Delendik
89c75cd158 Update version number for minor API changes. 2015-10-23 13:11:02 -05:00
Brendan Dahl
2a5616c2aa Merge pull request #6546 from yurydelendik/destroy
[api-minor] Adds controlled destruction of the worker.
2015-10-23 10:54:01 -07:00
Jonas Jenwald
ec04c4acb7 Add a reduced test-case for issue 6151
Re: issue 6151 and PR 6193.

*Note:* Since this is a `load` test, `makeref` won't be necessary.
2015-10-23 18:50:14 +02:00
Yury Delendik
b3a9a0d87a Merge pull request #6557 from yurydelendik/updatereason
Pushing update reason for gh-pages and bower.
2015-10-23 10:59:50 -05:00
Yury Delendik
2b5fde1259 Pushing update reason for gh-pages and bower.
e.g. mozilla/pdf.js@eabbfd78d1
2015-10-23 10:56:40 -05:00
Yury Delendik
eabbfd78d1 Merge pull request #6554 from Snuffleupagus/issue-4575-test
Add a reduced test-case for issue 4575
2015-10-23 09:20:11 -05:00
Yury Delendik
62afa9f695 Fixes PDFViewerApplication.open/close methods signature. 2015-10-23 09:06:32 -05:00
Yury Delendik
5135aa9bec Adds deprecation warning for the API calls. 2015-10-23 09:06:32 -05:00
Yury Delendik
58c3ea0820 Adds thread abort capabilities. 2015-10-23 09:06:32 -05:00
Yury Delendik
59c13b32aa Adds destroy method to the document loading task.
Also renames PDFPageProxy.destroy method to cleanup.
2015-10-23 08:57:14 -05:00
Jonas Jenwald
d3782ff8d4 Add a reduced test-case for issue 4575
Re: issue 4575 and PR 4581.
2015-10-23 15:15:06 +02:00
Yury Delendik
ef85685803 Merge pull request #6543 from Snuffleupagus/issue-6541
Prevent getOperatorList from failing to correctly parse OPS.paintXObject for TilingPatterns that are missing some /Resources entries (issue 6541)
2015-10-21 16:20:03 -04:00
Jonas Jenwald
487ba9065a Fail gracefully, and with a notification, if paintXObject is encountered in canvas.js
We should never actually try to execute `paintXObject` in canvas.js, but in some cases where we fail to parse the PDF file correctly it can happen. Currently this will potentially cause an entire page to fail to render, which seems suboptimal.
With this patch, we will instead continue rendering with a warning that things might not work correctly.
2015-10-21 21:30:59 +02:00
Jonas Jenwald
2e751199fb Prevent getOperatorList from failing to correctly parse OPS.paintXObject for TilingPatterns that are missing some /Resources entries (issue 6541)
Fixes 6541.
2015-10-21 21:30:56 +02:00
Yury Delendik
738daa0f79 Merge pull request #6550 from Rob--W/issue-6549-unknown-serialization
Ignore operators that are known to be unsupported
2015-10-21 10:20:57 -04:00
Rob Wu
50ff2d4c2a Ignore operators that are known to be unsupported
`operatorList.addOp` adds the arguments to the list which is then
passed as-is by postMessage to the main thread. But since we don't
parse these operations, they are raw PDF objects and may therefore
cause a serialization error.

This is a conservative patch, and only affects operators which are
known to be unsupported. We should ignore all unknown operators,
but I haven't really looked into the consequences of doing that.

Fixes #6549
2015-10-21 15:39:25 +02:00