fkaelberer
7b5b5178ef
Extract duplicate arithmetic decoder to own class
11 years ago
Tim van der Meij
d5fcfe14d2
Making src/core/jpx.js adhere to the style guide
11 years ago
Tim van der Meij
2712a5a45a
Making src/core/jbig2.js adhere to the style guide
11 years ago
Tim van der Meij
3330f0417f
Making src/core/crypto.js adhere to the style guide
11 years ago
Tim van der Meij
a615ccdd20
Making src/core/bidi.js adhere to the style guide
11 years ago
Tim van der Meij
2adcaf4f64
Making src/core/ps_parser.js adhere to the style guide
11 years ago
Nicholas Nethercote
00c1cff405
Transfer image masks when when possible, instead of copying.
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
cb5bb0cec7
Fix mask handling when some bytes are missing.
11 years ago
Tim van der Meij
3df8f89bd4
Fixes off-by-one error when finding missing endstream
11 years ago
Basil A. Zabairatsky
555d33ffc7
Support for the image mask in higher resolution than the image itself
11 years ago
fkaelberer
6755ea70b0
Fix infinite loop in DecodeStream_ensureBuffer()
11 years ago
fkaelberer
9457095c9c
Fix JPX colors
11 years ago
fkaelberer
eef5ed5c11
Optimizations for 1bpc images
11 years ago
Nicholas Nethercote
fe8b6b0950
Remove FakeStream.
11 years ago
Tim van der Meij
026c45e5d1
Start counting from actual beginning of PDF file
11 years ago
Nicholas Nethercote
a2fe30ff38
Use RGB_24BPP form for all images lacking alpha data.
11 years ago
Nicholas Nethercote
f30babde58
Transfer GRAYSCALE_1BPP and RGB_24BPP arrays when possible.
11 years ago
Nicholas Nethercote
64431a9909
Avoid extra allocations in ensureBuffer() caused by an off-by-one error.
11 years ago
Nicholas Nethercote
6e4283fc45
Remove unneeded |oldtypes| variable from bidi.js.
11 years ago
Nicholas Nethercote
ab7568c0ff
Use Array.join() to build up strings in more places.
11 years ago
Yury Delendik
adca8d4291
Rejects invalid fpgm table when too many functions
11 years ago
fkaelberer
583ca3b162
Fix parsing of JP2 images
11 years ago
Mitar
2c82e720b8
Updated to current latest stable version of jshint.
11 years ago
Jonas Jenwald
08687ee9f1
Add 'registered' and 'trademark' to mapPrivateUseChars (bug 925985)
11 years ago
Brendan Dahl
a77efa0587
Remove unused calculation from bad merge.
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
fkaelberer
abcc72a173
Faster JBIG2 decoding
11 years ago
Nicholas Nethercote
fdb7c218da
Use a cache to minimize the number of Name objects.
11 years ago
Mathieu 'p01' Henri
135660c8ba
Fill the initial JBIG2 buffer with 0xFF only if defaultPixelValue is set
...
Per the TypedArray specification, ArrayBuffers are initialized with zeros.
http://www.khronos.org/registry/typedarray/specs/latest/#5
11 years ago
Nicholas Nethercote
42cbb5b440
Introduce ImageKind constants.
11 years ago
Nicholas Nethercote
4e1f92a893
Clean up putBinaryImageData().
11 years ago
Nicholas Nethercote
f62c1c469f
Special-case 24-bit RGB image-handling.
11 years ago
Brendan Dahl
b187326022
Use default encoding for standard fonts without a file.
11 years ago
Nicholas Nethercote
d4e8b41639
Remove some unnecessary local variables.
11 years ago
Brendan Dahl
f7fea015a9
Remove isFixedPitch check for now.
11 years ago
Nicholas Nethercote
33dd1b0c3c
Remove the unnecessary this.buf in CCITTFaxStream.
11 years ago
fkaelberer
5f8546c120
Faster JPX decoding
11 years ago
Mitar
958a49d655
Info function does not interpolate strings.
11 years ago
Brendan Dahl
f1c73edac4
Fix symbol fonts with no file.
11 years ago
Brendan Dahl
b5b94a4af3
Use built in CMaps and unify the glyph mapping.
11 years ago
Rob Wu
2a19dc86e7
Do not switch to a range request for small PDFs
11 years ago
Ophir LOJKINE
4a66eccedc
Rewrite Lexer_getNumber.
...
Now, it computes the numbers with only basic arithmetic operations, without first creating a string and then calling parseFloat.
The new function doesn't behave exactly the same as the old one.
In particular, the old behaviour was that when there was a number immediatly followed by an 'E', the 'E' was consumed. Now it's not. It allows for "glued" numbers and operators.
Also, the new function is faster and consumes less memory.
11 years ago
Rob Wu
eaf7daf7db
[CRX] Pass expected length of stream to viewer
...
To get a progress bar for POST/FTP requests in Chromium.
11 years ago
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
561683d2e9
Dynamically determines how to split patch into triangles
11 years ago
Nicholas Nethercote
a966909754
Reduce memory consumption of simple black and white images.
11 years ago
Yury Delendik
e5e9c6e243
Fixes PDFDocumentProxy.getDownloadInfo API name (and refactoring)
11 years ago