Commit Graph

374 Commits

Author SHA1 Message Date
gigaherz
6ba38daf56 Tiny issue with tabs/spaces in viewer.html 2012-02-07 09:30:47 +01:00
gigaherz
14eae7cb9f Move code to the right place and give it a better style.
Highlight the background on hover.
2012-02-07 09:23:23 +01:00
Brendan Dahl
9a1741f466 Protect against a malicious setDatabase. Remove unneeded save data. 2012-02-06 21:04:53 -08:00
gigaherz
6bb14af71c Made the code somewhat cuter. Still totally wrong in concept. 2012-02-05 13:37:50 +01:00
gigaherz
a617aff425 Quick & dirty sidebar pinning. 2012-02-04 21:13:12 +01:00
Brendan Dahl
c7c8f1cafa Merge pull request #1120 from arturadib/localStorage-fix
Fixes localStorage feature detection
2012-02-03 11:22:50 -08:00
Brendan Dahl
b3fb41caa9 Merge pull request #1106 from arturadib/issue-1049
fontMatrix parsing fix, setFont() supports negative sizes
2012-02-03 11:10:58 -08:00
Jeff Wagner
e73e10c4d9 IE9 SVG images need viewport defined 2012-02-02 12:33:28 -08:00
Brendan Dahl
6e0891d1f4 Merge pull request #1150 from arturadib/loading-icon
Show animated loading icon until page loads
2012-02-01 12:24:31 -08:00
Artur Adib
2f1252af36 CSS fix 2012-02-01 15:19:01 -05:00
Artur Adib
6aa02d286e Merge branch 'refs/heads/master' into localStorage-fix
Conflicts:
	web/viewer.js
2012-02-01 12:08:40 -05:00
Brendan Dahl
b381c960d9 Merge branch 'master' of https://github.com/mozilla/pdf.js into amowarnings 2012-01-31 17:53:54 -08:00
Artur Adib
8950d0bca9 Remove instead of hide icon 2012-01-31 16:53:54 -05:00
Artur Adib
5ef79dca14 New version: show loading icon until page renders 2012-01-31 16:49:48 -05:00
Artur Adib
47f24cd27b Show animated loading icon if page renders slow 2012-01-31 16:20:09 -05:00
Artur Adib
7873ec966b Merge branch 'refs/heads/master' into issue-1049
Conflicts:
	src/canvas.js
