Commit Graph

5767 Commits

Author SHA1 Message Date
Haebaru
4dcc7873df Update ja locale 2013-09-16 15:43:25 +09:00
Tim van der Meij
9d6ec2ea6f Revert language string changes 2013-09-15 22:50:50 +02:00
Rob Wu
9f4745fd3f webL10n: Apply PDF.js-specific changes
Based on http://pastebin.mozilla.org/3061694

1. Remove "debug helpers" and use console.log/console.warn directly (top).
2. Remove page load initialization (middle).
3. Remove window._ alias (bottom)

The original diff contained an extra entry
"Adds fallback argument to the getL10nData;",
but this was already implemented in the rebased webL10n, so it's no
longer PDF.js-specific.
2013-09-15 15:31:37 +02:00
Rob Wu
d0d3b071ec Update webL10n to latest version + features
Base version of l10n:
- https://github.com/fabi1cazenave/webL10n/tree/b18c753c6f
4 extra commits (expected to be accepted):
- https://github.com/fabi1cazenave/webL10n/pull/38

New features compared to mozL10n:
- Support for getting translated attributes in get()

The previous version of mozL10n was based on:
- https://github.com/fabi1cazenave/webL10n/commits/0c06867a75
- diff: http://pastebin.mozilla.org/3061694

To make it easier to update webL10n in the future, I will apply
the PDF.js-specific changes in a separate commit.
2013-09-15 15:13:47 +02:00
Tim van der Meij
67e4c03786 Improvements for RTL languages 2013-09-14 19:33:00 +02:00
Jonas Jenwald
fabed80b5f Prevent trying to set the 'maxHeight' property of the secondaryToolbar before the viewer is completely loaded 2013-09-14 18:00:36 +02:00
Jonas Jenwald
fc73dbe695 [PDFHistory] Prevent the history from skipping entries in certain edge cases, when specifying an initialBookmark in the hash parameters on document load 2013-09-14 17:14:04 +02:00
Ebrahim Byagowi
8ef6cd6272 Adding Persian Translations 2013-09-13 00:39:37 +04:30
Rob Wu
d45d622354 Fix layout of main toolbar
Before this commit there were two main issues:

- In small windows, the zoom controls visually floated above the page number
  (e.g. 733px).
- In small windows, the (transparent) zoom container covered the go-to-page
  input box, which prevented one from using the input field to quickly navigate
  to a different page.
