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
Luís Nabais
220a8e4f0e
Fix the combineUrl function
...
* Allow a url to omit the protocol and use the same protocol as the
* current page
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
1ec3c341cc
Put mask data to the canvas in small slices.
11 years ago
Nicholas Nethercote
fdb7c218da
Use a cache to minimize the number of Name objects.
11 years ago
Brendan Dahl
ce9e9e6ff7
Remove embeddedFontsUsed from API.
11 years ago
Mathieu 'p01' Henri
e786649d2a
Skip the Math.sqrt for clamped values in convertToRgb
...
No need to compute the square root of clamped values.
Only the values in the range ]0,1[ need to be processed.
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
c4fab2f234
Share ColorSpace.getRgb() between all sub-classes.
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
Manas (prometheansacrifice)
5a038b17a2
Trying to fix #4166
11 years ago
Mitar
958a49d655
Info function does not interpolate strings.
11 years ago
Jonas Jenwald
054f1e7e57
Handle undefined url in LinkAnnotation
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
99bbad3219
Removes scolling jank after bw image optimization
11 years ago
Yury Delendik
3595c2c360
Respects current ctx scale for mesh pattern
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
Yury Delendik
a583c319a1
Implements shading types 4-7
11 years ago
Yury Delendik
e9327050c3
Basic function.js split
11 years ago
Yury Delendik
18515b8668
Using blob URL for open file
11 years ago
Yury Delendik
48436b6a0f
Fixes smask backdrop
11 years ago
Yury Delendik
bf432a37bb
Refactors shared/pattern.js into core/ and display/
11 years ago
Rob Wu
2779bab03e
Use [].forEach instead of for-..-in in evaluator
...
To prevent errors whenever the array's prototype is extended.
(cmap is an array)
11 years ago
Mitar
9e8c75a7ff
Allow fake worker loader with namespaced bundling of PDF.js.
11 years ago
Yury Delendik
4054b0c385
SMask emulation
11 years ago
Rob Wu
b35ced8c9e
RFC 3986-compliant isValidUrl (protocol parsing)
...
To avoid misinterpreting URLs like "/File:wikipedia.png" as a
non-relative URLs.
11 years ago
Rob Wu
3c0b8073be
Try to recover from bad URI value
...
See https://github.com/mozilla/pdf.js/issues/4159
BAD (http://cms.di.unipi.it/files/bbec7791fac20e98127c77531e4031912392156c/testo.pdf )
<< /S /URI /URI /v#2findex.php#2fFile:Logo.png >>
GOOD (http://www.ioi2012.org/wp-content/uploads/2011/12/practice.pdf ):
<< /S /URI /URI (http://127.0.0.1/v/index.php/File:Logo.png >>
The URL should be wrapped in parentheses, but sometimes it isn't.
Consequently, the value is interpreted as a Name (because of the leading "/"),
and the resulting object is `{name: "v/index.php/File:Logo.png" }`. Obviously,
this is not a string, so `url.indexOf` throws an error here.
11 years ago
Jonas Jenwald
46ba8d10b0
Only check for line dash pattern when annotation has a visible border (bug 957034 followup)
11 years ago
Tim van der Meij
5f7ded4ff6
Document properties
11 years ago
Tim van der Meij
e612da2c3d
Fixes this.reject regression
11 years ago
Yury Delendik
27573ddbad
Minor fixes for the jsdocs and removing unused members.
11 years ago