fkaelberer
fc73e2e173
use getBytes() instead of looping over getByte()
11 years ago
Jonas Jenwald
c5f4051a75
A few small optimizations of adjustMapping
...
Replace a couple of |in| checks with comparisons against undefined.
11 years ago
Jonas Jenwald
c121def806
A few small optimizations for CIDFontType2 fonts
...
Cache a constant length and replace one usage of |in| with a comparison against undefined.
11 years ago
Jonas Jenwald
04975acceb
Prevent CMapFactory.create from failing by passing the necessary parameters from PartialEvaluator_readToUnicode (issue 5010)
11 years ago
fkaelberer
9a41659ae7
Faster chunkedStream_getByte()
11 years ago
pramodhkp
7efd50e64d
Added paintJpegXObject
11 years ago
pramodhkp
d799a18b74
Added paintSolidColorImageMask
11 years ago
pramodhkp
c8a4ab3a19
Optimization of save/restore usage
11 years ago
pramodhkp
8407d28c9e
Combine re element into constructPath
11 years ago
Jonas Jenwald
8ad1ea3c5f
Zero the height and width of the WebGL canvases on cleanup
11 years ago
Fabian Lange
60f67c3961
Restructured EvaluatorPreprocessor_read to be more natural.
11 years ago
Nicholas Nethercote
081866a184
Use null instead of [] for ops with no args.
...
This reduces peak RSS on one test file from ~600 to ~560 MiB.
11 years ago
Jonas Jenwald
b19bb74813
Additional heuristics to recognize unknown glyphs for toUnicode (bug 1027533)
11 years ago
Yury Delendik
834f466c05
Fixes SVG transforms on restore
11 years ago
pramodhkp
dd253aadeb
SVG Viewer example demo
11 years ago
Nicholas Nethercote
1ad3ffbc7b
Factor out repeated Ref key string generation code.
...
In src/core/obj.js, we convert a Ref to a string to index into a table like
this: 'R1.0'. This conversion is repeated numerous times.
This patch factors out the conversion into a new function.
Ref.prototype.toString().
11 years ago
Nicholas Nethercote
17170af3c7
Avoid allocating return object in EvaluatorPreprocessor_read().
...
This function can be called 100s of 1000s or even millions of times, and the
allocated return object accounts for 10% of all GC thing allocations for some
documents. It's easy to avoid, which reduces stress on the garbage collector,
and this patch does that.
11 years ago
Yury Delendik
623fa29300
Removes error catch from fetchUncompressed()
11 years ago
Yury Delendik
fbdab2c7c5
Not ignoring MissingDataException exception.
11 years ago
Yury Delendik
88fd1aa78b
Removes PDFJS.Annotation
11 years ago
Yury Delendik
c1c950ce74
Fixes AnnotationUtils in the extension build
11 years ago
Tim van der Meij
4c759527d1
Implements onerror for JpegStreams
11 years ago
Nicholas Nethercote
bce7601480
Build up textChunk.str more efficiently.
...
PartialEvaluator.getTextContent() builds up textChunk strings 1 char at a time,
creating many 100s of 1000s of intermediate strings along the way. This patch
make it instead push chars to an array and then join them at the end, as we
have done in numerous other places.
11 years ago
Nicholas Nethercote
4428cebdbc
Add ChunkedStream.ensureByte().
...
This new function is much faster than ensureRange(pos, pos+1), which is a very
common case.
This speeds up the rendering of some test cases (including the Tracemonkey
paper) by 4--5%.
11 years ago
Yury Delendik
bdeca30fbf
Splits shared/annotation.js into core/ and display/
11 years ago
pramodhkp
1d00e9d13c
Added getOperatorList to api.js
11 years ago
Jonas Jenwald
ab67e1c272
Let Parser_makeFilter return NullStream when an invalid stream is encountered (issue 3417)
11 years ago
fkaelberer
f9cde5d93e
faster JPEG transform
11 years ago
Nicholas Nethercote
7ef7f95374
Zero the height and width of the Cached canvases before deleting.
...
This reduces peak RSS by about 300 MiB on my Mac when scrolling slowly through
the first 30 pages of a scanned black and white document.
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
Jonas Jenwald
3c78c7b8bc
Refactor fake worker loading (issue 3862)
11 years ago
Jonas Jenwald
158790981c
Don't blindly trust toUnicode when building toFontChar for non-standard fonts without a font file (issue 4934)
11 years ago
Yury Delendik
9f51e46917
Refactoring error reporting in JPX
11 years ago
fkaelberer
894d9fe085
Fix #3591 / list unsupported options
11 years ago
Yury Delendik
dd165f2918
SHA512 optimizations
11 years ago
Daniel West
1fce2856c6
Added support for decrypting PDF 1.7/2.0 Algorithm 5 revision 5 and 6.
...
*Added AES128 Encryption
*Added AES258 Encryption/Decryption
*Added SHA256
*Added SHA512
*Added class to handle 8 byte integers and associated bit operations
*Added SHA384
*Added routines to handle new algorithm and perform PDF2.0 hashing.
11 years ago
Nicholas Nethercote
7923eb7edb
Fix mishandling of incomplete, inverted masks.
11 years ago
Samuel Chantaraud
952545e20f
Limit the size of canvases to 5MP (iOS restriction)
11 years ago
Jonas Jenwald
c0250e16e3
Return ErrorFont in loadFont when the fontRef is undefined
11 years ago
Samuel Chantaraud
f362b3c744
Fix #4914 by ignoring hidden annotation
11 years ago
Yury Delendik
1ac8ca66f7
Fixes optional backdrop regression
11 years ago
Jonas Jenwald
7802a7ab97
Handle cases where the fontName contains non-alphanumeric characters (issue 4909)
11 years ago
p01
6731de6829
Minor refactoring of EvaluatorPreprocessor_read
11 years ago
p01
e0bf7e2151
Optimized genericComposeSMask
...
Declaring the composition and backgdrop functions outside of genericComposeSMask
is more efficient.
11 years ago
p01
412febe4a4
canvas.js minor optimizations
11 years ago
p01
35e418c603
Optimized CanvasGraphics_executeOperatorList 66% faster
11 years ago
p01
d4a01f6034
evaluator.js minor optimizations
11 years ago
p01
0a51b1e616
utils.js optimization of isFOO methods
11 years ago
p01
37c9765ab4
Optimized Lexer_getObj 2x faster
11 years ago