Commit Graph

35 Commits

Author SHA1 Message Date
Martin Koegler
63c9685ea7 Fix decrypting of arrays 2013-03-01 15:39:12 +01:00
Yury Delendik
95e5429707 Fixes getString 2013-02-23 11:35:18 -06:00
Yury Delendik
d13aa38c9c Enforces quotmark=single for jshint 2013-02-02 17:00:13 -06:00
Yury Delendik
5cf0d8fa80 Enforces maxlen for jshint 2013-02-02 16:49:19 -06:00
Jon Buckley
315ac3ce8c Issue #2008 - Fix lint errors for src/parser.js 2013-01-31 19:12:45 -05:00
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.
2013-01-08 15:29:24 -08:00
Yury Delendik
d71c702dcf Removes "too many inline images" limit 2012-12-07 12:19:43 -06:00
Yury Delendik
4c0f9eb924 Fixes getNumber at the end of stream 2012-10-24 10:47:16 -05:00
Saebekassebil
58d6974bf5 Implement NullStream, fix #1832 2012-10-22 17:53:15 +02:00
Brendan Dahl
332ae4ce41 Change to the Apache v2 license. 2012-08-31 15:48:21 -07:00
Yury Delendik
95bc99f698 Initial JBIG2 code 2012-06-16 15:15:42 -05:00
Yury Delendik
874357aac1 Comment for knownCommands 2012-05-21 15:23:49 -05:00
Yury Delendik
ec6c185cf5 Allow parsing of the "glued" commands 2012-05-20 13:44:03 -05:00
Brendan Dahl
32b7eba6de Add RL abbreviation for run length decode. 2012-04-16 11:35:42 -07:00
Brendan Dahl
4616ee0ee8 Show error on JBIG2 images. 2012-04-16 11:34:00 -07:00
Yury Delendik
cea388201d Merge remote-tracking branch 'mozilla/master' into mergexref-1
Conflicts:
	src/core.js
	src/evaluator.js
	src/obj.js
2012-04-05 10:03:49 -05:00
Kalervo Kujala
99440ab691 Refactor class method names.
Also move functionality to more logical place in canvas.js and jpx.js.
2012-04-04 23:43:26 +03:00
Brendan Dahl
8a45177be0 Make Dict handle all the fetching of Refs. 2012-04-04 11:43:04 -07:00
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.
2012-03-20 14:16:48 +02:00
notmasteryet
c68dbd777e Relax EI search for inline images 2012-02-18 20:20:25 -06:00
notmasteryet
2f98d18dc1 Not relying on the xref in the parser 2012-02-14 20:19:43 -06:00
notmasteryet
8c727860dd Fixing getting of the "Filter" attribute 2012-02-14 18:38:56 -06:00
notmasteryet
016fd3282e Merge branch 'master' of git://github.com/mozilla/pdf.js.git into jpx6
Conflicts:
	test/pdfs/.gitignore
2012-01-19 17:46:48 -06:00
notmasteryet
6de2ca568d Implements RunLengthDecode filter 2012-01-14 13:47:14 -06:00
notmasteryet
93ca387d1b Migration of the JPX code (from jpx5) 2012-01-11 20:08:46 -06:00
Julian Viereck
156e20ca73 Cache Cmd object to reduce number of created objects 2011-12-18 20:39:10 +01:00
Brendan Dahl
868d07e289 Merge pull request #917 from arturadib/check-pixels
Throw error on # of pixels mismatch
2011-12-13 13:31:57 -08:00
Artur Adib
2113e0615e Reverting error(); warn() instead of TODO() 2011-12-12 14:33:26 -05:00
Kalervo Kujala
1ef4c94de2 Name all constructors. 2011-12-09 00:18:43 +02:00
Kalervo Kujala
d2303493fe Fix few early returns in parser.js. 2011-12-04 21:22:08 +02:00
Brendan Dahl
8d52a1e92a Add another way to detect cmyk images. 2011-11-08 13:53:56 -08:00
Kalervo Kujala
7e6a589074 Fix js strict warning in worker.js.
Also fix a few minor nits.
2011-10-27 21:51:10 +03:00
Artur Adib
41caf5018d Merge branch 'refs/heads/master' into filesplit
Conflicts:
	pdf.js
2011-10-26 15:10:58 -04:00
Artur Adib
e71b6188c6 'use strict' everywhere 2011-10-25 18:18:22 -07:00
Artur Adib
a7278b7fbc Splitting files 2011-10-24 16:55:23 -07:00