vyv03354
c5b8ee6a91
Implements vertical writing
2013-02-15 03:53:34 +09:00
Yury Delendik
4247339d28
Merge pull request #2711 from marco-c/patch-2
...
Use asyncStorage.setItem for B2G
2013-02-12 20:17:00 -08:00
Mack Duan
c40c594999
Merge pull request #2690 from Snuffleupagus/bug-837462
...
Prevent text selection divs from overflowing page boundries
2013-02-11 10:20:06 -08: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
c2e2afdd59
Prevent text selection divs from overflowing page boundries
2013-02-07 12:13:25 +01:00
Snuffleupagus
d296c3dbaa
Add 'pagemode' URL parameter - comments addressed
2013-02-06 16:58:32 +01:00
vyv03354
07491f584f
Replace getUserData()/setUserData() with CustomEvents
2013-02-06 23:31:50 +09: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
c53fa62e58
Merge pull request #2644 from SSk123/edit_slider_name
...
Bug #767698 Slider Rename
2013-01-31 06:06:06 -08:00
Srishti
a80234fee9
Bug #767698 Slider Rename
...
Bug #767698 Slider Rename
2013-01-31 19:25:02 +05:30
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
Brendan Dahl
971e202f0b
Disable printing a selection for Firefox.
2013-01-30 09:22:00 -05: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
d3836c0173
Fixes the Outline view in RTL languages, follow up of #2510
2012-12-28 13:26:30 +01:00
Snuffleupagus
727505b85d
Add word wrap of text in the Outline view to avoid horizontal scrolling
2012-12-27 18:58:09 +01:00
Daniel Johansson
097c3cf8b1
Fix margin on toolbar button separator to avoid changing height on hover, causing jittering
2012-12-14 22:24:28 +01: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
fd4e40c82b
New GUI for B2G viewer.
2012-11-29 17:01:51 -08: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
Yury Delendik
b47e4b8855
Merge pull request #2327 from brendandahl/un-inline
...
Un-inline pdf.js for the extension/mozcentral and remove fetch pdf by content code.
2012-10-29 16:43:23 -07:00
Brendan Dahl
11175ba6fe
Minor css tweaks for small viewer and aligning borders.
2012-10-29 14:35:07 -07: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
668be62d2b
Merge pull request #2315 from waddlesplash/master
...
Add more annotation icons
2012-10-27 15:09:21 -07:00
waddlesplash
1d43cb2523
Add more annotation icons and vectorize the logo.
2012-10-27 13:40:13 -04: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
Saebekassebil
75af308b38
Fix annotation clipping
2012-10-22 18:00:37 +02: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
391b5b0244
Moving fullscreen top border few pixels up
2012-10-10 22:41:28 -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
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