Brendan Dahl
c17f90e1aa
Merge pull request #3406 from Snuffleupagus/remove-old-moz-prefixes
...
Remove old -moz prefixed rules from viewer.css
2013-07-09 13:13:20 -07:00
Yury Delendik
160403197b
Merge pull request #3447 from Rob--W/chrome-arrow-keys-3443
...
Allow scrolling by keyboard in Chrome/Opera
2013-07-09 07:44:01 -07:00
Rob Wu
cc04cf5d1f
Configurable IMAGE_DIR for annotations
...
The Chrome extension activates PDF.js by inserting the script tags
in a document whose URL and location origin is identical to the PDF
file.
Because of this, the path './images/' was resolved relatively to the
location of the PDF file instead of the extension.
To fix this, the IMAGE_DIR constant is moved outside the local scope,
to allow extensions/chrome/insertviewer.js to override the value.
Originally, the IMAGE_DIR variable was a global variable, but commit
f8f4b3f45d
moved the global variable
to the local scope, causing the extension to malfunction.
Impact: low, the only consequence is that some rarely used images
were not visible.
Trivial test:
At the center of page 2, the annotation icon
(images/annotation-comment.svg) should be visible:
http://linorg.usp.br/CTAN/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf
2013-07-09 16:24:25 +02:00
Jonas
db1d8cf76e
[Browsing history] Remove 'beforeunload' to enable caching and prevent duplicate entries
2013-07-08 16:16:43 +02:00
Rob Wu
4a2eefe1b6
Allow scrolling by keyboard in Chrome/Opera
...
Set "tabindex" attribute to allow focus;
Added "outline: none" to prevent focus ring from appearing.
Fixes #3443
2013-07-06 15:37:03 +02:00
Mitar
e0a2ee09b5
Syncing order of JS files in viewer.html and make.js. See #3414
2013-07-02 17:03:16 -07:00
Yury Delendik
ba87d2fe11
Merge pull request #3373 from SSk123/master
...
rotation causes textLayer to get messed up
2013-06-29 17:24:12 -07:00
Srishti
21a8d62624
Fixes Text rotation issue #2095
2013-06-30 03:52:30 +05:30
benbro
74ee295812
Add IE 11 to the text/html data URI shim
2013-06-29 23:43:41 +03:00
Jonas
d417ef9a39
Remove old -moz prefixed rules from viewer.css
2013-06-28 17:21:07 +02:00
Jonas
94be9c07f1
Enable changing page using Shift+Spacebar in presentation mode
2013-06-26 22:46:34 +02:00
Jonas
5c93ec3a2c
Check if the browser supports manipulation of the history
2013-06-24 20:46:13 +02:00
Jonas
6867083c07
Fix typo causing destinations using '/FitR' to fail
2013-06-24 00:39:28 +02:00
Vivin Paliath
83b6eaed16
pr #3356
...
squashing commits.
2013-06-18 09:05:55 -07:00
Yury Delendik
167ac98f9c
Fixes presentation mode page
2013-06-12 16:18:21 -05:00
Yury Delendik
729e35079f
Disables range requestes for safari immediately
2013-06-12 12:03:27 -05:00
Yury Delendik
152e376971
Capturing disableRange set on capture phase of DOMContentLoaded event
2013-06-11 09:01:36 -05:00
Brendan Dahl
2fa15a0d03
Merge pull request #3338 from Snuffleupagus/history-wrong-pageNumber-fix
...
(Yet another) browsing history bug
2013-06-10 14:16:16 -07:00
Jonas
d3c82750c4
Tweak the behaviour of navigateTo during document load
2013-06-05 22:15:39 +02:00
Brendan Dahl
ae1f973204
Use A+ spec compatible promises.
2013-06-05 12:28:31 -07:00
Yury Delendik
5d97434736
Properly disables presentation mode
2013-06-05 11:01:09 -05:00
Jonas
5cb3df7bde
(Yet another) browsing history bug
2013-06-05 16:02:29 +02:00
Brendan Dahl
e6dadaadb8
Disable range request loading for safari.
2013-06-03 15:31:42 -07:00
Jonas
ab9bc2bc34
Fix issue with resizing the zoom box width - follow-up of 2816
2013-06-02 14:31:28 +02:00
Yury Delendik
f700e61e9e
Merge pull request #3308 from brendandahl/hide-overflow
...
Hide canvas overflow for high dpi screens.
2013-06-01 17:45:50 -07:00
Brendan Dahl
4a7bd37162
Hide canvas overflow for high dpi screens.
2013-05-30 08:17:16 -07:00
Jonas
a4343436c7
Fix remaining issues in the browsing history
2013-05-28 18:43:06 +02:00
Brendan Dahl
3641c22750
Merge pull request #3278 from Snuffleupagus/history-regression
...
Fix regressions caused by the recent implementation of browsing history
2013-05-22 10:49:59 -07:00
Brendan Dahl
efde079417
Merge pull request #3195 from yurydelendik/no-filltext
...
Drawing without fillText; refactoring ADD_TO_PATH
2013-05-21 16:53:42 -07:00
Jonas
d3c9a9d856
Fix regressions caused by the recent implementation of browsing history - address comments v3
2013-05-21 11:35:33 +02:00
Jonas
766b92c27e
PDF browsing history - v6.50
2013-05-16 00:31:17 +02:00
Yury Delendik
0e133f0090
Drawing without fillText; refactoring ADD_TO_PATH
2013-05-15 15:57:27 -05:00
Yury Delendik
61a7738a5d
Fixes password for range request loading
2013-05-09 19:18:31 -05:00
Mack Duan
f8f4b3f45d
Refactor code for annotations
2013-05-07 14:22:13 -04:00
Brendan Dahl
e5b5c94925
Merge pull request #3060 from saebekassebil/fixpassword
...
Ask for password on failed decryption
2013-05-07 09:27:38 -07:00
Jakob Miland
297c305150
Ask for password on failed decryption
2013-05-07 18:24:59 +02:00
Yury Delendik
5db963abf4
Merge pull request #3193 from Snuffleupagus/issue3076
...
Fixes issue 3076
2013-05-07 05:46:46 -07:00
Jonas
40718bdb7b
Fixes bug 863591
2013-05-06 17:39:22 +02:00
Yury Delendik
a081c2d0f1
Merge pull request #3124 from mduan/issue3118-1
...
Update loading bar during onprogress of range requests
2013-05-03 16:51:32 -07:00
Jonas
32f54c3272
Fixes issue 3076
2013-05-03 17:50:18 +02:00
Kalervo Kujala
5e08f8039d
Replace fullscreen with presentationMode
2013-05-01 09:22:17 +03:00
Brendan Dahl
b89d7272e2
Remove background when printing.
2013-04-30 14:39:57 -07:00
Jonas
93b8e1fc01
Fix disabling of zoom buttons and add camel case button names
2013-04-30 21:14:18 +02:00
Jonas
adf61ea5b0
Make spacebar work on document load - fixes bug 864619
2013-04-30 16:44:51 +02:00
vyv03354
2c504120b8
Fixes the unprefixed gradient declaration
2013-04-30 20:24:01 +09:00
Yury Delendik
2a320f851e
Merge branch 'vyv03354/unprefix_gradient'
...
Conflicts:
web/viewer.css
2013-04-29 22:06:59 -05:00
Mack Duan
91f9948df4
Only update progress bar if it increases
2013-04-23 10:00:31 -07:00
Yury Delendik
9c9ed2f2a1
Merge pull request #3128 from mete0r/master
...
Use decodeURIComponent instead of unescape in parseQueryString() in viewer.js
2013-04-23 06:23:28 -07:00
Jonas
77c1235b13
Workaround for issue 3068 - v3
2013-04-23 02:19:15 +02:00
Mack Duan
c5084d9e8a
Update loading bar during onprogress of range requests
2013-04-22 08:46:58 -07:00
mete0r
66cb12822d
Fix parseQueryString -- use decodeURIComponent instead of unescape
2013-04-20 21:32:15 +09:00
Mack Duan
6b2c6fc223
Changes to regression tests for progressive loading
2013-04-18 00:16:36 -07:00
Mack Duan
ef423ef30c
Implement progressive loading of PDFs
2013-04-12 16:13:22 -07:00
Jakob Miland
6b4f72a2c3
Disable outline button when unavailable
2013-04-11 18:27:35 +02:00
vyv03354
36ea87af38
Remove prefixed gradients usage
2013-04-07 20:57:14 +09:00
Yury Delendik
238b94aff1
Adds check for textDivs presence; removes textLayerQueue
2013-04-04 09:01:27 -05:00
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
Yury Delendik
884b2dc9e4
Merge pull request #3022 from Rob--W/css-button-fix
...
Explicitly define layout of toolbar buttons
2013-04-03 11:19:35 -07:00
Rob Wu
5328b461ee
Explicitly define layout of toolbar buttons
...
Before:
- Firefox's buttons looks OK
- Chrome (quirks mode): Buttons were aligned to the bottom (too much)
- Chrome (standards mode): Buttons were aligned to the top (too much)
- Opera/IE/Safari: Like Chrome (standards): Buttons too high
(Too high = Compare the other buttons to the rightmost button)
After:
- Firefox's button positions didn't change at all
- All buttons are aligned at the same level, across all browsers
2013-04-03 19:17:08 +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
Jonas
83c09f27cc
Fix bug 795225 - address comment
2013-03-18 23:53:45 +01: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
43f70d1601
Merge branch 'ctrl0'
2013-03-03 14:42:32 -06:00
Yury Delendik
dbf22e5194
Keeping Ctrl+0 unhandled
2013-03-03 14:41:43 -06:00
Yury Delendik
85ddd9405a
Replacing page shadow with image; removing some profixed styles
2013-03-03 09:38:38 -06:00
Brendan Dahl
5c43565404
Hack to support automatic printing from pdf javascript.
2013-02-28 15:29:07 -08:00
waddlesplash
d0864f766b
CSS fixes to the sidebar.
...
No need for a 15px margin, and links should have a pointer cursor.
2013-02-28 17:02:09 -05: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
Mack Duan
c0acf072e7
Merge pull request #2822 from waddlesplash/css
...
Spacing fixes in CSS.
2013-02-27 16:36:34 -08:00
Ofir
bf837cb524
Clone the array manually when slice is missing
2013-02-27 22:53:59 +02:00
waddlesplash
322709257d
Spacing fixes.
2013-02-27 12:53:14 -05:00
waddlesplash
b5dadab5c7
Add "cursor: text;" to textLayer div CSS.
...
Fixes problem caused by e4e4b1ab4e
.
2013-02-26 14:18:11 -05: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
Yury Delendik
3b506bd294
Merge pull request #2805 from brendandahl/no-hide-download
...
Don't hide the download/print buttons when view is small.
2013-02-25 17:11:48 -08:00