2012-01-31 13:20:05 -05:00
Artur Adib
30a01c5da6 addressing reviewer comments, bug fix 2012-01-30 09:24:49 -05:00
Brendan Dahl
337806deed Fix url for thumbnail. (still not working 100) 2012-01-27 10:53:37 -08:00
notmasteryet
2b2e4b19ab Fixing initial scale when named destination is specified 2012-01-25 21:52:10 -06:00
notmasteryet
d2ec98b31e Merge pull request #1103 from jviereck/tree-02
Replace some setScale by parseScale calls to update `currentScaleValue` value
2012-01-25 19:08:56 -08:00
Brendan Dahl
0d839c1c59 Fix how we're storing settings and change how the save pdf works. 2012-01-25 17:40:08 -08:00
Brendan Dahl
858aab008f Fix the download button. 2012-01-24 21:33:03 -08:00
Brendan Dahl
dd8c39d8e1 Fix the bookmark button and redo the anchor prefix. 2012-01-24 15:46:53 -08:00
Brendan Dahl
f3b2a03de6 Hide the browse bar for the ff extension. 2012-01-24 15:13:50 -08:00
Brendan Dahl
23bf35d5ef Fix anchor links. 2012-01-24 14:55:07 -08:00
Jeff Wagner
08f8aed521 define console for IE9; updated to fix lint errors and comment 2012-01-24 14:19:41 -08:00
Jeff Wagner
19622406da define console for IE9 when debugging tools is not opened 2012-01-24 12:19:52 -08:00
Artur Adib
843830cea0 Workaround for FF bug 2012-01-24 10:39:57 -05:00
Artur Adib
5c62f99fee Fix localStorage feature detection. Close #1099 2012-01-24 10:08:18 -05:00
Brendan Dahl
178b89342a Switch to stream converter for extension. 2012-01-23 16:50:45 -08:00
Brendan Dahl
edc632e469 Fix innerHtml warnings. Remove compatibility.js from the extension. 2012-01-20 14:48:57 -08:00
Brendan Dahl
f74772f40e Merge pull request #1068 from notmasteryet/jpx6
JPX decoder
2012-01-20 11:32:02 -08:00
Artur Adib
38d28ecb2e Improved error handling/message 2012-01-19 16:02:27 -05:00
Julian Viereck
ada3f33375 Replace some setScale by parseScale calls to update value 2012-01-19 19:25:29 +01:00
Artur Adib
ba4f0e66aa reviewer comments 2012-01-19 09:11:48 -05:00
Artur Adib
1c7f1b9881 Fix previous commit 2012-01-18 12:07:25 -05:00
Artur Adib
5f4d462144 Ensure single chars are added to the layer 2012-01-18 11:41:13 -05:00
Artur Adib
499a9b0146 Fix for "Error parsing value of 'letter-spacing'" 2012-01-12 10:15:45 -05:00
Artur Adib
504d9f12c1 Using addEventListener/removeEventListener 2012-01-12 09:16:03 -05:00
notmasteryet
93ca387d1b Migration of the JPX code (from jpx5) 2012-01-11 20:08:46 -06:00
Brendan Dahl
bd6d89e1a8 Start of the benchmark recording framework. 2012-01-11 16:48:51 -08:00
Artur Adib
fcdf266d8e Lazy textLayer rendering - pauses after scroll ev 2012-01-11 16:57:57 -05:00
Artur Adib
5b3f5a30ab Merge pull request #1035 from notmasteryet/tree-54
Fixes thumbnail's drawingRequired
2012-01-06 10:16:18 -08:00
Artur Adib
a4f257f940 nit 2012-01-06 08:27:23 -05:00
notmasteryet
80a1919cfc Fix thumbnail's drawingRequired 2012-01-05 18:39:48 -06:00
Artur Adib
ef137dd6a7 Support for textLayerBuilder 2012-01-05 10:42:05 -05:00
Artur Adib
4f65198eaa Merge branch 'master' into disable-textlayer-opt 2012-01-05 10:19:15 -05:00
Artur Adib
5760d1e0f1 Merge pull request #958 from jviereck/viewer_improvements
Render the next not yet visible page in the background
2012-01-05 06:14:04 -08:00
notmasteryet
fbb9acc8cf Merge pull request #1028 from brendandahl/easiererrorcv
Easier copy/paste error message.
2012-01-04 16:52:52 -08:00
Jeff Wagner
567dd330e1 Fix subarray error for IE9 2012-01-04 15:10:25 -08:00
Brendan Dahl
5bd4d1987a Easier copy/paste error message. 2012-01-04 14:48:59 -08:00
Julian Viereck
5830474ef7 Add preDraw() functionality to render the next page in the background 2012-01-04 23:11:59 +01:00
Artur Adib
9732ad688d Merge branch 'master' into disable-textlayer-opt 2012-01-04 15:54:52 -05:00
Brendan Dahl
dba1a7dc6f Merge pull request #982 from merkste/opera-css-issues
support for Opera's linear gradients and transitions
2012-01-04 12:52:40 -08:00
Artur Adib
07deee5750 Merge pull request #954 from notmasteryet/textlayout-ui
Move text layer UI to viewer.js...
2012-01-04 12:52:03 -08:00
Artur Adib
c8192698fc disableTextLayer option 2012-01-04 11:20:19 -05:00
Julian Viereck
496e598813 Reset scale value on opening new file 2012-01-04 09:24:09 +01:00
notmasteryet
219a60175c Fix blank unopened document regression 2012-01-03 19:11:25 -06:00
notmasteryet
edb0ae4eb8 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into textlayout-ui
Conflicts:
	src/canvas.js
