Commit Graph

768 Commits

Author SHA1 Message Date
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
Brendan Dahl
e1988fb5bf Merge pull request #2208 from yurydelendik/find-ui-1
Add pilot find next/prev icons; localization
2012-10-08 09:58:19 -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
94367bd161 Adds tabindex; remove search field type 2012-10-06 09:22:37 -05: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
Yury Delendik
ade5f96787 Add pilot find next/prev icons; localization 2012-10-05 19:15:06 -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
Yury Delendik
92770fdd84 Minor CSS fixed for find bar 2012-10-05 10:47:58 -05:00
Brendan Dahl
554231288d Merge pull request #2196 from yurydelendik/ie9-console
Fixes console log methods for IE9
2012-10-04 15:57:43 -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
Yury Delendik
d1e017cc5e Fixes console log methods for IE9 2012-10-04 13:41:41 -05:00
Brendan Dahl
1f85b8b4ed Update the l10n for the html find bar. 2012-10-02 17:08:47 -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
Yury Delendik
c2629d9632 Update web/index.html.template
Refer localized pdf.js AMO add-on page
2012-10-02 07:26:20 -05:00
Yury Delendik
8cf766d177 Prevents key handling when the input/toolbar controls are focused 2012-10-01 16:32:02 -05:00
Brendan Dahl
dd0cb37f38 Add some door hanger styling for the find bar 2012-09-28 12:30:07 -07:00
Brendan Dahl
53672af0f7 Fix un-highlight when there is no query. 2012-09-28 11:43:22 -07:00
Brendan Dahl
38193b1887 Update the find bar ui status. 2012-09-28 11:18:45 -07:00
Brendan Dahl
2a1264a746 Don't try to highlight anything if the page isn't selected and we aren't highlighting all. 2012-09-28 09:03:35 -07:00
Julian Viereck
ecf3dae776 Fix clear matches functionality 2012-09-28 15:16:10 +02:00
Artur Adib
6090b3edf9 colors closer to FF's, add highlightAll support 2012-09-27 12:21:04 -04:00
Yury Delendik
332cb20fcc Fixes function declaration for strict mode 2012-09-26 16:43:11 -07:00
Artur Adib
e2a2085f62 remove find button in MOZCENTRAL 2012-09-26 16:47:26 -04:00
Artur Adib
1ec2e2a1a2 remove old unused code 2012-09-26 16:38:02 -04:00
Artur Adib
73b96e0e58 bug fix: clear previous highlights 2012-09-26 14:09:55 -04:00
Artur Adib
6022476f03 add support for case sensitive 2012-09-26 12:14:57 -04:00
Artur Adib
6864a07221 Use "find" instead of both find & search 2012-09-25 16:17:27 -04:00
Artur Adib
d94bbad575 typo fix 2012-09-25 14:54:29 -04:00
Julian Viereck
da57e0f89e Julian's html-search-bar work 2012-09-25 14:48:05 -04:00
Julian Viereck
e98eba1b11 Merge pull request #2127 from jviereck/text-algo-3
Use the text extracted in the getTextContent function for the divs of the textLayer.
2012-09-25 05:52:46 -07:00
Yury Delendik
574d626f04 Merge pull request #1906 from brendandahl/use-plain-blob
Use Blob constructor when available instead of deprecated MozBlobBuilder.
2012-09-24 17:11:32 -07:00
Brendan Dahl
de343b0297 Merge pull request #2153 from yurydelendik/rename-fullscreen
Renames fullscreen to presentation mode
2012-09-24 14:15:38 -07:00
Brendan Dahl
aa59fd0d24 Merge pull request #2146 from yurydelendik/fix-gb-browser
Workaround for android gb browser bug
2012-09-24 09:13:55 -07:00
Mike Taylor
9bc2a065fe Fullscreen updates for latest (unprefixed) spec.
Fixes the camelCase error in requestFullscreen. Replaces document.fullscreen
with a check for document.fullscreenElement.
2012-09-23 23:24:44 +02:00
Brendan Dahl
739ee47865 Use Blob constructor when available instead of deprecated MozBlobBuilder. 2012-09-22 09:44:49 -07:00
Julian Viereck
f1e0edbaa9 Address Yurys review comments 2012-09-22 11:18:26 +02:00
Yury Delendik
12a0faadad Renames fullscreen to presentation mode 2012-09-21 09:35:18 -05:00
Yury Delendik
fc6b0e9bf2 Workaround for android gb browser bug 2012-09-20 10:24:51 -05:00
Julian Viereck
a33ba145bf Don't compute the string for the TextLayer in the canvas backend anymore and change the syntax of appendText 2012-09-20 17:15:55 +02:00
Julian Viereck
bd4434a7ea Apply bidi algorithm to the text in the worker 2012-09-20 17:10:51 +02:00
Julian Viereck
8d6565d1a8 Change the format of the BidiResult object. 2012-09-20 17:10:51 +02:00
Julian Viereck
32d14f4575 Ensure textLayers content is always fetched and set on the textLayer 2012-09-20 17:10:51 +02:00
Julian Viereck
ee0c2e2ab7 Make the search button hidden again 2012-09-20 17:08:43 +02:00
Julian Viereck
d26969a85f Remove some debugging informations 2012-09-20 17:08:43 +02:00
Julian Viereck
58ed7fc35c Make the textLayer divs prevent whitespaces 2012-09-20 17:08:42 +02:00
Julian Viereck
a5520216fc Some comment stuff 2012-09-20 17:08:42 +02:00
Julian Viereck
f0f16a6a4d Do some logging of the outputted text 2012-09-20 17:08:42 +02:00
Julian Viereck
83c499595c Change the PDFJS.bidi function calls slightly to avoid creating a seperate object to pass to PDF.JS bidi and just pass in a string 2012-09-20 17:08:42 +02:00
Julian Viereck
3db4e7266e Make the textLayer use extracted textContent 2012-09-20 17:08:42 +02:00
Julian Viereck
668c2867d4 Change the format of textContent to be an array 2012-09-20 17:01:16 +02:00
Julian Viereck
eced7fbb57 Backup work before redoing the textContent format 2012-09-20 17:01:16 +02:00
Julian Viereck
a38c4bc729 Make getTextContent return offset array and improve the algorithm. Make
parts in viewer.js work again.
2012-09-20 17:01:15 +02:00
Artur Adib
863dd0d214 merge upstream 2012-09-18 16:57:09 -04:00
Yury Delendik
ac7b6aeff4 Provides right fallback fonts for text layer 2012-09-14 11:17:35 -07:00
Julian Viereck
53c66f8a54 Update web/index.html.template
Remove email address due to spam.
2012-09-14 09:49:04 -07:00
Yury Delendik
6c05dc23f9 Update web/index.html.template 2012-09-14 09:31:47 -07:00
Brendan Dahl
d9b8cb84f8 Update index template. 2012-09-14 09:25:00 -07:00
Yury Delendik
a98d84ff64 Merge pull request #2115 from yurydelendik/merge-font-text
Refactor text extraction / font loading logic
2012-09-13 17:43:09 -07:00
Yury Delendik
e086cf36f4 Refactor text extraction / font loading logic 2012-09-13 15:12:42 -07:00
Julian Viereck
d108b20730 Merge pull request #2100 from brendandahl/zoom-out-mac
Fix zoom out keyboard shortcut for mac.
2012-09-13 07:47:51 -07:00
Artur Adib
0e89fe7d9d nit 2012-09-12 15:07:23 -07:00
Artur Adib
708eb78c67 working fragments 2012-09-12 14:26:01 -07:00
Brendan Dahl
24d660eebe Fix regression from #2087. 2012-09-10 17:39:51 -07:00
Brendan Dahl
62734a2d97 Fix zoom out keyboard shortcut for mac. 2012-09-10 09:28:45 -07:00
gigaherz
3e20fe2355 Refresh the zoom settings after rotating the pages also for non-fullscreen, using the current value of the scale. 2012-09-08 02:07:16 +02:00
gigaherz
bbcb05af7b Implement page rotation controls using keyboard (R/shift-R) and context menu. 2012-09-08 01:05:14 +02:00
Michael Payne
6ca9245a39 Changes to allowed versioned building of Chrome extension that meets new
Chrome extension security requirements
2012-09-06 12:39:49 -07:00
Michael Payne
d6d4fc8046 remove added inline.js file
Moved inline Javascript function to viewer.js rather than create a new
file
2012-09-06 08:32:19 -07:00
Michael Payne
7bc500af57 added copyright 2012-09-05 22:54:36 -07:00
Michael Payne
088c6e17e8 changes to allow chrome extension to load
changes to remove inline scripts, update manifest version, fix make.js
so compatibility.js isn't included for chrome. Due to new Chrome
extension changes outlined at
http://developer.chrome.com/extensions/manifestVersion.html
2012-09-05 22:52:17 -07:00
Yury Delendik
a9026f0a6c Changes thumbs and outline panels positioning to absolute 2012-09-05 10:31:23 -05:00
Brendan Dahl
332ae4ce41 Change to the Apache v2 license. 2012-08-31 15:48:21 -07:00
Yury Delendik
c53b7aacfc Fixes scrollIntoView when scrollbars are hidden 2012-08-28 16:29:47 -05:00
Brendan Dahl
57866c514b Merge pull request #2023 from yurydelendik/scrollIntoView
Replaces scrollIntoView
2012-08-27 12:14:02 -07:00
Yury Delendik
72bb0f5a45 Add top padding for full screen mode 2012-08-27 12:46:26 -05:00
Yury Delendik
1cbbb37fbc Making webkit fullscreen work as for moz 2012-08-27 10:57:40 -05:00
gigaherz
1a915943cd Fix review comments. 2012-08-27 09:02:10 +02:00
gigaherz
d64bb603c8 Gracefully fail if the URL filename cannot be decoded. 2012-08-27 01:49:07 +02:00
Yury Delendik
2531515f15 Replaces scrollIntoView 2012-08-24 10:12:03 -05:00
Yury Delendik
cd1a645881 Adds support of the indeterminate loading progress 2012-08-22 10:48:56 -05:00
Brendan Dahl
e11e8117c5 Merge pull request #1943 from yurydelendik/loadingbychrome
Implements loading PDF data by extension/chrome
2012-08-21 11:14:16 -07:00
Yury Delendik
df4fadeaf5 Unknown length support; reports download error 2012-08-20 17:16:04 -05:00
Yury Delendik
c02e539e35 Adds textlayer debug modes 2012-08-19 20:02:12 -05:00
Yury Delendik
ec8fdb60fc Fixes "TypeError: invalid 'in' operand args" 2012-08-15 10:38:15 -05:00
Yury Delendik
68c298a409 Merge fix: don't open the file if passive mode is selected 2012-08-15 10:28:26 -05:00
Yury Delendik
9cc5fc4e38 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into loadingbychrome
Conflicts:
	web/viewer.js
