Manas
a2ba1b8189
Uses editorconfig to maintain consistent coding styles
...
Removes the following as they unnecessary
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
10 years ago
Manas
dbcb46c8de
Uses @alias to fix missing comments on JSDocs pages
10 years ago
Yury Delendik
601d29b14e
Fixes all examples to require workerSrc to be set.
10 years ago
Yury Delendik
8d15ecb14b
Ignore any pending data when worker is terminated.
10 years ago
Tony Jin
ef667823dd
[api-minor] Add an optional param to DocumentInitParameters for specifying the range request chunk size to use. Defaults to 2^16 = 65536.
10 years ago
Jonas Jenwald
5bd95df427
Prevent `TypeError: page is undefined` when the document has been destroyed (PR 6546 follow-up)
...
*Follow-up to PR 6546.*
If rendering has already started when the document is destroyed, then `this.pageCache[data.pageIndex]` may already have been cleared when the `StartRenderingPage`/`RenderPageChunk` messages are recieved in `api.js`, which results in `TypeError`s being thrown.
10 years ago
Yury Delendik
5135aa9bec
Adds deprecation warning for the API calls.
10 years ago
Yury Delendik
58c3ea0820
Adds thread abort capabilities.
10 years ago
Yury Delendik
59c13b32aa
Adds destroy method to the document loading task.
...
Also renames PDFPageProxy.destroy method to cleanup.
10 years ago
Jonas Jenwald
9ab896e307
[api-minor] Add an option to PDFJS for specifying the |target| attribute of external links
...
Replaces `PDFJS.openExternalLinksInNewWindow` with a more generic configuration option.
*Note:* `PDFJS.openExternalLinksInNewWindow = true;` is equal to `PDFJS.externalLinkTarget = PDFJS.LinkTarget.BLANK;`.
10 years ago
Vincent Castelain
0cd4cc4e80
api/getDocument : handle ArrayBuffer check for PDF binary data (byteLength)
10 years ago
Mike Skalnik
341c5e9d1f
[PATCH] Add fallback for font loading when eval disabled
...
In some cases, such as in use with a CSP header, constructing a function with a
string of javascript is not allowed. However, compiling the various commands
that need to be done on the canvas element is faster than interpreting them.
This patch changes the font renderer to instead emit commands that are compiled
by the font loader. If, during compilation, we receive an EvalError, we instead
interpret them.
10 years ago
Tim van der Meij
995c5ba205
Simplify annotation data passing
10 years ago
Yury Delendik
dd07ef9c6a
Disables rAF for the printing.
10 years ago
Jonas Jenwald
65a5543efe
Disable PresentationMode for certain problematic configurations
...
Instead of trying to hack around various browser defects, let's just disable PresentationMode in the affected browsers. This patch:
- Disables PresentationMode in IE11+ when the viewer is embedded; fixes 4711.
10 years ago
Mike Lyons
d271811740
Add option to open external links in new window
10 years ago
Collin Anderson
54e984c763
cleaned whitespace
10 years ago
Jonas Jenwald
daba13aebb
Amend the docs for |disableAutoFetch| to mention that streaming must also be disabled
10 years ago
Yury Delendik
81649b00a9
Base64 example and be more flexible what type of data is passed.
10 years ago
Yury Delendik
3a61edfcae
Refactors getDocument and adds PDFDataRangeTransport.
10 years ago
Tim van der Meij
b215af30d3
Require destinations when they are needed and do not fetch all of them in advance
11 years ago
Jonas Jenwald
cb3e5903cb
Fix disableAutoFetch regression in the generic viewer
...
After PR 5263, setting `disableAutoFetch = true` in the generic viewer no longer works correctly, since the entire file loads even with `disableStream = true`.
11 years ago
Rob Wu
6a230af332
Rename FontFace to FontFaceObject
...
This name clashes with the FontFace constructor from the Font Loading CSS module:
http://dev.w3.org/csswg/css-font-loading/#font-face-constructor
11 years ago
Yury Delendik
c3f191a27c
Implement streaming using moz-chunk-arraybuffer
11 years ago
Jonas Jenwald
ed5fc43510
Add |UnexpectedResponseException| to fix the exception handling when file loading fails because the server responds with a non 404 status message
11 years ago
Jonas Jenwald
ca027ebfdb
Fix the exception propagation when rejecting workerReadyCapability
...
Currently when an exception is thrown, we try to reject `workerReadyCapability` with multiple arguments in src/core/api.js. This obviously doesn't work, hence this patch changes that to instead reject with the exception object as is.
In src/core/worker.js the exception is currently (unncessarily) wrapped in an object, so this patch also simplifies that to directly send the exception object instead.
11 years ago
Jonas Jenwald
64d95bedaa
In src/display/api.js, add documentation for the |progressCallback| parameter in |PDFJS.getDocument|
11 years ago
pramodhkp
6d53fc4db7
Minor changes for api.js, font_loader.js and svg.js
11 years ago
Jonas Jenwald
a4b06d7a02
Add strict equalities in src/display/api.js
11 years ago
pramodhkp
1d00e9d13c
Added getOperatorList to api.js
11 years ago
Yury Delendik
0cd28ebfa3
Telemetry for used stream and font types
11 years ago
Jonas Jenwald
3c78c7b8bc
Refactor fake worker loading (issue 3862)
11 years ago
Samuel Chantaraud
952545e20f
Limit the size of canvases to 5MP (iOS restriction)
11 years ago
Mohammed Abu-alsaad
e6546642db
Added more preference variables from the available hash parameters
11 years ago
Jonas Jenwald
c4d4682924
Fix regression that prevents downloading the PDF file (PR 4752)
11 years ago
Yury Delendik
c5eb058b09
Uses rAF to interrupt the operator list execution
11 years ago
Yury Delendik
cc9643cf32
Refactors GetAnnotationsRequest and GetPageRequest
11 years ago
Yury Delendik
2008f74185
Refactors MessageHandler.send to remove callbacks
11 years ago
Jonas Jenwald
652dde48da
Fix typo when rejecting Promise in getPage
11 years ago
Jonas Jenwald
f3f3db0d15
Remove 'info' and 'metadata' from GetDoc
11 years ago
Jonas Jenwald
069f0cc8c0
Remove 'javaScript' from GetDoc
11 years ago
Jonas Jenwald
4bfcb27d0b
Remove 'outline' from GetDoc
11 years ago
Yury Delendik
95e61ad0e3
Adds pageviewport documentation
11 years ago
Yury Delendik
2b82eb0161
Fixes cancel rendering regression
11 years ago
Pramodh KP
0d5b41633f
Remove legacy promises from api.js
11 years ago
Samuel Chantaraud
25ee0e8572
Preliminary attachments support
...
Added a partial Filespec support
Added getAttachments in API
Added a new attachments view in UI (with a new icon by @shorlander )
11 years ago
Yury Delendik
a00f854848
Refactors buildImage to use Promise; don't draw bad images
11 years ago
Yury Delendik
8c0762a32a
Adds then method to the RenderTask
11 years ago
Yury Delendik
175fbce0df
Fixes documentation for PDFPage.render
11 years ago
Tim van der Meij
4e055169ed
Fixes lint warning W004 in src/display/{api, canvas, pattern_helper}.js
11 years ago