Tim van der Meij
f463f96f35
Resolving new lint issues
11 years ago
Tim van der Meij
df91acf239
Fixes lint warning W004 in src/core
11 years ago
Christian Krebs
79f34b183c
Treat fonts with the same font descriptor, encoding and unicode map as aliases
...
Different fonts can point to the same font descriptor
(see https://github.com/mozilla/pdf.js/issues/4339 for details). With this
commit such fonts are treated as aliases if they have also the same encoding
and the same toUnicode map. The according info is stored on the font descriptor.
This change must also ensure that aliases use always the same font name
because translated fonts can get cleared depending on the CLEANUP_TIMEOUT setting.
11 years ago
Yury Delendik
31f081ae17
Doesn't traverse cyclic references in Dict.getAll; reduces empty-Dict garbage
11 years ago
Tim van der Meij
284288f1d0
Making src/core/{image,obj,parser}.js adhere to the style guide
11 years ago
Tim van der Meij
026c45e5d1
Start counting from actual beginning of PDF file
11 years ago
Thorben Bochenek
f2f713bf15
Refactor XRef in obj.js
...
- remove unused "if (e instanceof Stream)" in XRef_fetch
- split XRef_fetch into XRef_fetchUncompressed and XRef_fetchCompressed
This explains the actual code flow better
- add line breaks after functions
- change the document to conform to current StyleGuide
11 years ago
Nicholas Nethercote
fdb7c218da
Use a cache to minimize the number of Name objects.
11 years ago
Yury Delendik
754e000907
Fixes and refactors log functionality
11 years ago
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
11 years ago
Yury Delendik
98ebf57144
Index objects if Prev xref was not found
12 years ago
Yury Delendik
e712c4136a
Cleaning up fonts when viewer is idle for some time
12 years ago
Brendan Dahl
c2d65fc4ab
Don't traverse all pages to get a single page.
12 years ago
Manas
de179e3d9b
Trying to fix #3611
12 years ago
Yury Delendik
1f232ded90
Stops objects indexing at the end
12 years ago
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
12 years ago
Brendan Dahl
09aafa830b
Remove caching of stream data and fix object loader for streams.
12 years ago
Brendan Dahl
a8ad07ccbf
Cache fonts by reference.
12 years ago
Yury Delendik
c3096d98d4
#3248 : fixes hp scanner's bad XRef
12 years ago
Yury Delendik
7bef903411
Fixes missing compressed object detection
12 years ago
Yury Delendik
df6fd387df
Bug 879211: ignoring bad document outline reference
12 years ago
Brendan Dahl
ae1f973204
Use A+ spec compatible promises.
12 years ago
Brendan Dahl
01ce3d056c
Load all resources before getOperatorList/getTextContent.
12 years ago
eug48
c195daf85e
Remove stream.parameters which wasn't being set consistently. Fixes issue #2881 .
12 years ago
Mack Duan
2ce00279be
Address more of brendan's comments
12 years ago
Mack Duan
dbccbaaa27
Make getOperatorList() calls independent and merge queues at end
12 years ago
Mack Duan
ef423ef30c
Implement progressive loading of PDFs
12 years ago
Yury Delendik
9c76ed0a35
Fixes Dict_assignXref type
12 years ago
Yury Delendik
9699dd16bf
Disables cloning of the Dict
12 years ago
Yury Delendik
0d54347d57
Adds unicode conversion for js code
12 years ago
Yury Delendik
6809f254eb
Protection from empty/invalid root or kid in NameTree
12 years ago
Yury Delendik
2bdfc0727f
Fixes NameTree reading
12 years ago
Brendan Dahl
5c43565404
Hack to support automatic printing from pdf javascript.
12 years ago
Yury Delendik
5cf0d8fa80
Enforces maxlen for jshint
12 years ago
Jon Buckley
caaf7e8032
Issue #2008 - Fix lint errors for src/obj.js
12 years ago
mduan
48fa0172ed
Support corrupted pdfs that are encrypted but lack 'ID' in trailer
12 years ago
Christian Mehlis
e95fbb3860
Update src/obj.js
...
fix Issue #1523
13 years ago
Yury Delendik
725195b65f
Fixes compressed object entries caching
13 years ago
Yury Delendik
35af48123a
Fixes stream loading for XRefStm
13 years ago
Yury Delendik
69b72078c0
Separate page objects/images from the fonts; does not store large images
13 years ago
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()
13 years ago
Brendan Dahl
332ae4ce41
Change to the Apache v2 license.
13 years ago
Yury Delendik
3093427480
Marks xref entries with offset 0 as free
13 years ago
Yury Delendik
1fb02300a4
Removing log
13 years ago
Yury Delendik
48811f362b
Skipping incorrectly encoded metadata
13 years ago
Yury Delendik
413e5357b9
Suppress metadata decryption
13 years ago
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
13 years ago
Jakob Miland
0a30d3961b
Support password and add the relevant l10n strings
13 years ago
Kalervo Kujala
889b3d3168
Correct class method names.
13 years ago
Yury Delendik
fcabd176a0
Don't check gen number for free entry; don't index objects twice
13 years ago