2012-08-15 10:17:30 -05:00
Yury Delendik
96c2f5c6ae Simulate support of data URIs for IE10 2012-08-10 18:51:03 -05:00
Yury Delendik
e17d828b64 Merge pull request #1967 from brendandahl/deatched-dom
Cleanup references to dom elements.
2012-08-08 12:38:08 -07:00
Brendan Dahl
1d3aba25a9 Merge pull request #1962 from yurydelendik/ie10-1
Adds overrideMimeType for IE10 and discontinues readAsBinaryString use
2012-08-08 11:59:18 -07:00
Yury Delendik
5b583e596a data.length optimization 2012-08-08 13:31:15 -05:00
gigaherz
eaffcfa920 Fix some typos in comments and variable names.
Fix some nits in debugger.js.
2012-08-08 20:26:24 +02:00
gigaherz
ea23a42124 Merge branch 'master' of git://github.com/mozilla/pdf.js into nits
Conflicts:
	web/viewer.js
2012-08-08 18:45:51 +02:00
Brendan Dahl
2ca8c0d999 Cleanup references to dom elements. 2012-08-08 09:07:31 -07:00
Yury Delendik
70beb11a50 Merge pull request #1953 from brendandahl/b2g
Add B2G build and new preprocessor.
2012-08-08 08:37:26 -07:00
gigaherz
fdc6dc7ee4 Improved page tracking on scrolling [squashed] 2012-08-08 01:52:22 +02:00
gigaherz
d01071f426 Remove the commented out call to info() 2012-08-07 17:54:05 +02:00
gigaherz
a114d13308 Fix some minor issues/nits detected by JetBrains' WebStorm inspector. 2012-08-07 17:00:42 +02:00
Yury Delendik
b272cb7d1d Using readAsArrayBuffer 2012-08-06 12:50:47 -05:00
Yury Delendik
c515bd2c52 Adds overrideMimeType for IE10 2012-08-06 11:47:34 -05:00
Brendan Dahl
0bf583412a Add missing b2g snippet. 2012-08-02 09:09:07 -07:00
Brendan Dahl
11be208388 Move firefoxcom to its own file. 2012-08-01 15:31:25 -07:00
Yury Delendik
37db58e068 Merge pull request #1908 from brendandahl/fix-initial-scroll
Fix initial scroll direction detection.
2012-08-01 15:05:35 -07:00
Yury Delendik
10bd03c10f Merge branch 'master' of git://github.com/mozilla/pdf.js.git into loadingbychrome 2012-08-01 16:40:14 -05:00
Brendan Dahl
78e7d531b2 Merge pull request #1942 from gigaherz/opera-dropdown-background
Workaround Opera background style in <select> element.
2012-08-01 13:16:15 -07:00
Brendan Dahl
44a6afb282 Fix mozcentral build. 2012-08-01 12:16:28 -07:00
Yury Delendik
f69e0dca53 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into loadingbychrome
Conflicts:
	web/viewer.js
