Rob Wu
88767e1861
Improve download button and behaviour
...
Fix download button for top frames and sub frames
When PDF.js is the top frame, and the PDF URL is identical to
the top URL, download would fail. Fixed by adding a ? or & in these
cases.
When PDF.js is embedded in a frame from a different origin, download
would fail because window.open(url, '_parent') is ignored.
Fixed by using a.click() when available.
a.click() works in Chrome 25, Firefox 19, Opera 12.00 and IE 8.
Safari 5.1 does not support a.click()
Use a.download if available + documentation
2013-04-04 13:40:28 +02:00
Rob Wu
b46c375126
Compatibility with XHTML documents
...
Previously, when the XHTML doctype + header is active, checks
would fail because a <div>'s tag name is "div" instead of "DIV".
document.activeElement does not exist in Chrome for XHTML documents
== -> ===
2013-04-04 12:35:50 +02:00
Jonas
ee83df1338
Detect and add fallback if document colors are disabled in Firefox - address comment
2013-04-03 18:49:03 +02:00
Inkbug
b0376a1aa6
Fixing Issue 2998 - Replacing !!window.frameElement
with window.parent !== window
2013-04-02 21:30:03 +03:00
Yury Delendik
71a31b01f2
Merge pull request #2919 from Snuffleupagus/external-links
...
Tweak external links in fullscreen mode - follow up on #2712
2013-04-02 09:59:02 -07:00
Yury Delendik
74b0a51cee
Merge pull request #3009 from brendandahl/backdrop
...
Use white backdrop when possible.
2013-04-01 08:15:30 -07:00
Brendan Dahl
af1833c4d8
Merge pull request #2991 from mduan/text-layer-retina
...
Fix issue w/ textlayer on retina causing it to be visible only in top quadrant
2013-03-29 17:12:53 -07:00
Brendan Dahl
ec311f303b
Use white backdrop when possible.
2013-03-29 13:26:25 -07:00
Mack Duan
4782a3acb9
Changes to viewer to support progressive loading
2013-03-29 11:51:10 -07:00
Mack Duan
7aaa061db4
Fix issue w/ textlayer on retina causing it to be visible only in top quadrant
2013-03-25 11:32:51 -07:00
Jonas
e081c764af
Tweak external links in fullscreen mode - follow up on #2712
2013-03-25 17:50:49 +01:00
Brendan Dahl
921f3211a4
Merge pull request #2916 from Snuffleupagus/getVisibleElements
...
Rewrite and refactor getVisibleElements() to make it more generic
2013-03-19 11:35:53 -07:00
Yury Delendik
b7878c150b
Merge pull request #2955 from vyv03354/warn_unsupported
...
Add a console warning when JavaScript/AcroForm/XFA was found
2013-03-19 06:25:51 -07:00
vyv03354
385a5f7dcc
Add a console warning when JavaScript/AcroForm/XFA was found
2013-03-19 07:27:09 +09:00
Yury Delendik
6cb762246a
Merge pull request #2936 from brendandahl/trans-groups2
...
Add basic support for transparency groups.
2013-03-18 14:48:37 -07:00
vyv03354
d933386e76
Deal with negative vScale value
2013-03-16 20:23:34 +09:00
Brendan Dahl
ad842b6bb8
Remove mozOpaque.
2013-03-15 09:31:52 -07:00
Brendan Dahl
725cd5407f
Add basic support for transparency groups.
2013-03-12 17:20:38 -07:00
Brendan Dahl
605da8bf67
Merge pull request #2920 from Snuffleupagus/thumbnail-on-fullscreen-close
...
Scroll the Thumbnail of the current page into view when exiting fullscreen mode
2013-03-12 16:57:23 -07:00
Jonas
4378a932ef
Rewrite and refactor getVisibleElements() to make it more generic - address comments by @brendandahl
2013-03-12 00:29:34 +01:00
Yury Delendik
601b81f4ed
Adds optional Shift for zoom keybindings
2013-03-11 11:04:43 -05:00
Jonas
82b588389f
Scroll the Thumbnail of the current page into view when exiting fullscreen mode
2013-03-10 13:56:24 +01:00
Yury Delendik
7b2441ec23
Takes clientTop in account in getVisibleElements
2013-03-07 14:11:49 -06:00
Yury Delendik
3a5258d069
Takes top border width in account (cont #2874 )
2013-03-03 19:08:23 -06:00
Yury Delendik
91ab83a69a
Merge pull request #2872 from sgtatham/master
...
Fix handling of [page /XYZ null null null] destinations.
2013-03-03 15:00:54 -08:00
Simon Tatham
c164f03e5a
/XYZ destinations: default to top left of the page.
...
The previous default in the absence of provided coordinates was the
bottom left, so that if you followed a PDF link annotation with a
destination of [page /XYZ null null null] then you would see a gutter
followed by the page _after_ the intended one, because pdf.js had
carefully aligned the lower left corner of the target page with the
top of the window.
As part of this change we allow missing x,y parameters in URLs with a
&zoom= parameter to propagate nulls into pageViewScrollIntoView
instead of being replaced with zero in pdfViewSetHash, so as to do
this substitution in one place.
2013-03-03 22:35:30 +00:00
Yury Delendik
dbf22e5194
Keeping Ctrl+0 unhandled
2013-03-03 14:41:43 -06:00
Brendan Dahl
5c43565404
Hack to support automatic printing from pdf javascript.
2013-02-28 15:29:07 -08:00
Yury Delendik
7ca99df0d7
Merge pull request #2816 from Snuffleupagus/zoom-select-adjust-followup
...
Resize the zoom box width to fit the content - fix embedding
2013-02-28 08:25:44 -08:00
Jonas
87017ec3cf
Make links work in fullscreen - fix issue mentioned by @yurydelenik
2013-02-28 15:35:41 +01:00
Yury Delendik
8aca4c992b
Merge pull request #2781 from waddlesplash/textselection
...
Ignore empty strings for text selection
2013-02-26 10:52:03 -08:00
waddlesplash
9ba08f2c3d
Ignore empty strings for text selection.
...
They were causing double text selection.
2013-02-26 13:00:33 -05:00
Jonas
0bde16a0a0
Resize the zoom box width to fit the content - fix embedding - address comments
2013-02-26 18:46:50 +01:00
Brendan Dahl
a13f7964b1
Merge pull request #2686 from vyv03354/bug770409
...
Implement vertical writing
2013-02-25 12:47:47 -08:00
Jonas
e4e4b1ab4e
Make navigation keys work on document load - avoid breaking embedded viewer, take 3
2013-02-24 17:49:42 +01:00
Julian Viereck
b9e3e845e5
Merge pull request #2676 from Snuffleupagus/pagemode
...
Add 'pagemode' URL parameter
2013-02-23 01:59:17 -08:00
Yury Delendik
a7f385971d
Merge pull request #2705 from timvandermeij/even-zooming
...
More even way of zooming
2013-02-21 07:41:56 -08:00
vyv03354
c5b8ee6a91
Implements vertical writing
2013-02-15 03:53:34 +09:00
Marco
3058c40432
Update web/viewer.js
...
Use asyncStorage.setItem for B2G
2013-02-11 18:36:44 +01:00
Yury Delendik
15233773fd
Merge pull request #2708 from marco-c/patch-1
...
Update web/viewer.js
2013-02-10 11:09:43 -08:00
Yury Delendik
249dad8e46
Merge pull request #2703 from timvandermeij/close-findbar-without-focus
...
Close findbar also when focus is away from it
2013-02-10 10:46:54 -08:00
Marco
f1a39471e3
Update web/viewer.js
...
The variable isLocalStorageEnabled is now unused in Firefox and B2G.
2013-02-10 16:18:46 +01:00
Tim van der Meij
1f4b896d4e
Squashing commits for the close findbar feature
2013-02-10 16:14:17 +01:00
Tim van der Meij
96ec48e634
Squashing commits for disabling zoom buttons feature
2013-02-10 15:01:37 +01:00
Tim van der Meij
0f8f9deb0b
Squashing commits for zooming changes
2013-02-10 14:50:49 +01:00
Yury Delendik
6ce1cfe734
Reverts 729b82, d5f65f and 724add
2013-02-08 14:04:36 -06:00
vyv03354
729b82359a
Implements the print permission
2013-02-08 23:28:27 +09:00
Yury Delendik
51c81a1d01
Merge pull request #2695 from yurydelendik/copy-protection-2
...
Fixes text search for "secured" documents (take 2)
2013-02-07 16:22:31 -08:00
Yury Delendik
d5f65f5431
Fixes text search for "secured" documents
2013-02-07 18:15:39 -06:00
Snuffleupagus
d296c3dbaa
Add 'pagemode' URL parameter - comments addressed
2013-02-06 16:58:32 +01:00