Jonas Jenwald
12f3d58506
Ensure that the errorWrapper is closed when a new document is opened (issue 4625)
11 years ago
Yury Delendik
1fd43a87db
Changes 'documentload' event behavior.
11 years ago
Rob Wu
bfcc8af6ed
Move logic from viewer.js to chromecom.js
...
and also default to '' instead of DEFAULT_URL to avoid trying to
load a non-existent file when no file has been specified.
11 years ago
Rob Wu
b64c06f68d
Work-around for filesystem:-URL bug ( #4592 ).
...
Visit https://robwu.nl/pdfjs/filesystem-worker-bug.htm and follow the
steps to verify that the extension works as intended with this patch.
11 years ago
Jonas Jenwald
965f7a7b14
Print WebGL status in the console
11 years ago
Tim van der Meij
b348243866
Fixes lint warning W004 in /web
11 years ago
Jonas Jenwald
eb7f369c54
Remove leading and trailing spaces from info.Producer and info.Creator when printing debug info in the console (bug 872827)
11 years ago
Yury Delendik
30ab878835
Add enableWebGL to the preferences
11 years ago
Yury Delendik
f57c6935d7
Implements WebGL support
11 years ago
Jonas Jenwald
c920372ff2
Rewrite 'Preferences' to make it async
11 years ago
Jonas Jenwald
025f340228
Prevent the Document Properties from being empty when the dialog is opened before the file has started loading
11 years ago
Rob Wu
d04f81b964
Improved FTP support for Chromium extension
11 years ago
fkaelberer
db84851e27
Use full screen width in presentation mode
11 years ago
Yury Delendik
17eded9065
Partially reverts #3641
11 years ago
Yury Delendik
ed8ecfd00a
Cleaning up the viewer and pdfbug; fixes repeats in Stepper
11 years ago
Yury Delendik
1d8f6cf0e7
Updates make.js for cmaps and make binary cmaps by default
11 years ago
Yury Delendik
69efd9cb96
CMaps binary packing
11 years ago
aib
2870a6108c
Fix download button waiting if document has started but not completed downloading
11 years ago
Jonas Jenwald
9e0ed5ca7e
Fix coding style in web/viewer.js
11 years ago
Jonas Jenwald
6fd0b063e9
Fix scrolling using Shift+Spacebar in Firefox
11 years ago
Brendan Dahl
ce9e9e6ff7
Remove embeddedFontsUsed from API.
11 years ago
Samuel Chantaraud
dcb174ed58
Made viewer's webViewerLoad callable from outside viewer.js
...
To allow manual triggering when DOMContentLoaded can not be relied upon.
11 years ago
Rob Wu
3f96d0dabb
Ctrl/cmd + S = save PDF instead of viewer.html
11 years ago
Samuel Chantaraud
cbc9ad3cb6
Correct formatting of locale to make it compatible with l10n (safari issue)
11 years ago
Jonas Jenwald
4ee1fb7956
Fix spacebar scrolling in Firefox (4224 follow-up)
11 years ago
Jonas Jenwald
d6ca563f46
Fix wrong page being displayed when entering/exiting Presentation mode with zoom set to 'page-fit'
11 years ago
Brendan Dahl
b5b94a4af3
Use built in CMaps and unify the glyph mapping.
11 years ago
Brendan Dahl
e477958b74
Remove inline script warnings.
11 years ago
Rob Wu
ce9400dc8b
Handle navigation keys when viewer is not focused
...
Restrict the scrollbar hack to the keycode for "spacebar",
since the bug only occurs in Firefox with spacebar.
Keyboard navigation is only activated for the spacebar if
the currently focused element is not a button.
11 years ago
Rob Wu
eaf7daf7db
[CRX] Pass expected length of stream to viewer
...
To get a progress bar for POST/FTP requests in Chromium.
11 years ago
Rob Wu
64a4a27455
Remove obsolete code from shortcut handler
...
These lines were introduced in 612f59aa10
when the only shortcuts were +/-/=/0 (to change zoom level).
Back then, when the input fields were focused, using these keys would
add these unwanted characters to the input field and change the zoom
level of the viewer. Having both operations at the same time was an
undesired event, so a check was inserted, to ignore shortcuts when
the toolbar is focused.
The #toolbar element doesn't exist any more, so these lines are obsolete.
11 years ago
Yury Delendik
e5e9c6e243
Fixes PDFDocumentProxy.getDownloadInfo API name (and refactoring)
11 years ago
Tim van der Meij
b4b145507c
Implements mouse wheel behaviour for non-Firefox browsers
11 years ago
Yury Delendik
18515b8668
Using blob URL for open file
11 years ago
Rob Wu
7bbff32a4d
[security] Verify message source in Firefox add-on
...
And put initPassiveLoading within a preprocessor block because
it is only used by Firefox.
11 years ago
Rob Wu
60fb28caf0
Register as File browser handler in Chrome OS
11 years ago
Rob Wu
b0e18a0703
[CRX] Remove redundant location.origin check
...
The PDF Viewer will always be rendered directly from the extension,
so checking "origin == chrome-extension:/.." is not needed any more.
( since edd4bae903
)
11 years ago
Rob Wu
aeaf11ca43
[CRX] Fall back to sender.tab.url if !tab.url
...
sender.url is relatively new (Chromium 29)
( https://chromiumcodereview.appspot.com/14301016 )
11 years ago
Tim van der Meij
5f7ded4ff6
Document properties
11 years ago
Sriram
151cd6dee8
Terminate worker of previous doc
11 years ago
Tim van der Meij
e14d917161
Close the secondary toolbar when an action is only performed once
11 years ago
Jonas Jenwald
181e06f30a
Fix regression that disabled the "Open With Different Viewer" button on the fallback bar
11 years ago
Rob Wu
cdadb0db4d
Proof of concept using chrome.streamsPrivate API
...
This method captures all application/pdf streams, loads the viewer
and passes the stream to the PDF.js viewer.
This commit shows a proof of concept using the chrome.streamsPrivate API.
Advantages of new method:
- Access to the response body of the original request, thus fewer
network requests.
- PDFs from non-GET requests (e.g. POST) are now supported.
- FTP files are also supported.
Possible improvements:
- Use declared content scripts instead of dynamic chrome.tabs.executeScript.
This allows the extension to render the viewer in frames when the
extension is disallowed to run executeScript for the top URL.
- Use chrome.declarativeWebRequest instead of webRequest, and replace
background page with event page (don't forget to profile the
difference & will the background/event page still work as intended?).
11 years ago
Tim van der Meij
3e8795f8b8
Prevent the open file button from appearing in the B2G viewer/preview
11 years ago
Tim van der Meij
e05bda4045
De-inline CSS for the 'open file' button
11 years ago
Jonas Jenwald
05c331c295
Maintain the current position in the document when zooming
11 years ago
Brendan Dahl
5d080a03bb
Show a different warning for PDF’s with forms.
11 years ago
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
11 years ago
Brendan Dahl
2228343f77
Only trigger warning bar on certain unsupported features.
11 years ago
Jonas Jenwald
3d523000b9
Fix thumbnail rotation regression
11 years ago