Nicholas Nethercote
164d7a6e15
Don't create a string when lexing all-digit integers.
11 years ago
Nicholas Nethercote
b64cca0bef
When lexing numbers, look for digits first.
11 years ago
Nicholas Nethercote
c1ef7e4d63
Use Array.join instead of += to build up strings in the Lexer.
11 years ago
Yury Delendik
09f8f951c8
Extracts evaluator preprocessor and refactor text extraction
11 years ago
Jonas
628f4aaf81
Enable loading of PDFs with undefined or missing stream lengths
12 years ago
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
12 years ago
Yury Delendik
19e8f2f059
lookChar refactoring
12 years ago
Yury Delendik
4d9ee7b530
#2098 : scanning for stream length when it's incorrect
12 years ago
Yury Delendik
0d229351f3
Bug 874851: ignoring bad stream length
12 years ago
Yury Delendik
c68d125f17
Improves search of EI (end of inlined image)
12 years ago
eug48
c195daf85e
Remove stream.parameters which wasn't being set consistently. Fixes issue #2881 .
12 years ago
Brendan Dahl
cec200a664
Ignore malformed dictionary entries.
12 years ago
Mack Duan
dbccbaaa27
Make getOperatorList() calls independent and merge queues at end
12 years ago
Martin Koegler
63c9685ea7
Fix decrypting of arrays
12 years ago
Yury Delendik
95e5429707
Fixes getString
12 years ago
Yury Delendik
d13aa38c9c
Enforces quotmark=single for jshint
12 years ago
Yury Delendik
5cf0d8fa80
Enforces maxlen for jshint
12 years ago
Jon Buckley
315ac3ce8c
Issue #2008 - Fix lint errors for src/parser.js
12 years ago
mduan
eb8f4e8343
Handle some illegal characters in hex string
...
Do not throw exception when hex strings are in the wrong format
Currently pdf.js is throwing an exception for the following hex string:
`<7 0 2 15 5 2 2 2 4 3 2 4>`
The issue is that the 15 is not a valid hex character so pdf.js ends up
throwing an exception.
This diff changes the parser to process the above hex string as follow:
`70 21 55 2 24 32` (Note: the final 4 of the hex string is ignored)
replicating the behaviour of MuPDF, and doesn't throw an exception.
12 years ago
Yury Delendik
d71c702dcf
Removes "too many inline images" limit
13 years ago
Yury Delendik
4c0f9eb924
Fixes getNumber at the end of stream
13 years ago
Saebekassebil
58d6974bf5
Implement NullStream, fix #1832
13 years ago
Brendan Dahl
332ae4ce41
Change to the Apache v2 license.
13 years ago
Yury Delendik
95bc99f698
Initial JBIG2 code
13 years ago
Yury Delendik
874357aac1
Comment for knownCommands
13 years ago
Yury Delendik
ec6c185cf5
Allow parsing of the "glued" commands
13 years ago
Brendan Dahl
32b7eba6de
Add RL abbreviation for run length decode.
13 years ago
Brendan Dahl
4616ee0ee8
Show error on JBIG2 images.
13 years ago
Kalervo Kujala
99440ab691
Refactor class method names.
...
Also move functionality to more logical place in canvas.js and jpx.js.
13 years ago
Brendan Dahl
8a45177be0
Make Dict handle all the fetching of Refs.
13 years ago
gigaherz
9abbce021f
Undo comment changes.
13 years ago
gigaherz
c6d7e654ee
Replace variables named 'char'=>'character', 'byte'=>'octet' and field '.private'=>'.privateData'. This allows pdf.js to compile with Google's Closure Compiler.
13 years ago
Kalervo Kujala
eb4ec7899a
Remove unreachable logic after error(...) is called.
...
The function error(...) always throws so there is no need to return separately
or have an else branch.
13 years ago
notmasteryet
c68dbd777e
Relax EI search for inline images
13 years ago
notmasteryet
2f98d18dc1
Not relying on the xref in the parser
13 years ago
notmasteryet
8c727860dd
Fixing getting of the "Filter" attribute
13 years ago
notmasteryet
6de2ca568d
Implements RunLengthDecode filter
13 years ago
notmasteryet
93ca387d1b
Migration of the JPX code (from jpx5)
13 years ago
Julian Viereck
156e20ca73
Cache Cmd object to reduce number of created objects
14 years ago
Artur Adib
2113e0615e
Reverting error(); warn() instead of TODO()
14 years ago
Kalervo Kujala
1ef4c94de2
Name all constructors.
14 years ago
Kalervo Kujala
d2303493fe
Fix few early returns in parser.js.
14 years ago
Brendan Dahl
8d52a1e92a
Add another way to detect cmyk images.
14 years ago
Kalervo Kujala
7e6a589074
Fix js strict warning in worker.js.
...
Also fix a few minor nits.
14 years ago
Artur Adib
e71b6188c6
'use strict' everywhere
14 years ago
Artur Adib
a7278b7fbc
Splitting files
14 years ago