2012-08-01 13:58:09 -05:00
Brendan Dahl
492fa6edb4 Add the new preprocessor. 2012-08-01 11:55:39 -07:00
Brendan Dahl
6d35073a9c Initial build for b2g. 2012-08-01 11:55:39 -07:00
Brendan Dahl
a341c66db6 Fix nit. 2012-07-31 13:58:25 -07:00
Yury Delendik
c905191de2 Implements loading PDF data by extension/chrome 2012-07-31 12:21:07 -05:00
gigaherz
d9ea503399 Workaround Opera not supporting 'transparent' background style in <select> element. 2012-07-31 10:48:52 +02:00
Saebekassebil
8544101970 Add fullscreen image, and fix last page artifact 2012-07-30 20:15:48 +02:00
Saebekassebil
dacdbaa978 Correct l10n and address yury's comments 2012-07-30 17:58:34 +02:00
Saebekassebil
7a147c0091 Revert mistakes in css 2012-07-30 17:52:29 +02:00
Saebekassebil
39d3ea862b Initial support for Presentation Mode 2012-07-30 17:12:49 +02:00
Yury Delendik
af4bd10c70 Allow relative URLs in getDocument 2012-07-26 12:11:28 -05:00
Brendan Dahl
b3a603c199 Merge pull request #1840 from yurydelendik/loadpdf-1
Moves loading of the binary PDF data to the worker
2012-07-23 16:27:55 -07:00
Yury Delendik
a630aa4edd Merge pull request #1839 from jviereck/textlayer_ctx_measure
Speedup textLayer creation
2012-07-19 15:12:49 -07:00
Yury Delendik
7a0e91af4b removes expandUrl(url); fixes error message 2012-07-19 16:10:26 -05:00
Brendan Dahl
9ae859f594 Fix initial scroll direction detection. 2012-07-18 11:20:20 -07:00
Brendan Dahl
e0378530e2 Use PDFView.error to avoid issues with alert. 2012-07-12 11:58:06 -07:00
Brendan Dahl
d32906adc4 Add back basic printing support for non-moz browsers.
Shadow/cache supports browsing.
Destroy pages on error and only abort if supported.
2012-07-12 10:31:20 -07:00
Brendan Dahl
4655ec0c75 Localize print message. Show/hide print button. 2012-07-09 16:04:55 -07:00
Brendan Dahl
7e5a9b7a39 Adds support for the new mozPrintCallback api. 2012-07-09 10:41:52 -07:00
Yury Delendik
eb863b2298 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into loadpdf-1
Conflicts:
	src/api.js
