Commit Graph

75 Commits

Author SHA1 Message Date
Brendan Dahl
f06dadab3b Merge pull request #3376 from yurydelendik/bad-pdfs
Misc fixes for corrupted PDFs
2013-06-27 15:33:06 -07:00
Brendan Dahl
a0528a5ea8 Merge pull request #3375 from yurydelendik/bug867484
Fixes missing compressed object detection
2013-06-27 13:36:53 -07:00
Brendan Dahl
a8ad07ccbf Cache fonts by reference. 2013-06-25 10:33:53 -07:00
Yury Delendik
c3096d98d4 #3248: fixes hp scanner's bad XRef 2013-06-22 12:06:37 -05:00
Yury Delendik
7bef903411 Fixes missing compressed object detection 2013-06-21 18:04:31 -05:00
Yury Delendik
df6fd387df Bug 879211: ignoring bad document outline reference 2013-06-21 15:42:55 -05:00
Brendan Dahl
ae1f973204 Use A+ spec compatible promises. 2013-06-05 12:28:31 -07:00
Brendan Dahl
01ce3d056c Load all resources before getOperatorList/getTextContent. 2013-06-04 17:57:52 -07:00
eug48
c195daf85e Remove stream.parameters which wasn't being set consistently. Fixes issue #2881. 2013-05-10 13:26:28 +10:00
Mack Duan
2ce00279be Address more of brendan's comments 2013-04-18 10:41:33 -07:00
Mack Duan
dbccbaaa27 Make getOperatorList() calls independent and merge queues at end 2013-04-18 00:16:41 -07:00
Mack Duan
ef423ef30c Implement progressive loading of PDFs 2013-04-12 16:13:22 -07:00
Yury Delendik
9c76ed0a35 Fixes Dict_assignXref type 2013-04-03 16:42:23 -05:00
Yury Delendik
9699dd16bf Disables cloning of the Dict 2013-04-03 13:01:45 -05:00
Yury Delendik
0d54347d57 Adds unicode conversion for js code 2013-03-19 08:42:04 -05:00
Yury Delendik
6809f254eb Protection from empty/invalid root or kid in NameTree 2013-03-19 08:36:12 -05:00
Yury Delendik
2bdfc0727f Fixes NameTree reading 2013-03-02 08:00:17 -06:00
Brendan Dahl
5c43565404 Hack to support automatic printing from pdf javascript. 2013-02-28 15:29:07 -08:00
Yury Delendik
5cf0d8fa80 Enforces maxlen for jshint 2013-02-02 16:49:19 -06:00
Jon Buckley
caaf7e8032 Issue #2008 - Fix lint errors for src/obj.js 2013-01-31 19:12:45 -05:00
mduan
48fa0172ed Support corrupted pdfs that are encrypted but lack 'ID' in trailer 2013-01-14 13:43:10 -08:00
Christian Mehlis
e95fbb3860 Update src/obj.js
fix Issue #1523
2012-11-24 21:31:05 +01:00
Yury Delendik
725195b65f Fixes compressed object entries caching 2012-11-06 12:05:59 -06:00
Yury Delendik
35af48123a Fixes stream loading for XRefStm 2012-11-02 08:26:45 -05:00
Yury Delendik
69b72078c0 Separate page objects/images from the fonts; does not store large images 2012-10-28 15:24:54 -05:00
Piotr Zalewa
812bc6795d * InvalidPDFException added
* Act on throwing an Exception and InvalidPDFException by rejecting the worker
instead of throwing
* changed message for all builds
* alerting and closing window only for B2G builds
* invalid_file_error added to l10n (en and pl)
* UnknownErrorException added and used for every error()
2012-10-25 11:15:19 +02:00
Brendan Dahl
332ae4ce41 Change to the Apache v2 license. 2012-08-31 15:48:21 -07:00
Yury Delendik
3093427480 Marks xref entries with offset 0 as free 2012-08-10 21:31:33 -05:00
Yury Delendik
1fb02300a4 Removing log 2012-05-29 11:01:46 -05:00
Yury Delendik
48811f362b Skipping incorrectly encoded metadata 2012-05-27 19:00:13 -05:00
Yury Delendik
413e5357b9 Suppress metadata decryption 2012-05-27 18:03:04 -05:00
Nils Maier
40b9be137f Decode XML metadata as UTF-8
XML uses UTF-8 by default, which needs to be decoded to a Javascript
String prior to feeding it to the DOMParser.
In an ideal world, the XML would actually be analyzed and the specified
charset would be used, however that does not seem feasible unless JS
engines get iconv bindings.

Fixes GH-1692
2012-05-27 22:56:49 +02:00
Jakob Miland
0a30d3961b Support password and add the relevant l10n strings 2012-05-14 20:45:07 +02:00
Kalervo Kujala
889b3d3168 Correct class method names. 2012-05-01 20:48:07 +03:00
Yury Delendik
fcabd176a0 Don't check gen number for free entry; don't index objects twice 2012-04-23 22:14:58 -05:00
Yury Delendik
42911f1fc9 Async getAnnotations(); hide map and xref for Dict 2012-04-14 13:54:31 -07:00
Yury Delendik
8ee1f96b19 Fix the merge 2012-04-05 10:12:48 -05: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
Brendan Dahl
cee2f73ca9 Fix table of contents. 2012-04-04 15:29:50 -07: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
Saebekassebil
94a1558843 refactor and shadow 2012-03-27 00:05:14 +02:00
Saebekassebil
ab198e89cc Typo from git'ing around 2012-03-24 23:39:03 +01:00
Saebekassebil
9dbcc74d41 lint.. 2012-03-24 20:02:20 +01:00
Saebekassebil
20dd225e40 Metadata parsing/serialization 2012-03-24 19:59:51 +01: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
Marcus Oblak
7ec282cbb0 Re-Fixed Formatting (Lint friendly) 2012-03-14 21:58:22 +01:00
Marcus Oblak
2fbfed476e Fixed code formatting. 2012-03-13 22:25:39 +01:00
mrqzzz
d6cb3cbbd7 Handled case where var "outlineDict" was null (in certain PDFs). Handled
case where var "e" was null in "function xRefGetEntry" (in certain PDFs)
2012-03-13 16:52:55 +01:00
notmasteryet
ff01faa86f Merge pull request #1148 from arturadib/readXRefTable
Rewrite of readXRefTable [obj.js]
2012-02-01 04:40:22 -08:00