Commit Graph

39 Commits

Author SHA1 Message Date
Luís Nabais
220a8e4f0e Fix the combineUrl function
* Allow a url to omit the protocol and use the same protocol as the
* current page
2014-02-28 17:25:46 +00:00
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.
2014-02-27 17:44:40 +01:00
Nicholas Nethercote
c4fab2f234 Share ColorSpace.getRgb() between all sub-classes. 2014-02-26 05:51:29 -08:00
Jonas Jenwald
054f1e7e57 Handle undefined url in LinkAnnotation 2014-02-15 13:49:24 +01:00
Yury Delendik
e9327050c3 Basic function.js split 2014-01-27 20:29:47 -06:00
Yury Delendik
bf432a37bb Refactors shared/pattern.js into core/ and display/ 2014-01-25 12:18:22 -06:00
Yury Delendik
5a6862decc Merge pull request #4164 from Snuffleupagus/bug-957034-followup
Only check for line dash pattern when annotation has a visible border (bug 957034 followup)
2014-01-22 08:27:47 -08:00
Rob Wu
b35ced8c9e RFC 3986-compliant isValidUrl (protocol parsing)
To avoid misinterpreting URLs like "/File:wikipedia.png" as a
non-relative URLs.
2014-01-22 15:10:06 +01:00
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.
2014-01-22 15:09:29 +01:00
Jonas Jenwald
46ba8d10b0 Only check for line dash pattern when annotation has a visible border (bug 957034 followup) 2014-01-22 14:04:55 +01:00
Nicholas Nethercote
0685214a77 Don't create the RGB buffer for images that don't need resizing. 2014-01-19 14:21:36 -08:00
Nicholas Nethercote
c044652320 Remove unneeded srcOffset arguments from createRgbBuffer. 2014-01-16 20:15:37 -08:00
Brendan Dahl
c57fdcceed Merge pull request #4125 from yurydelendik/issue4111
Fixes and refactors log functionality
2014-01-16 10:54:09 -08:00
Yury Delendik
754e000907 Fixes and refactors log functionality 2014-01-15 15:28:31 -06:00
Yury Delendik
a8c11ad1e5 Introduces disableObjectCreateURL 2014-01-10 16:30:41 -06:00
Jonas Jenwald
7c616502c2 Fix annotation border issue (bug 957034) 2014-01-09 13:44:21 +01:00
Yury Delendik
4d01ff4079 Merge pull request #4062 from kkujala/calgray
calgray: fix getRgbBuffer problem
2014-01-07 10:54:09 -08:00
Yury Delendik
5bf3e44e30 Introduces LegacyPromise; polyfills DOM Promise 2014-01-03 18:17:05 -06:00
Brendan Dahl
2228343f77 Only trigger warning bar on certain unsupported features. 2014-01-03 09:34:13 -08:00
Kalervo Kujala
4c040dd955 calgray: fix getRgbBuffer problem
This fixes issue 3903.
2014-01-01 23:49:03 +02:00
Brendan Dahl
53549411b4 Add verbosity as an api setting. 2013-12-18 13:39:03 -08:00
Hengjie
b96811df25 Fix Blob creation in Safari 7.0.
It should be !== ‘undefined’ to avoid matching everything that Blob can be a type of
2013-12-06 02:10:41 +13:00
Benjamin Flesch
d0ae79c994 Fixed Typo 2013-11-18 11:58:38 +01:00
Yury Delendik
c8af2565f1 Uses blob URL instead of data when possible 2013-11-14 15:21:42 -08:00
Yury Delendik
4ce6cb8b0f Uses postMessage transfers 2013-11-14 15:21:42 -08:00
Brendan Dahl
c2d65fc4ab Don't traverse all pages to get a single page. 2013-11-13 15:27:46 -08:00
Brendan Dahl
f4942b11f8 Reduce the memory usage of the operator list. 2013-11-13 11:43:38 -08:00
Brendan Dahl
f72fad9a1a Merge pull request #3744 from Snuffleupagus/enable-www-links
Enable links beginning with 'www.' even if no protocol is specified
2013-10-30 10:32:22 -07:00
Jonas Jenwald
fb52144cfb Enable links beginning with 'www.' even if no protocol is specified 2013-10-16 00:12:23 +02:00
Kalervo Kujala
a5bf02573d Implement initial CalGray support
Gamma and Whitepoint are supported in this patch for CalGray.
Blackpoint is not supported.
2013-10-13 19:55:42 +03:00
Tim van der Meij
48a24a48c1 Fixing annotation icon issues 2013-09-06 21:00:02 +02:00
Tim van der Meij
14912b5a03 Annotation selection 2013-09-05 23:19:04 +02:00
Yury Delendik
8a4a6f498f Merge pull request #3553 from yurydelendik/reduce-scratch-canvases
Reduce max size for pattern and limit group canvases
2013-08-30 18:02:15 -07:00
Yury Delendik
1de48f1805 Merge pull request #3595 from brendandahl/fix-clip
Move the creation of canvas path fonts to the worker.
2013-08-26 06:48:05 -07:00
Brendan Dahl
feafb394d6 Use text widget annotation appearance stream if it is available. 2013-08-22 12:29:06 -07:00
Brendan Dahl
bb2529de03 Move the creation of canvas path fonts to the worker. 2013-08-19 16:33:20 -07:00
Yury Delendik
b8143b394c Reduce max size for pattern and limit group canvases 2013-08-16 09:50:48 -05:00
Yury Delendik
cb59b31927 IE9 does not need onreadystatechange 2013-08-16 09:19:42 -05:00
Brendan Dahl
5ecce4996b Split files into worker and main thread pieces. 2013-08-12 10:48:06 -07:00