2013-09-11 18:56:10 +02:00
Mitar
940c77f6c9 instanceof HTMLElement does not work in jsdom node.js module. 2013-09-10 19:50:06 -07:00
Yury Delendik
4f243b39b4 Merge pull request #3347 from vivin/master
issue #3346: Text Selection Example
2013-09-10 13:45:27 -07:00
Jonas Jenwald
50c4f482c8 Merge pull request #3667 from thorlarholm/iefullscreen
Support for fullscreen presentationMode in Internet Explorer
2013-09-10 13:33:13 -07:00
Thor Larholm
3c2d079c42 Fixed review notes: Adding specificity and removing redundant declaration 2013-09-10 22:17:40 +02:00
Thor Larholm
0f07d8ad55 Squashed: Added basic support for presentationMode in IE11 2013-09-10 21:40:14 +02:00
Brendan Dahl
da1c944929 Merge pull request #3656 from timvandermeij/annotation-svg
Fixing annotation icon issues
2013-09-09 12:46:26 -07:00
Yury Delendik
69eff38d09 Merge pull request #3660 from maxidirienzo/master
viewer.js: Do not process keyboard shortcuts when focused element is a t...
2013-09-09 08:17:50 -07:00
maxidirienzo
ee5d8ca56d viewer.js: Do not process keyboard shortcuts when focused element is a textarea
If focused element is a textarea, viewer should not process keyboard shortcuts (as it does with input and select elements) because while writing on a textarea, if you press k,p,l, or n, the viewer scrolls next/prev page and the letter is not added to the textarea (eg. in my case I had a viewer displaying a product specs in PDF and a "request a quote" form at it's right, the form had a textarea field and users complains that they couldn't write in it, after checking it, I've realized it was this particular issue and fixd it with the change I'm commiting.
2013-09-09 11:50:49 -03:00
Yury Delendik
0711d3204b Merge pull request #3659 from Snuffleupagus/update-AUTHORS
Adding @Snuffleupagus and @timvandermeij to the AUTHORS list
2013-09-08 11:43:30 -07:00
Jonas Jenwald
34efa38ce2 Adding @Snuffleupagus and @timvandermeij to the AUTHORS list 2013-09-08 20:40:44 +02:00
Tim van der Meij
48a24a48c1 Fixing annotation icon issues 2013-09-06 21:00:02 +02:00
Brendan Dahl
ec52dea70e Merge pull request #3645 from Snuffleupagus/presentationMode-fix-search
Fix searching in presentation mode in Firefox
2013-09-06 08:18:46 -07:00
Brendan Dahl
ab4a51584a Merge pull request #3431 from timvandermeij/annotation-selection
Annotation selection
2013-09-06 08:02:18 -07:00
Jonas
b118ade9ae Fix searching in presentation mode in Firefox 2013-09-06 09:08:43 +02:00
Tim van der Meij
14912b5a03 Annotation selection 2013-09-05 23:19:04 +02:00
Brendan Dahl
494008eca0 Update readme with what files are needed. 2013-09-05 13:05:02 -07:00
Brendan Dahl
7cf8b8d70c Merge pull request #3607 from Snuffleupagus/issue-3604
Prevent searching during load from breaking the find functionality
2013-09-05 08:13:45 -07:00
Brendan Dahl
30c4ebe5b1 Merge pull request #3644 from Snuffleupagus/presentationMode-simplify-getVisiblePages
Simplify getVisiblePages() in presentation mode
2013-09-05 08:11:30 -07:00
Yury Delendik
4a22169be4 Merge pull request #3646 from Snuffleupagus/secondaryToolbar-l10n-Swedish
Update the Swedish l10n with secondaryToolbar strings
2013-09-05 05:04:11 -07:00
Jonas
cb11b44bcf Update the Swedish l10n with secondaryToolbar strings 2013-09-05 11:50:47 +02:00
Jonas
433397f877 Simplify getVisiblePages() in presentation mode 2013-09-05 00:42:36 +02:00
Jonas
54dfe05e30 Prevent searching during load from breaking the find functionality 2013-09-05 00:25:19 +02:00
Jonas
3cce7be9ce Properly disable presentation mode when the viewer is embedded 2013-09-05 00:23:16 +02:00
Jonas
afbff781a7 Change the cursor so that text selection doesn't appear possible in presentation mode 2013-09-05 00:18:36 +02:00
Brendan Dahl
c5bcd7a7ef Merge pull request #2792 from timvandermeij/settings-bar
Secondary toolbar
2013-09-04 15:11:45 -07:00
Tim van der Meij
3c0ac37292 Secondary toolbar 2013-09-04 23:48:31 +02:00
Brendan Dahl
189d444ded Merge pull request #3507 from Snuffleupagus/PDFHistory-fix-multiple-identical-states
[PDFHistory] Prevent the history from getting stuck in certain edge cases
2013-09-04 12:09:41 -07:00
Brendan Dahl
d26fcd5468 Merge pull request #3618 from Snuffleupagus/followup-3557
Prevent named actions from displaying a 'resource://' URL in Firefox
2013-09-04 11:16:15 -07:00
Brendan Dahl
b368a99f20 Merge pull request #3421 from Snuffleupagus/avoid-multiple-rendering-on-wheel-zoom
Avoid triggering rendering multiple times when zooming using the mouse wheel
2013-09-04 10:25:31 -07:00
Yury Delendik
c55cb9d8b6 Merge pull request #3634 from nmaier/download-buffer
Firefox: Corrupt downloads ("padded" downloads) when there is no content length
2013-09-03 08:09:27 -07:00
Nils Maier
16a1c38c1f Download: Use the typed array view instead of the buffer
The ArrayBuffer holding the data might be over-sized in case the
data length was not known during the transfer, e.g. when using a
Content-Encoding other than `identity` or when using a
Transfer-Encoding.
Only the view into the buffer has the correct length then, hence
always use the view directly when creating the blob URI for the
download, instead of the over-sized underlying buffer.

Closes GH-3627
Closes GH-3634
2013-09-01 16:45:26 +02:00
Yury Delendik
8a4a6f498f Merge pull request #3553 from yurydelendik/reduce-scratch-canvases
Reduce max size for pattern and limit group canvases
2013-08-30 18:02:15 -07:00
Jonas
f61d272754 Disable range requests in old Android versions 2013-08-29 01:53:57 +02:00
Yury Delendik
0fc8bac7c0 Merge pull request #3570 from brendandahl/encoding-wip
Fix handling of multiply-encoded glyphs.
2013-08-28 13:51:39 -07:00
Vivin Paliath
f3d1f20652 issue #3346
squashing commits.
2013-08-27 10:05:38 -07:00
Yury Delendik
f1a9bc93f7 Merge pull request #3621 from biggert/master
Added support for JBIG2 extension segment
2013-08-26 15:21:42 -07:00
biggert
88f1506ef8 Added support for JBIG2 extension segment 2013-08-26 15:39:30 -05:00
Brendan Dahl
d00157d3ab Merge pull request #3587 from debloper/master
Stripping down some CSS prefixes [#868160]
2013-08-26 12:59:32 -07:00
Jonas
8630e29054 Avoid triggering rendering multiple times when zooming using the mouse wheel 2013-08-26 21:00:35 +02:00
Brendan Dahl
427dd3948b Merge pull request #3569 from yurydelendik/bug900193
Fixes canvas alignment for small scale...
2013-08-26 10:52:47 -07:00
Brendan Dahl
e2ca1d0e5e Merge pull request #3613 from Snuffleupagus/remove-dead-find-code
Remove old dead find related code from viewer.js
2013-08-26 10:46:58 -07:00