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
Fabian Lange
532d7246ea
add object id to streams to prevent infinite loops.
...
fixes http://bugzil.la/1020858
11 years ago
Jonas Jenwald
26bbcedcae
Prevent infinite loop when scanning for endstream (bug 1020226)
11 years ago
Fabian Lange
22a0e7fe65
Optimization for FlateStream_getCode, making more pdfs parsable.
...
This commit cleans up the FlateStream_getCode method, and removes a few error
conditions.
Previously it would fail if the codeSize is less than maxLen if end of stream
is reached. However in the document linked below there is a sub-stream
(the one starting at pos 337) which has maxLen set to 11, but actually
contains only 10. After breaking the sanity check still applies, and in this
case passes validating codeSize(10)==codeLen(10).
http://www.cafeculture.com/wp-content/uploads/2014/03/V-CM-BR-086-04002-1346-0258-GP-Brazil-Fazenda-Cafe-Cambara-Terra-Preta-Microlot-Sample-0460-13-Pulped-Natural-60Kg.pdf
11 years ago
Fabian Lange
030a188af7
Deleted unused variables in jpgjs buildComponentData.
11 years ago
Fabian Lange
0a42edf82f
Optimize JPG.js receiveAndExtend for 1 bit case.
...
Profiling showed that receiveAndExtend is frequently called with the length of
one bit. This happens for example in decodeBaseline.
For a single bit, the loop and shift in receive, as well as the shifts in
receiveAndExtend are overhead.
This shortcut manually calculates the shifts by either returning 1 or -1 from
receiveAndExtend by reading the bit and deciding on the return value.
While it comes with an overhead for each non-one length, the speedup is at about
10% in the hot parse/decode path.
11 years ago
Yury Delendik
6b411b559d
Fixes masked JPEG image
11 years ago
Yury Delendik
b20b404061
Fixes typo in getAsync
11 years ago
Fabian Lange
dcde59fa76
Optimized loops in JPG conversion.
...
This change makes the 4 conversion loops look the same.
It optimizes access of the array length and access of the property
numComponents, which is known to be constant.
11 years ago
Yury Delendik
6235e3a61c
Adds color components decoding to the JPEG
11 years ago
Jonas Jenwald
d1c71ab7ad
Prevent adding undefined array entries to CMap.map in mapRangeToArray (issue 4875)
11 years ago
Yury Delendik
a09aecb24a
Fixes murmurhash for old webkit.
11 years ago
Yury Delendik
9c87fa24f7
Removes mozResponseArrayBuffer
11 years ago
Mohammed Abu-alsaad
e6546642db
Added more preference variables from the available hash parameters
11 years ago
Tim van der Meij
e128bdc397
Fixes unhandled XObject subtype PS error
11 years ago
Jonas Jenwald
3c5dedf60d
Prevent font error when no preferred cmap table is found (workaround for issue 4800)
11 years ago
koderok
81d3f4a89b
merged with earlier commits
11 years ago
Yury Delendik
fcc4dfd9b5
Moves shared/function.js to core/
11 years ago
Yury Delendik
7a19085159
Moves shared/colorspace.js into core/
11 years ago
Yury Delendik
542c9c4c7a
Moves ColorSpace logic into evaluator
11 years ago
Yury Delendik
d53dc2e7d6
Refactors showText: split type3, remove showSpacedText
11 years ago
fkaelberer
f88118dbf9
small optimizations in parser.getObj(), lexer.getObj()
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
f4baea900e
Fixes regression in the cleanup
11 years ago
p01
455c6b2d35
Removed several 'in' operators in canvas.js
...
This gives up to 6x speed improvement on these methods
11 years ago
p01
cf5ff3d327
Fewer lookups in CanvasGraphics_constructPath
11 years ago
p01
7b68737baa
Strict isEOF / ~22% faster on issue2813, from 16.5s to 13.5s
11 years ago
Yury Delendik
e5a0d89da9
Refactors loadFont for translateFont be async; fixes type3 dup data
11 years ago
Yury Delendik
88aa396aca
Terminate getOperationList and getTextContent every 20 ms
11 years ago
Yury Delendik
d8eb8b1de1
Adds Promise to the getOperatorList
11 years ago
Jonas Jenwald
a984fe5b55
Add more unit tests for the API
11 years ago