Collin Anderson
54e984c763
cleaned whitespace
10 years ago
Jonas Jenwald
1fea44ce14
Ensure that |get fingerprint| doesn't fail if the ID is not an array (issue 5599)
...
According to the [PDF specification](http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#page=51 ) the `ID` should be an array. To prevent errors if the PDF file violates that part of the spec, check that the `ID` is actually an array.
Fixes 5599.
10 years ago
Jordan Thoms
aa53319c87
Improve fingerprinting of documents
...
Fixes two issues:
- #4456 : The first 100 bytes are often not unique as they can be
filled with standard PDF headers - so we use the first 200 KB instead.
(This may be overkill)
- Some documents we encountered have invalid xref ids, which were
always coming out as ‘0000000000000000’ - so we detect that and use the
MD5 instead.
11 years ago
Jonas Jenwald
83a4c68df9
Add strict equalities in src/core/core.js
11 years ago
Jonas Jenwald
a5c98aab36
Re-factor parsing of the Linearization dictionary
11 years ago
Jonas Jenwald
b950118681
Revert commit fc73e2e
(PR 5005) for breaking certain PDF files
11 years ago
fkaelberer
fc73e2e173
use getBytes() instead of looping over getByte()
11 years ago
Yury Delendik
d8eb8b1de1
Adds Promise to the getOperatorList
11 years ago
Jonas Jenwald
034f1102da
Remove LegacyPromise in src/core/core.js
11 years ago
Joshua T Kalis
5828b2c687
Refactor - remove redundant function and all references
...
The function `assertWllFormed` was doing nothing different than `assert` which is
available in the same namespace. Removing it will lighten the filesize - albeit
very slightly - and reduce complexity.
11 years ago
Brendan Dahl
5bd8a83c9b
Build the text layer geometry on the worker.
11 years ago
Yury Delendik
31f081ae17
Doesn't traverse cyclic references in Dict.getAll; reduces empty-Dict garbage
11 years ago
Jonas Jenwald
131a16b65e
Fix coding style in src/core/core.js
11 years ago
Thorben Bochenek
8edebc797b
Refactor and fix style of core.js
11 years ago
Thorben Bochenek
1ddb019449
Fix Issue #4461 : Pages without \Resources in their dictionary fail to load
...
When no "\Resource" entry could be found return an empty dictionary
11 years ago
Samuel Chantaraud
076b3433b4
Improved annotations' display/behavior.
...
Added an "InteractiveAnnotation" class to homogenize the annotations' structure (highlighting) and user interactions (for now, used for text and link annotations).
Text annotations:
The appearance (AP) has priority over the icon (Name).
The popup extends horizontally (up to a limit) as well as vertically.
Reduced the title's font size.
The annotation's color (C) is used to color the popup's background.
On top of the mouseover show/hide behavior, a click on the icon will lock the annotation open (for mobile purposes). It can be closed with another click on either the icon or the popup.
An annotation printing is conditioned by its "print" bit
Unsupported annotations are not displayed at all.
11 years ago
Nicholas Nethercote
ab7568c0ff
Use Array.join() to build up strings in more places.
11 years ago
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
11 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
Brendan Dahl
f4942b11f8
Reduce the memory usage of the operator list.
12 years ago
Jakob Miland
c341dd57e5
Simplify get fingerprint() method
12 years ago
Yury Delendik
ba23a9e8f9
Adds initial telemetry probes
12 years ago
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
12 years ago
Jonas
d90ad429f6
Enable loading of PDFs with invalid document information dictionaries
12 years ago
Brendan Dahl
bf72bc94e2
Incrementally render by sending the operator list by chunks as they're ready.
12 years ago
Yury Delendik
19e8f2f059
lookChar refactoring
12 years ago
Brendan Dahl
a8ad07ccbf
Cache fonts by reference.
12 years ago
Brendan Dahl
01ce3d056c
Load all resources before getOperatorList/getTextContent.
12 years ago
Yury Delendik
336aa38f4a
Reset canvas state before drawing annotations
...
Conflicts:
src/core.js
12 years ago
Tim van der Meij
d22ea7edc4
Lowering warning to info
12 years ago
Brendan Dahl
3dadde52dc
Propagate promise rejections so we show the fallback.
...
-Adds rejection support to Promise.All.
-Makes promise.then() callback optional.
12 years ago
Mack Duan
f8f4b3f45d
Refactor code for annotations
12 years ago
Mack Duan
d69f14328c
Use same obj/font id counter for all partial evaluators on page
12 years ago
Mack Duan
30e127d848
Do not cache content stream
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
Mack Duan
6beb33c25b
Remove initialization code that's no longer used
12 years ago
Mack Duan
79831d7ec5
Support rendering appearance streams for annotations
12 years ago
Simon Tatham
ff4f7f1028
Use fetchIfRef to get annotation dictionaries.
...
Fixes failure to display annotations in PDFs where the annotation
dicts are inlined in the page objects rather than in subobjects.
12 years ago
Yury Delendik
6ce1cfe734
Reverts 729b82, d5f65f and 724add
12 years ago
vyv03354
729b82359a
Implements the print permission
12 years ago
Yury Delendik
d5f65f5431
Fixes text search for "secured" documents
12 years ago
Yury Delendik
5cf0d8fa80
Enforces maxlen for jshint
12 years ago
Jon Buckley
d59e2105b1
Issue #2008 - Fix lint errors for src/core.js
12 years ago
Yury Delendik
9c044e2c31
Fallback when AcroForm is present
12 years ago
Jakob Miland
4efab13c58
Support Filespec dictionary in annotations
13 years ago
Yury Delendik
cae62341ac
Split large image groups into smaller chunks
13 years ago
Yury Delendik
500421ddd2
Fixes "TypeError: info is undefined"
13 years ago