Jonas
e69fc0072a
Prevent named actions from displaying a 'resource://' URL in Firefox
2013-08-24 20:27:58 +02:00
Jonas
8892beeb08
Remove old dead find related code from viewer.js
2013-08-23 13:08:51 +02:00
Jonas
baba41f702
Prevent searching from breaking when opening a new file in the web viewer
2013-08-23 11:08:03 +02:00
Yury Delendik
bde863a8ac
Merge pull request #3573 from Rob--W/crx-view-local-files
...
[CRX] Fixes to view local files again
2013-08-21 07:37:32 -07:00
Yury Delendik
ba23a9e8f9
Adds initial telemetry probes
2013-08-16 09:53:05 -05:00
Rob Wu
a4dd4b1789
[CRX] Fixes to view local files again
...
pdfHandler-local.js references the isPdfDownloadable function from
pdfHandler.js, but the function didn't expect that the responseHeaders
property was absent. Added a check to prevent a runtime error when a
local file is displayed in a frame, and show local PDF files again.
Local files are rendered on the chrome-extension:-protocol. The previous
method of getting the PDF URL was incorrect, this has been fixed as well.
2013-08-14 23:50:51 +02:00
Yury Delendik
86077810b0
Fixes canvas alignment for small scale and scale adjustment after Cmd+0
2013-08-13 18:45:06 -05:00
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
2013-08-12 10:48:06 -07:00
Tim van der Meij
75035a2970
Named actions implementation
2013-08-08 21:59:59 +02:00
Jonas
d99879bfbf
Move ThumbnailView from viewer.js to its own file
2013-08-06 22:19:03 +02:00
Brendan Dahl
820145da05
Merge pull request #3523 from yurydelendik/csp
...
Bug 889320 - [CSP] removes inlined styles and scripts, also HTTP headers
2013-08-06 13:10:33 -07:00
Brendan Dahl
d85e38d629
Fix intermittent blank page on fast zoom.
2013-08-05 16:34:57 -07:00
Yury Delendik
bea2e41e45
Backout of #3513 (except formatting)
2013-08-05 07:52:24 -05:00
Yury Delendik
7435b267f9
Merge pull request #3535 from Snuffleupagus/issue-3534
...
Fix issue with initial scale when opening a new file and another one is already loaded
2013-08-04 17:29:36 -07:00
Brendan Dahl
65fd2c77d0
Merge pull request #3513 from Snuffleupagus/keep-scroll-position-on-zoom-v2
...
Keep current scroll position when zooming the document
2013-08-02 15:22:52 -07:00
Jonas
8170d67a6b
Fix issue with initial scale when opening a new file and another one is already loaded
2013-08-02 16:09:33 +02:00
Brendan Dahl
bf72bc94e2
Incrementally render by sending the operator list by chunks as they're ready.
2013-07-31 11:17:36 -07:00
Jonas
edf3163fa6
Keep current scroll position when zooming the document
2013-07-31 19:43:03 +02:00
Yury Delendik
99c9079f54
[CSP] removes inlined styles and scripts
2013-07-30 21:00:37 -05:00
Brendan Dahl
81308d153d
Merge pull request #3516 from Rob--W/crx-dont-parse-querystring
...
[CRX] Get pdf name from URL instead of query string
2013-07-29 10:22:14 -07:00
Rob Wu
b2b2e85ba2
[CRX] Get pdf name from URL instead of querystring
2013-07-27 12:31:51 +02:00
Jonas
d99b7753d6
Check if viewer is embedded only once and cache the result
2013-07-20 16:33:40 +02:00
Jonas
8708f8beb5
Fixes regression that cause scrolling using spacebar to break in Firefox
2013-07-19 22:09:37 +02:00
Yury Delendik
c6e698e21f
Merge pull request #3332 from Snuffleupagus/fix-loadingBar
...
Fix the positioning of the progressive loadingBar
2013-07-18 09:39:25 -07:00
Jonas
4890c5d017
Fix the positioning of the progressive loadingBar
2013-07-18 18:28:59 +02:00
Jonas
09e0c9b65d
Move PDFHistory from viewer.js to its own file
2013-07-18 17:18:27 +02:00
Tim van der Meij
343bb7488a
Presentation mode shortcut implementation
2013-07-18 16:28:06 +02:00
Yury Delendik
984b9bf78b
Merge pull request #3486 from Rob--W/csp-unsafe-inline
...
Remove all inline JavaScript from viewer.html to comply with CSP unsafe-inline and correct error textarea's height
2013-07-18 06:08:39 -07:00
Tim van der Meij
22120005b7
Removing code duplication
2013-07-18 13:37:55 +02:00
Rob Wu
d5e16ab85c
Viewer: Remove inline events; set height on error
...
Move inline event handlers to viewer.js to comply with a
Content-Security-Policy where directive "unsafe-inline" is not set.
Change textarea.rows = <number of newlines> to
textarea.style.height = textarea.scrollHeight.
(The former is extremely unreliable; consider long lines...)
2013-07-18 10:38:44 +02:00
Brendan Dahl
5fa609584e
Merge pull request #3449 from Snuffleupagus/history-remove-beforeunload
...
[Browsing history] Remove 'beforeunload' to enable caching and prevent duplicate entries
2013-07-17 16:03:12 -07:00
Brendan Dahl
330f6212ba
Merge pull request #3341 from Snuffleupagus/navigateTo-fix
...
Tweak the behaviour of navigateTo during document load
2013-07-15 16:16:46 -07:00
Yury Delendik
ef658bf5f1
Refactoring download button logic
2013-07-12 13:14:13 -05:00
Brendan Dahl
077f08fa6d
Merge pull request #3456 from brendandahl/cap-image-size
...
Limit image size to 1024*1024 for b2g.
2013-07-11 11:44:51 -07:00
Rob Wu
e583070deb
Download PDF from cache for IE10 / IE11
...
IE9 falls back to downloading from the original URL.
2013-07-10 22:07:23 +02:00
Rob Wu
84ae29c21d
Improve suggested filename on download
...
For all of the following URLs, "file.pdf" will be suggested:
http://.../file.pdf
http://.../download.aspx?file=file.pdf&whatever
http://.../get.pdf?name=file.pdf&whatever
http://.../single-page-app#view=file.pdf
http://.../download.aspx?file=%2Fpath%2Fto%2Ffile.pdf&whatever
Fixes #3161
2013-07-10 21:50:56 +02:00
Brendan Dahl
bcc085ec52
Limit image size to 1024*1024 for b2g.
2013-07-10 09:52:37 -07:00
Rob Wu
69a64d45bc
Put URL = URL || webkitURL in compatibility.js
...
Declares the URL variable globally. If the feature is not
supported, the variable will still be declared, but have the
"undefined" value.
Supported by:
- Firefox 4
Firefox 21 in Web worker
- Chrome 8 (prefixed as webkitURL), 23+ unprefixed
Chrome 10 (prefixed as webkitURL) in Web Worker, 23+ unprefixed
- Opera 15
Opera 15 in Web Worker
- Internet Explorer 10
Internet Explorer 11 in Web Worker
- Safari 6 (prefixed as webkitURL)
Safari 6 (prefixed as webkitURL) in Web Worker
2013-07-09 22:54:12 +02:00
Rob Wu
4ffc408512
Download PDF from cache for non-Firefox add-on
...
This feature relies on URL.createObjectURL, which is supported by
- Firefox 4
- Chrome 8
- Opera 15
- Internet Explorer 10
If the feature is missing, it falls back to downloading from the server.
The environment-specific code are put in ifdef's. Two methods are
defined:
- noData
This function is used as a fallback in case of failure, it triggers
a download directly from the server.
- triggerSaveAs(String url, optional String blob)
This function attempts to show a Save As dialog for a given URL.
It attempts to use the a.download attribute, if available, and
falls back to window.open(<url>, '_parent') if unavailable.
See also http://caniuse.com/download
2013-07-09 22:54:12 +02: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
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
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
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
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
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
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
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
Yury Delendik
81f8f92696
Adds web/* and test/* for jshint target
2013-02-04 12:01:19 -06:00
Yury Delendik
74bfc3ddf7
Merge pull request #2612 from Snuffleupagus/zoom-select-adjustable-width
...
Resize the zoom box width to fit the content
2013-01-31 20:04:50 -08:00
Yury Delendik
9c044e2c31
Fallback when AcroForm is present
2013-01-31 16:46:44 -05:00
Yury Delendik
cca1a68adf
Merge pull request #2572 from mduan/issue2477
...
Make canvas transform matrix account for devicePixelRatio
2013-01-30 20:25:43 -08:00
mduan
6bacb38692
Make canvas transform matrix account for devicePixelRatio
2013-01-30 16:06:12 -05:00
Brendan Dahl
f18655fab9
Merge pull request #2614 from yurydelendik/intermit-fullscreen
...
Fixes intermittent rendering stop
2013-01-30 11:59:08 -08:00
Bill Walker
12af2f9431
fix for #2219 , "provide a better error message when file= not found/accessible"
...
summary: create a new Exception class for missing PDF's, use it in place of generic
add new MissingPDFException to util.js
handle MissingPDF in api.js
handle MissingPDF in viewer.js, using new missing_file_error message
add new missing_file_error to l10n/en-US/viewer.properties
send MissingPDF from WorkerMessageHandler's loadDocument
send MissingPDF from GetDocRequest handler
2013-01-29 13:17:04 -08:00
Brendan Dahl
7bd8887860
Merge pull request #2613 from yurydelendik/wait-animation
...
Wait for animation frame before displaying stuff
2013-01-28 08:48:59 -08:00
Yury Delendik
9a5ecae2a3
Wait for animation frame before displaying stuff
2013-01-28 10:24:09 -06:00
Snuffleupagus
e08e326a67
Automatically resize the zoom box width to fit the content
2013-01-26 22:17:37 +01:00
Yury Delendik
ddcbc4ddff
Fixes intermittent rendering stop
2013-01-25 15:28:12 -06:00
Snuffleupagus
c901f2f289
Improve the behaviour of the pageNumber input field
2013-01-21 18:30:59 +01:00
Brendan Dahl
71b1022fb0
Merge pull request #2509 from Snuffleupagus/tweak-thumbnail-scrolling
...
Add various improvements to scroll Thumbnails into view
2013-01-18 12:35:13 -08:00
Snuffleupagus
2d028e64c5
Change page with up/down arrow keys when zoom is set to 'page-fit'
2013-01-16 15:06:10 +01:00
Snuffleupagus
ae29adc730
Add various improvements to scroll Thumbnails into view - comments addressed
2013-01-10 22:56:36 +01:00
Yury Delendik
7b70710565
Traces pdf.js version
2013-01-04 11:01:31 -06:00
Snuffleupagus
05e5a6b604
Horizontal scrolling using the left/right arrow keys - version 4
2012-12-13 21:10:21 +01:00
Snuffleupagus
a97a0e2f55
Add reset of zoom level using CTRL + [Numpad 0] on Swedish keyboard
2012-12-11 23:59:33 +01:00
waddlesplash
d05031d3b0
Add German keyboard "+"-zoom.
2012-12-10 16:39:35 -05:00
Yury Delendik
5dc87a7fca
Detecting if web fonts are disable in Firefox.
2012-11-30 17:08:19 -06:00
Brendan Dahl
12ad86e423
Merge pull request #2369 from yurydelendik/l10n-2
...
Updates webL10n; using viewer.properties as is...
2012-11-29 12:47:57 -08:00
Brendan Dahl
abaed05174
Merge pull request #2346 from yurydelendik/info
...
Adds basic PDF info
2012-11-29 12:30:06 -08:00
Yury Delendik
e5247e4895
Updates webL10n; using viewer.properties as is
2012-11-29 14:02:33 -06:00
Brendan Dahl
df0d9be4a5
Add close button and title bar for b2g.
2012-11-28 11:02:56 -08:00
Brendan Dahl
67f3b38245
Change keys and update wording for find wrapped strings.
2012-11-20 09:19:17 -08:00
Brendan Dahl
60209f6b43
Use high dpi display hack for printing too.
2012-11-13 16:57:23 -08:00
Yury Delendik
621e8e1ea9
Merge pull request #2360 from waddlesplash/refactor
...
Refactor constant names in various files
2012-11-10 13:33:27 -08:00
waddlesplash
32fbf687ab
Refactor names in various files.
...
web/viewer.js
src/fonts.js (& remove unused global)
src/evaluator.js
src/canvas.js
2012-11-10 14:59:13 -05:00
Saebekassebil
6f17260d35
Fix bugzilla bug#804526, hiding fullscreen button when in an iframe
2012-11-10 15:57:43 +01:00
Yury Delendik
1f56d242ff
Adds basic PDF info
2012-11-05 11:12:17 -06:00
Brendan Dahl
babd8df176
Un-inline pdf.js for the extension/mozcentral and remove fetch pdf by content code.
2012-10-29 12:44:18 -07:00
Yury Delendik
a47033131c
Fixes find_wrapped_to_bottom fallback string
2012-10-29 08:10:29 -05:00
Yury Delendik
ee87a44c03
Merge pull request #2298 from zalun/show_alert_on_invalid_pdf_structure
...
Display an error on Invalid PDF
2012-10-25 19:18:26 -07:00
Piotr Zalewa
812bc6795d
* InvalidPDFException added
...
* Act on throwing an Exception and InvalidPDFException by rejecting the worker
instead of throwing
* changed message for all builds
* alerting and closing window only for B2G builds
* invalid_file_error added to l10n (en and pl)
* UnknownErrorException added and used for every error()
2012-10-25 11:15:19 +02:00
Yury Delendik
7e2c94453c
Merge pull request #2305 from brendandahl/remove-innerhtml
...
Remove use of innerhtml.
2012-10-24 12:46:12 -07:00
Brendan Dahl
8e3f626f8a
Remove use of innerhtml.
2012-10-24 11:53:07 -07:00
Yury Delendik
eea69c18dc
Merge pull request #2295 from waddlesplash/master
...
Make comments look nicer
2012-10-24 07:59:04 -07:00
waddlesplash
ceee2c4d04
Make the comments look nicer & fix a linebreak bug.
2012-10-24 10:52:14 -04:00
Brendan Dahl
f99150bc22
Merge pull request #2283 from yurydelendik/hidpi
...
Fixes output for HiDPI device
2012-10-22 12:39:01 -07:00
Brendan Dahl
3488d756e8
Allow find to highlight matches without extracting all text.
2012-10-19 16:28:17 -07:00
Yury Delendik
4dcb1fd25f
Fixes output for HiDPI device
2012-10-19 13:05:12 -05:00
Brendan Dahl
e0dc176d9b
Merge pull request #2233 from yurydelendik/fix-fit-page
...
Fixes fit-page and fullscreen
2012-10-15 10:03:30 -07:00
Yury Delendik
209ee959db
Fixes 'currentPage is undefined' viewer error
2012-10-15 09:01:09 -05:00
Yury Delendik
ee499b46cf
Removes 'visiblePages[0] is undefined' error
2012-10-15 07:40:05 -05:00
Yury Delendik
da73934baf
Fixes fit-page and fullscreen
2012-10-10 22:12:47 -05:00
Brendan Dahl
3cf43e7130
Merge pull request #2217 from yurydelendik/hide-cursor
...
Hides cursor in presentation mode
2012-10-10 17:36:27 -07:00
Yury Delendik
be779c2ec7
Hides cursor in presentation mode
2012-10-10 19:32:48 -05:00
Brendan Dahl
115f00cf4c
Merge pull request #2228 from yurydelendik/fix-white-border
...
Rounding page div width and height...
2012-10-10 17:32:16 -07:00
Brendan Dahl
4734cd8198
Change status attribute name.
2012-10-10 15:46:04 -07:00
Yury Delendik
00852bd9ca
Rounds page div to the canvas size
2012-10-10 16:31:11 -05:00
Brendan Dahl
c3debc6ee0
Delay extracting text until first find event.
2012-10-10 13:58:14 -07:00
Yury Delendik
06f9b70f07
Merge pull request #2206 from timvandermeij/first-last-page-context-menu
...
Converted the first and last page buttons to context menu items
2012-10-10 10:36:21 -07:00
Tim van der Meij
6e13e3dd73
Final commit squash
2012-10-10 19:26:41 +02:00
Brendan Dahl
7ac45147e2
Merge pull request #2210 from yurydelendik/fullscreen-controls
...
Adds more presentation mode controls
2012-10-10 09:47:46 -07:00
Yury Delendik
f77b61e4f1
Fixes order in which are divs added to the text layer
2012-10-10 09:08:29 -05:00
Yury Delendik
b5f952a63a
Fixes font debugger; text builder api refactoring
2012-10-09 08:25:41 -05:00
Brendan Dahl
399463a450
Merge pull request #2211 from yurydelendik/find-ui-2
...
Escape key closes findbar
2012-10-08 10:41:34 -07:00
Yury Delendik
b465fc46fa
Merge pull request #2060 from kkujala/master
...
Add firefox mouse scrolling support in fullscreen mode.
2012-10-08 06:02:52 -07:00
Yury Delendik
7cace5f160
Escape key closes findbar
2012-10-06 08:58:12 -05:00
Yury Delendik
2178bf06c9
Adds more presentation mode controls
2012-10-05 21:55:47 -05:00
Brendan Dahl
a15d3d6622
Handle ctrl/cmd+g for html findbar.
2012-10-05 15:07:56 -07:00
Yury Delendik
c281bd71b6
Merge pull request #2202 from brendandahl/find-bugs
...
Fixes minor find bugs.
2012-10-05 14:08:51 -07:00
Brendan Dahl
95b1f74a30
Add support for firefox integrated find.
2012-10-05 13:59:13 -07:00
Brendan Dahl
a829b06d20
Fixes a minor find bugs.
2012-10-05 12:21:04 -07:00
Brendan Dahl
4e0c792f12
Merge pull request #2168 from mozilla/html-search-bar
...
Find bar
2012-10-04 13:59:20 -07:00
Brendan Dahl
5d848ca31a
Ignore find key shortcut only for mozcentral for now.
2012-10-04 13:44:17 -07:00
Tim Taubert
5bab0c354a
Bug 796584 - Don't use localStorage in pdf.js
2012-10-03 01:16:42 +02:00
Brendan Dahl
45fe76e752
Add support for enter/shift for find.
2012-10-02 15:59:57 -07:00
Kalervo Kujala
4747467103
Add firefox mouse scrolling support in presentation mode.
...
Convert ticks to mouse delta values and use that to determine
when to flip the page.
Also use cooldown time for presentation mode page scrolling.
This way hi res mouses do not scroll multiple pages at once.
http://www.codeproject.com/Articles/155717/Handling-Enhanced-Mouse-Wheels-in-your-Application
2012-10-03 00:08:16 +03:00
Artur Adib
3bd20a7415
bug fix: textLayer ready still needs scroll
2012-10-02 16:19:51 -04:00