Yury Delendik
95e61ad0e3
Adds pageviewport documentation
11 years ago
p01
f70a072cde
Optimized CalGrayCS's convertToRgb
11 years ago
Tim van der Meij
4caf5b694e
Completes unit tests for PostScript evaluator and fixes two bugs in the evaluator itself
11 years ago
Jonas Jenwald
cb59e7f872
Remove LegacyPromise in src/shared/annotation.js
11 years ago
Jonas Jenwald
ad732f6403
Remove LegacyPromise
11 years ago
Yury Delendik
63d5aae3f6
Groups path commands into single command
11 years ago
Pramodh KP
04b1eefb1d
Added reject polyfill and PromiseCapability
11 years ago
p01
8f9bd33a57
PDFImage_resize: copy in place with alpha and ~5x speed up
11 years ago
Jonas Jenwald
ead5653cdc
Add integer conversion to RGB colour values in convertToRgb in DeviceCmykCS (issue 4443)
11 years ago
Tim van der Meij
8d365b23ca
Force default icon size for Text annotations without appearance stream
11 years ago
fkaelberer
b06c10cbbd
rename getUint32 to getInt32 and collect readInt*() in util.js
11 years ago
Samuel Chantaraud
7a4543e348
Prevent the annotationLayer to be recreated when the page is redrawn
...
This allows interactive annotations to keep their states after a resize
11 years ago
Rob Wu
2e97c0d085
Remove some unused variables from src/
...
Only obviously useless, local variables have been removed.
11 years ago
Yury Delendik
2ca2c387fc
Creates make.js code to build jsdoc.
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
Tim van der Meij
10f80bda23
Fixes lint warning W004 in src/shared
11 years ago
Tim van der Meij
a71a87a821
Fixes lint warning W018: confusing use of exclamation mark
11 years ago
Yury Delendik
791c9a7b13
Relaxes murmurhash array requirement.
11 years ago
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