2012-01-03 18:42:13 -06:00
Julian Viereck
bf26c1a18c Merge pull request #957 from jviereck/viewer_default_width
Change default width to page-width
2012-01-03 14:02:34 -08:00
Julian Viereck
9157597175 Fix lint error 2012-01-03 22:48:32 +01:00
Julian Viereck
2f563dbd2b Treat zoom such that it can be a string value as well. 2012-01-02 20:42:51 +01:00
Julian Viereck
b4a42930d6 Add selectScaleOption function back, that seems to got lost during rebaseing 2012-01-02 20:09:38 +01:00
Julian Viereck
c82b2faa0e Remove brakets 2012-01-02 20:02:21 +01:00
Julian Viereck
db627c4082 Ignore new scale value if it's the same as before 2012-01-02 20:02:20 +01:00
Julian Viereck
997e094bdc Add new 'Auto' option for the viewer. 2012-01-02 20:02:20 +01:00
notmasteryet
877e0f4159 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into textlayout-ui
Conflicts:
	web/viewer.js
2011-12-30 19:22:59 -06:00
notmasteryet
e6b0d768fe Improving typed arrays compatibility support 2011-12-30 15:32:53 -06:00
Brendan Dahl
9fd41e11da Merge pull request #990 from notmasteryet/concurload
Fixes concurrent pages loading (#974 and #626)
2011-12-30 09:40:12 -08:00
notmasteryet
1074c75f32 remove unused field 2011-12-29 18:01:47 -06:00
notmasteryet
c25f837766 Fixes concurrent pages loading (#974 and #626) 2011-12-28 19:18:55 -06:00
Steffen Märcker
440a47e593 fixed viewer.css to support Opera's linear gradients and transitions 2011-12-27 11:49:11 +01:00
Saebekassebil
ae7f2e9fcc Respect private browsing in extension 2011-12-26 21:14:10 +01:00
Saebekassebil
4358ebc18b Too rash yet again. Bracket and style nits 2011-12-26 16:14:06 +01:00
Saebekassebil
83cb12be7f Set page number instead of window.scrollTo, and remove Cookie reference 2011-12-26 16:07:56 +01:00
Saebekassebil
e147485262 Refactoring Settings manager, now with limit on memory usage 2011-12-26 15:07:24 +01:00
Saebekassebil
4c064eb94a Missed function name... 2011-12-26 00:48:10 +01:00
Saebekassebil
4ea5b9f771 Remember hash position correctly 2011-12-26 00:42:46 +01:00
Saebekassebil
959b419082 Fixes shortcuts steals from browser - Issue #979 2011-12-25 22:18:52 +01:00
Saebekassebil
c7375745ae Too rash. Fixes gjslint errors 2011-12-23 23:56:01 +01:00
Saebekassebil
ac8f0e2c87 Address yury's comments, and remove unnecessary hash settings 2011-12-23 23:36:37 +01:00
Saebekassebil
0de0e92bc4 Added #getFingerprint method to PDFDocModel 2011-12-22 23:44:42 +01:00
Saebekassebil
d44f9f2074 Implemented Settings manager. Now remembering scroll positions 2011-12-22 22:29:01 +01:00
Saebekassebil
33e8d988c4 Image directory as a constant, adding myself to LICENSE file 2011-12-22 14:44:08 +01:00
Saebekassebil
12e2dcd775 Addressing notmasteryet's comments 2011-12-22 11:29:27 +01:00
Saebekassebil
c714c782cc Lint nits 2011-12-21 23:37:52 +01:00
Saebekassebil
4a661e1735 Implemented Comment and Check annotation. Correcting some typos in last commit 2011-12-21 23:22:07 +01:00
Artur Adib
ca7d44c646 Merge pull request #749 from notmasteryet/forms-1
Simple AcroForms support
2011-12-21 06:16:30 -08:00
notmasteryet
8288b17edc move inputHint to examples 2011-12-19 20:04:16 -06:00
notmasteryet
6011b5b4db Moving forms UI into examples 2011-12-19 20:00:50 -06:00
Chris Peterson
8adb92a709 Fix typo: s/handle/handled/ 2011-12-18 20:58:14 -08:00
Chris Peterson
396daddefe Add keyboard shortcuts to navigate pages with 'n' and 'p' keys (Next/Previous) 2011-12-18 20:42:18 -08:00
Chris Peterson
4008ec69b8 Add keyboard shortcuts to navigate pages with 'j' and 'k' keys like vi 2011-12-18 20:40:44 -08:00
Chris Peterson
aebb9946f8 Add keyboard shortcuts to navigate pages with left and right arrow keys
This is the behavior of Adobe Reader.app and Apple's Preview.app.
2011-12-18 20:39:41 -08:00
Julian Viereck
3a86e047e0 Prevent default actions when zooming. Otherwise the browser performs a zoom of the entire page 2011-12-18 20:42:06 +01:00
notmasteryet
0f6291c7b9 Move text layer UI to viewer.js; fixes adding div with single char; replaces innerHTML to textContent 2011-12-18 12:53:30 -06:00
notmasteryet
d6e4607fd0 Add compatibility for HTMLElement's dataset (#945) 2011-12-15 20:44:55 -06:00
notmasteryet
b010f293a2 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into forms-1 2011-12-15 15:35:44 -06:00
notmasteryet
ddf9c43116 Fixing setting of auto-zoom value in bookmarks (#938) 2011-12-14 18:44:35 -06:00
Artur Adib
8c728a884e Merge branch 'refs/heads/master' into disableworker-in-url
Conflicts:
	web/viewer.js
2011-12-09 15:38:08 -05:00
Artur Adib
8439830d4e disableWorker via URL 2011-12-09 13:17:48 -05:00
notmasteryet
efd82ab5bd Merge pull request #854 from arturadib/thumb-smooth
Smarter thumbnail scrolling
2011-12-08 16:55:46 -08:00
Artur Adib
2040c35001 Moved event binding to 'load' event 2011-12-07 08:52:13 -05:00
Artur Adib
7d8240f15c Addressing comments, linting 2011-12-06 16:52:29 -05:00
notmasteryet
dbf869f195 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into forms-1
Conflicts:
	web/viewer.css
2011-12-05 17:01:45 -06:00
Brendan Dahl
685a263e54 Merge pull request #855 from notmasteryet/isname
replace isName in the viewer.js
2011-12-02 17:20:17 -08:00
Brendan Dahl
e0c231eec7 Merge upstream and change to error parameter for callback. 2011-12-02 10:19:43 -08:00
Brendan Dahl
7d57f5d2eb Address Yury's comment 2. 2011-12-02 08:58:40 -08:00
Brendan Dahl
b958fd41d8 Merge pull request #738 from arturadib/text-select
Text selection
2011-12-01 12:29:13 -08:00
Brendan Dahl
3ae06c96ad Address Yury's comments. 2011-12-01 09:11:33 -08:00
notmasteryet
c06697732f Avoiding pageRefMap is not defined in the getDestinationHash() 2011-11-30 19:04:45 -06:00
notmasteryet
66eda9b36b replace isName in the viewer.js 2011-11-30 18:54:04 -06:00
Artur Adib
8dc467709d bug fix 2011-11-30 16:14:22 -05:00
Artur Adib
5aad7cb7b5 Merge branch 'master' of git://github.com/mozilla/pdf.js into thumb-smooth
Conflicts:
	web/viewer.js
2011-11-30 15:58:44 -05:00
Artur Adib
4369a1a84a make it work in WebKit 2011-11-30 15:20:14 -05:00
Artur Adib
a523d80753 bringing Cache() back 2011-11-30 15:10:27 -05:00
Artur Adib
e316d78755 Smoother thumbnail scrolling via lazy rendering 2011-11-30 14:19:07 -05:00
Artur Adib
6a747c4353 Created inactive window bugzilla bug 2011-11-29 14:54:32 -05:00
Brendan Dahl
cddb106358 Fix lints. 2011-11-29 11:32:01 -08:00
Brendan Dahl
b40af3555b Display error messages on more problems. 2011-11-29 11:28:05 -08:00
Brendan Dahl
6dd706c0c3 Make the error a little smaller. 2011-11-29 09:36:50 -08:00
Brendan Dahl
eaac818946 Merge and fix upstream conflict. 2011-11-28 17:49:12 -08:00
Brendan Dahl
d6925b13ba Adding new errorback and code to display error messages. 2011-11-28 16:55:09 -08:00
Artur Adib
4cfc552163 Merge branch 'master' of git://github.com/mozilla/pdf.js into text-select
Conflicts:
	src/canvas.js
	web/viewer.js
2011-11-28 10:02:07 -05:00
notmasteryet
8685915542 Re-using the pages as thumbnails 2011-11-24 12:53:11 -06:00
Artur Adib
5c261b46cc Merge branch 'refs/heads/master' into text-select
Conflicts:
	src/fonts.js
2011-11-14 15:21:18 -05:00
notmasteryet
1c18d054d5 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into forms-1 2011-11-12 15:20:31 -06:00
Brendan Dahl
a0e1d0652c Merge remote-tracking branch 'upstream/master' into cmykjpgnorm 2011-11-09 09:50:57 -08:00
Artur Adib
f2d54d3207 Replacing URL flag format 2011-11-08 20:02:28 -05:00
Brendan Dahl
9bb2b881b0 Adds cmyk jpg support. Treats the cmyk jpg as a regular stream. 2011-11-08 08:48:10 -08:00
Artur Adib
46a48a56b7 Merge branch 'refs/heads/master' into text-select
Conflicts:
	src/core.js
2011-11-08 08:56:52 -05:00
Brendan Dahl
09722d7d3c Merge pull request #740 from acornejo/master
(firefox extension) Slimmed down toolbar height, from 40 to 24px.
2011-11-03 09:10:18 -07:00
notmasteryet
3d36a05d7f Text alignment inside input controls 2011-11-02 22:00:33 -05:00
notmasteryet
f3ee85efab Simple AcroForms support 2011-11-02 20:46:39 -05:00
Artur Adib
49a303f2f2 Merge branch 'refs/heads/master' into text-select
Conflicts:
	src/core.js
2011-11-02 11:23:42 -04:00
Julian Viereck
51d4a17232 Change workerSrc location 2011-11-01 22:23:16 +01:00
Julian Viereck
94b8c4656b Merge with master 2011-11-01 19:56:34 +01:00
Julian Viereck
3b7829d057 Address review comments. Use only one PDFJS.workerSrc variable to specify the worker source 2011-11-01 19:32:20 +01:00
Brendan Dahl
a2748cd84c Merge pull request #741 from arturadib/mozilla-repo
Search-replace URLs from andreasgal --> mozilla
2011-11-01 09:15:36 -07:00
Artur Adib
1f80b0b266 Replace andreasgal/pdf.js --> mozilla/pdf.js 2011-11-01 08:46:39 -04:00
Alex Cornejo
46c0f6c23e Slimmed down toolbar height, from 40 to 24px.
This matches the height of the regular Firefox toolbars, 40px takes too
much screenspace, and (in my opinion) unecessarily so, since the fonts
are not even larger.
2011-10-31 18:23:03 -04:00
Artur Adib
98f3bab65c Lazy rendering 2011-10-31 16:49:18 -04:00
notmasteryet
0912959503 Fixing 'compatibility.js' load order; add Object.keys emulation 2011-10-29 16:00:13 -05:00
Artur Adib
e7d08e3a98 Selection working 2011-10-28 17:37:55 -04:00
Artur Adib
6c5d2ac88b progress 2011-10-28 12:16:17 -04:00
Julian Viereck
1e6d1f9922 Make worker support work again after file split. Add PDFJS_WORKER_DIR/PDFJS_WORKER_FILE to specify where to load files if worker support is enabled 2011-10-28 14:32:36 +02:00
Artur Adib
1d4e3025b6 PDF --> PDFJS, global wrapper named 2011-10-26 14:46:57 -04:00
Artur Adib
0075007d49 Production scripts 2011-10-25 17:22:45 -07:00
Artur Adib
2e0af76865 Viewer working with dev version 2011-10-25 15:43:41 -07:00
Artur Adib
21753b9e89 Only one worker file, bundled in pdf.js 2011-10-25 10:16:20 -07:00