2012-06-28 05:26:16 -05:00
Yury Delendik
665ff0d36f Merge pull request #1849 from kingsquare/master
Fix for web worker test in Safari
2012-06-28 03:05:04 -07:00
Tim de Koning
8292951d0c - Feature detection for setProperty feature detection should not return value
- Minor comment update
2012-06-28 09:14:51 +02:00
Tim de Koning
a30199527e We should use feature detection. Thanks @brendandahl 2012-06-28 09:10:18 +02:00
Yury Delendik
54db7489bd Merge pull request #1831 from brendandahl/priority-rendering
Change to priority/pausible rendering.
2012-06-27 12:44:58 -07:00
Tim de Koning
44d0802700 We should use feature detection. Thanks @brendandahl 2012-06-27 18:30:43 +02:00
Tim de Koning
d70e6ab40c Bug, seen by @yurydelendik, thanx! 2012-06-27 17:03:34 +02:00
Tim de Koning
17c1018eef lint compliance 2012-06-27 11:14:14 +02:00
Tim de Koning
823db83b19 Fixed Safari / Iphone / Ipad support further 2012-06-27 11:05:17 +02:00
Brendan Dahl
f90a05f5f8 Merge pull request #1837 from yurydelendik/jbig2-1
JBIG2 implementation
2012-06-26 16:00:32 -07:00
Yury Delendik
00f1d6dbf1 Fetches pdf data in the worker 2012-06-23 14:48:33 -05:00
Julian Viereck
12b799cd02 Use a canvas to measure the width of the text layer div instead of using the slow offsetWidth property 2012-06-23 16:07:17 +02:00
Brendan Dahl
8b0fd2a8f9 Merge upstream. 2012-06-19 09:02:23 -07:00
Brendan Dahl
ed7a10a8d5 Remove unneeded scroll when we first load a page. 2012-06-18 14:12:00 -07:00
Yury Delendik
e09eb529d9 Adds basic symbol dictionary and text region. 2012-06-18 15:03:20 -05:00