Jonas Jenwald
772df5e0cb
Workaround for missing 'Rect' entry in annotation dictionaries (issue 4537)
11 years ago
fkaelberer
c978c026fa
clean up string conversion functions
11 years ago
Yury Delendik
1d0286f6a1
Update util.js
...
Fixes comments for preprocessor
11 years ago
Yury Delendik
31f081ae17
Doesn't traverse cyclic references in Dict.getAll; reduces empty-Dict garbage
11 years ago
p01
4e6ebf2de0
Optimized putBinaryImageData for GRAYSCALE_1BPP
...
The following changes make putBinaryImageData 2.2x faster.
* Use a Uint32Array to draw whole pixels instead component by component
* Unroll the inner most loop
* Added lazy PDFJS.hasCanvasTypedArrays, PDFJS.isLittleEndian and compatibility
Uint32ArrayView for browsers using the old CanvasPixelArray
11 years ago
Christian Krebs
fc9edfcf76
Introduce paintSolidColorImageMask command to handle 1x1 solid image masks
...
See https://github.com/mozilla/pdf.js/issues/4436 for details
11 years ago
Yury Delendik
257898b359
Caching inlined mask images
11 years ago
Yury Delendik
f48f57e30a
Caches last parsed resource image, recornizes image repeats
11 years ago
Tim van der Meij
99b0231343
Fixes typo in function.js
11 years ago
Jonas Jenwald
4840c2ccdc
Add braces to single line statements in src/shared/annotation.js
11 years ago
Jonas Jenwald
15a63e48bd
Add braces to single line statements in src/shared/colorspace.js
11 years ago
Jonas Jenwald
00f6d07a21
Add braces to single line statements in src/shared/fonts_util.js
11 years ago
Jonas Jenwald
e8a68f12df
Add braces to single line statements in src/shared/function.js
11 years ago
Jonas Jenwald
635466fcd2
Add braces to single line statements in src/shared/util.js
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
a2fe30ff38
Use RGB_24BPP form for all images lacking alpha data.
11 years ago
Yury Delendik
10af056f8f
Reset annotation stream; reset page annotation promise
11 years ago
Nicholas Nethercote
ab7568c0ff
Use Array.join() to build up strings in more places.
11 years ago
Mitar
2c82e720b8
Updated to current latest stable version of jshint.
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
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
Nicholas Nethercote
c4fab2f234
Share ColorSpace.getRgb() between all sub-classes.
11 years ago
Nicholas Nethercote
42cbb5b440
Introduce ImageKind constants.
11 years ago
Jonas Jenwald
054f1e7e57
Handle undefined url in LinkAnnotation
11 years ago
Yury Delendik
e9327050c3
Basic function.js split
11 years ago
Yury Delendik
bf432a37bb
Refactors shared/pattern.js into core/ and display/
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
Nicholas Nethercote
0685214a77
Don't create the RGB buffer for images that don't need resizing.
11 years ago
Nicholas Nethercote
c044652320
Remove unneeded srcOffset arguments from createRgbBuffer.
11 years ago
Yury Delendik
754e000907
Fixes and refactors log functionality
11 years ago
Yury Delendik
a8c11ad1e5
Introduces disableObjectCreateURL
11 years ago
Jonas Jenwald
7c616502c2
Fix annotation border issue (bug 957034)
11 years ago
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
12 years ago
Brendan Dahl
2228343f77
Only trigger warning bar on certain unsupported features.
12 years ago
Kalervo Kujala
4c040dd955
calgray: fix getRgbBuffer problem
...
This fixes issue 3903.
12 years ago
Brendan Dahl
53549411b4
Add verbosity as an api setting.
12 years ago
Hengjie
b96811df25
Fix Blob creation in Safari 7.0.
...
It should be !== ‘undefined’ to avoid matching everything that Blob can be a type of
12 years ago
Benjamin Flesch
d0ae79c994
Fixed Typo
12 years ago
Yury Delendik
c8af2565f1
Uses blob URL instead of data when possible
12 years ago
Yury Delendik
4ce6cb8b0f
Uses postMessage transfers
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
Jonas Jenwald
fb52144cfb
Enable links beginning with 'www.' even if no protocol is specified
12 years ago
Kalervo Kujala
a5bf02573d
Implement initial CalGray support
...
Gamma and Whitepoint are supported in this patch for CalGray.
Blackpoint is not supported.
12 years ago
Tim van der Meij
48a24a48c1
Fixing annotation icon issues
12 years ago
Tim van der Meij
14912b5a03
Annotation selection
12 years ago
Brendan Dahl
feafb394d6
Use text widget annotation appearance stream if it is available.
12 years ago
Brendan Dahl
bb2529de03
Move the creation of canvas path fonts to the worker.
12 years ago