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
2701edc7c6
Change `getDocumentError` in web/viewer.js to use `instanceof` instead of the exception name
11 years ago
Yury Delendik
42771159ca
Removes stringToArray
11 years ago
Jonas Jenwald
ccd71e0a94
Add strict equalities in src/shared/util.js
11 years ago
Tim van der Meij
41faa78368
Fixes typo in promises implementation for legacy browsers
11 years ago
Nicholas Nethercote
c7f02d2c8e
Minimize memory usage of font-related arrays.
...
This patch replaces some vanilla arrays with typed arrays, and avoids
some array copying.
It reduces the peak RSS when viewing
http://www.dynacw.co.jp/Portals/3/fontsamplepdf/sample_4942546800828.pdf
from ~940 MiB to ~750 MiB, and reduces its load time from 83 to 76 ms.
11 years ago
Nicholas Nethercote
31c613f064
Avoid creating intermediate strings in Util.makeCssRgb().
...
On one example (the Wuppertal map) this avoids the creation of over
230,000 intermediate strings.
11 years ago
Tim van der Meij
4c759527d1
Implements onerror for JpegStreams
11 years ago
Yury Delendik
bdeca30fbf
Splits shared/annotation.js into core/ and display/
11 years ago
Yury Delendik
0cd28ebfa3
Telemetry for used stream and font types
11 years ago
Tim van der Meij
9c072a5d4b
Renames concatenateToArray to appendToArray
11 years ago
p01
0a51b1e616
utils.js optimization of isFOO methods
11 years ago
Yury Delendik
fcc4dfd9b5
Moves shared/function.js to core/
11 years ago
Yury Delendik
542c9c4c7a
Moves ColorSpace logic into evaluator
11 years ago
Samuel Chantaraud
37c3641fad
Added Promise.catch
...
Fixed Promise so it rejects on uncaught exception
Catch possible rejection on ViewHistory.setMultiple
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
Yury Delendik
95e61ad0e3
Adds pageviewport documentation
11 years ago
Jonas Jenwald
ad732f6403
Remove LegacyPromise
11 years ago
Yury Delendik
63d5aae3f6
Groups path commands into single command
11 years ago
Pramodh KP
04b1eefb1d
Added reject polyfill and PromiseCapability
11 years ago
fkaelberer
b06c10cbbd
rename getUint32 to getInt32 and collect readInt*() in util.js
11 years ago
Yury Delendik
2ca2c387fc
Creates make.js code to build jsdoc.
11 years ago
Joshua T Kalis
5828b2c687
Refactor - remove redundant function and all references
...
The function `assertWllFormed` was doing nothing different than `assert` which is
available in the same namespace. Removing it will lighten the filesize - albeit
very slightly - and reduce complexity.
11 years ago
Tim van der Meij
10f80bda23
Fixes lint warning W004 in src/shared
11 years ago
Yury Delendik
791c9a7b13
Relaxes murmurhash array requirement.
11 years ago
fkaelberer
c978c026fa
clean up string conversion functions
11 years ago
Yury Delendik
1d0286f6a1
Update util.js
...
Fixes comments for preprocessor
11 years ago
p01
4e6ebf2de0
Optimized putBinaryImageData for GRAYSCALE_1BPP
...
The following changes make putBinaryImageData 2.2x faster.
* Use a Uint32Array to draw whole pixels instead component by component
* Unroll the inner most loop
* Added lazy PDFJS.hasCanvasTypedArrays, PDFJS.isLittleEndian and compatibility
Uint32ArrayView for browsers using the old CanvasPixelArray
11 years ago
Christian Krebs
fc9edfcf76
Introduce paintSolidColorImageMask command to handle 1x1 solid image masks
...
See https://github.com/mozilla/pdf.js/issues/4436 for details
11 years ago
Yury Delendik
257898b359
Caching inlined mask images
11 years ago
Yury Delendik
f48f57e30a
Caches last parsed resource image, recornizes image repeats
11 years ago
Jonas Jenwald
635466fcd2
Add braces to single line statements in src/shared/util.js
11 years ago
Nicholas Nethercote
ab7568c0ff
Use Array.join() to build up strings in more places.
11 years ago
Luís Nabais
220a8e4f0e
Fix the combineUrl function
...
* Allow a url to omit the protocol and use the same protocol as the
* current page
11 years ago
Nicholas Nethercote
42cbb5b440
Introduce ImageKind constants.
11 years ago
Rob Wu
b35ced8c9e
RFC 3986-compliant isValidUrl (protocol parsing)
...
To avoid misinterpreting URLs like "/File:wikipedia.png" as a
non-relative URLs.
11 years ago
Yury Delendik
754e000907
Fixes and refactors log functionality
11 years ago
Yury Delendik
a8c11ad1e5
Introduces disableObjectCreateURL
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
Brendan Dahl
53549411b4
Add verbosity as an api setting.
12 years ago
Hengjie
b96811df25
Fix Blob creation in Safari 7.0.
...
It should be !== ‘undefined’ to avoid matching everything that Blob can be a type of
12 years ago
Benjamin Flesch
d0ae79c994
Fixed Typo
12 years ago
Yury Delendik
c8af2565f1
Uses blob URL instead of data when possible
12 years ago
Yury Delendik
4ce6cb8b0f
Uses postMessage transfers
12 years ago
Brendan Dahl
c2d65fc4ab
Don't traverse all pages to get a single page.
12 years ago
Brendan Dahl
f4942b11f8
Reduce the memory usage of the operator list.
12 years ago
Brendan Dahl
bb2529de03
Move the creation of canvas path fonts to the worker.
12 years ago
Yury Delendik
cb59b31927
IE9 does not need onreadystatechange
12 years ago