Yury Delendik
d8eb8b1de1
Adds Promise to the getOperatorList
11 years ago
Jonas Jenwald
a984fe5b55
Add more unit tests for the API
11 years ago
Christian Krebs
3e7bcaa892
Handle nested post script arguments in the preprocessor
...
Fix for issue #4785
11 years ago
Jonas Jenwald
3adab8b183
Fix unit test for getDestinations
11 years ago
Jonas Jenwald
e00b986bd3
Add unit test for getData
11 years ago
Michał Gołębiowski
e625af3fef
Remove type="text/javascript" from script tags.
...
"text/javascript" is not a correct MIME type (the correct one is
"application/javascript") but it's not even needed; all browsers default
to the correct type and treat it as executable JS when type is ommited.
Since not all browsers recognize the "application/javascript" MIME type
the only way to both stay compliant and to support all popular browsers
is to omit the type. It's also shorter this way.
11 years ago
Tim van der Meij
4caf5b694e
Completes unit tests for PostScript evaluator and fixes two bugs in the evaluator itself
11 years ago
Yury Delendik
63d5aae3f6
Groups path commands into single command
11 years ago
Thorben Bochenek
e8f0700bfa
Move the colour conversion to jpg.js
...
Benchmarking shows that this improves performance for the invitation document
from https://github.com/mozilla/pdf.js/issues/3809 by 35%
11 years ago
Brendan Dahl
70ce3a88a1
Use special powers quit in unit tests.
11 years ago
Tim van der Meij
7a2cb7cddd
Fixes lint warning W004 in /test
11 years ago
Yury Delendik
f57c6935d7
Implements WebGL support
11 years ago
Yury Delendik
20a91bcdbf
Fixes ignoring of the escaped CR LF
11 years ago
Thorben Bochenek
c547f17ee5
Add Test for PDFDocumentProxy_getPageIndex
11 years ago
Jonas Jenwald
2bd81786c2
Fix coding style in test/unit/testreporter.js
11 years ago
Jonas Jenwald
9e3f7e4d6d
Fix coding style in test/unit/crypto_spec.js
11 years ago
Jonas Jenwald
6489a80dd0
Fix coding style in test/unit/font_spec.js
11 years ago
Jonas Jenwald
3cd64a85ba
Fix coding style in test/unit/function_spec.js
11 years ago
Jonas Jenwald
7d4acc13fb
Fix coding style in test/unit/parser_spec.js
11 years ago
Jonas Jenwald
9dfc26e1e3
Fix coding style in test/unit/stream_spec.js
11 years ago
Nicholas Nethercote
b3024db677
Estimate the size of decoded streams in advance.
...
When decoding a stream, the decode buffer is often grown multiple times, its
byte size increasing like so: 512, 1024, 2048, etc. This patch estimates the
minimum size in advance (using the length of the encoded stream), often
allowing the smaller sizes to be skipped. It also renames numerous |length|
variables as |maybeLength| to make it clear that they can be |null|.
I measured this change on eight documents. This change reduces the cumulative
size of decode buffer allocations by 0--32%, with 10--20% being typical. This
reduces peak RSS by 10 or 20 MiB for several of them.
11 years ago
Mitar
2c82e720b8
Updated to current latest stable version of jshint.
11 years ago
Nicholas Nethercote
fdb7c218da
Use a cache to minimize the number of Name objects.
11 years ago
Brendan Dahl
b5b94a4af3
Use built in CMaps and unify the glyph mapping.
11 years ago
Ophir LOJKINE
4a66eccedc
Rewrite Lexer_getNumber.
...
Now, it computes the numbers with only basic arithmetic operations, without first creating a string and then calling parseFloat.
The new function doesn't behave exactly the same as the old one.
In particular, the old behaviour was that when there was a number immediatly followed by an 'E', the 'E' was consumed. Now it's not. It allows for "glued" numbers and operators.
Also, the new function is faster and consumes less memory.
11 years ago
Yury Delendik
e9327050c3
Basic function.js split
11 years ago
Yury Delendik
bf432a37bb
Refactors shared/pattern.js into core/ and display/
11 years ago
Yury Delendik
09f8f951c8
Extracts evaluator preprocessor and refactor text extraction
11 years ago
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
11 years ago
Brendan Dahl
f4942b11f8
Reduce the memory usage of the operator list.
12 years ago
Brendan Dahl
f32e65b19f
Read multi-byte character codes based on codespace ranges.
12 years ago
Brendan Dahl
730a2cc550
Increase api unit tests timeout for chrome.
12 years ago
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
12 years ago
Brendan Dahl
bf72bc94e2
Incrementally render by sending the operator list by chunks as they're ready.
12 years ago
Yury Delendik
19e8f2f059
lookChar refactoring
12 years ago
Brendan Dahl
ae1f973204
Use A+ spec compatible promises.
12 years ago
Yury Delendik
ffeec0572c
Fixes incorrect unit test
12 years ago
Mack Duan
f8f4b3f45d
Refactor code for annotations
12 years ago
Mack Duan
2ce00279be
Address more of brendan's comments
12 years ago
Mack Duan
dbccbaaa27
Make getOperatorList() calls independent and merge queues at end
12 years ago
Mack Duan
6b2c6fc223
Changes to regression tests for progressive loading
12 years ago
Mack Duan
ef423ef30c
Implement progressive loading of PDFs
12 years ago
Brendan Dahl
0f41b2db44
Fix priority of which font encoding is used.
12 years ago
Brendan Dahl
028151d13a
Restructure/rewrite of the Type1 font parser.
12 years ago
Yury Delendik
8ee193892b
Seac support for Windows
12 years ago
Yury Delendik
95e5429707
Fixes getString
12 years ago
Yury Delendik
81f8f92696
Adds web/* and test/* for jshint target
12 years ago
vyv03354
a254de86fb
CFF parser didn't count hints defined by hstem/vstem
12 years ago
mduan
5ab3bb1e03
Skip commands that have too few arguments
...
- Commands that have too few args will be skipped
- Commands that have too many args will generate an info, but still
execute
12 years ago
Brendan Dahl
a79f005527
Fix isDict when type is missing in dictionary.
12 years ago