Yury Delendik
7ae7fd3d1a
Adds DEFAULT_PREFERENCES to the PdfjsChromeUtils
2014-09-08 15:53:01 -05:00
Yury Delendik
782ed5cb67
Lint error fix for pdfjschildbootstrap.js
2014-09-08 15:44:21 -05:00
Jonas Jenwald
27a80f3b88
Add unit test for |MissingPDFException|
2014-09-08 22:34:26 +02:00
Jonas Jenwald
6077e93275
In test/unit/api_spec.js rename the function waitsForPromise
to waitsForPromiseResolved
and add a waitsForPromiseRejected
function
2014-09-08 22:34:26 +02:00
Jonas Jenwald
2701edc7c6
Change getDocumentError
in web/viewer.js to use instanceof
instead of the exception name
2014-09-08 22:34:25 +02:00
Jonas Jenwald
ca027ebfdb
Fix the exception propagation when rejecting workerReadyCapability
...
Currently when an exception is thrown, we try to reject `workerReadyCapability` with multiple arguments in src/core/api.js. This obviously doesn't work, hence this patch changes that to instead reject with the exception object as is.
In src/core/worker.js the exception is currently (unncessarily) wrapped in an object, so this patch also simplifies that to directly send the exception object instead.
2014-09-08 22:20:41 +02:00
Yury Delendik
b3be74d81c
Merge pull request #5221 from nnethercote/dont-scale-single-char-text-divs
...
Don't scale single-char text divs.
2014-09-08 11:17:25 -05:00
Yury Delendik
a19790d653
Merge pull request #5235 from Snuffleupagus/remove-duplicate-test-file
...
Remove a duplicate PDF file from the test suite
2014-09-08 11:03:37 -05:00
Yury Delendik
f925e7d738
Merge pull request #5276 from Snuffleupagus/issue-5270
...
Fix handling of RGBA buffers in CalRGB colorspace (issue 5270)
2014-09-08 08:35:58 -05:00
Jonas Jenwald
007d7b2d95
Fix handling of RGBA buffers in CalRGB colorspace (issue 5270)
2014-09-08 12:26:32 +02:00
Rob Wu
7938081e81
streamsPrivate API change.
...
Since 25 February 2014 (crbug.com/345882)
2014-09-06 00:41:08 +02:00
Rob Wu
c9b3ea2f84
Adjust use of chrome.storage.managed for Opera
...
It turns out that chrome.storage.managed is defined for Opera, so the
previous feature detection method did not work.
2014-09-06 00:37:30 +02:00
Jim Mathies
f2096fe23f
Firefox pdf viewer support for e10s (Bug 942707).
2014-09-05 17:33:52 -05:00
Tim van der Meij
1d9dc37337
Merge pull request #5248 from Snuffleupagus/getStats-unit-test
...
Add getStats unit test
2014-09-05 19:17:43 +02:00
Tim van der Meij
8c76501a49
Merge pull request #5226 from Snuffleupagus/issue-5224
...
Fix Zoom box resizing when it's hidden when the viewer loads (issue 5224)
2014-09-05 19:06:39 +02:00
Yury Delendik
de5ac69e7c
Update l10n
2014-09-04 18:21:57 -05:00
Yury Delendik
64118981fc
Merge pull request #5267 from yurydelendik/version1.0.712
...
Version 1.0.712
2014-09-04 18:19:14 -05:00
Yury Delendik
e6923ab255
Version 1.0.712
2014-09-04 18:18:21 -05:00
Yury Delendik
2e83dc2848
Merge pull request #5260 from Snuffleupagus/symbol-brackets
...
Add more cases to |mapSpecialUnicodeValues| to fix the rendering of various Symbol encoded brackets
2014-09-04 12:58:48 -05:00
Jonas Jenwald
7b3f222787
Add |SpecialPUASymbols| map and refactor |mapSpecialUnicodeValues|
2014-09-04 13:41:15 +02:00
Jonas Jenwald
2d5596172c
Add more cases to |mapSpecialUnicodeValues| to fix the rendering of various Symbol encoded brackets
2014-09-04 12:40:15 +02:00
Yury Delendik
467b3247b3
Merge pull request #5249 from Rob--W/issue-5243
...
CCITTFaxStream parser: resolve xref if needed
2014-09-03 17:38:13 -05:00
Yury Delendik
40ebf71ccf
Merge pull request #5251 from Snuffleupagus/dingbats
...
Add basic support for ZapfDingbats
2014-09-03 15:33:20 -05:00
Jonas Jenwald
3ca2c3f4a7
Add ZapfDingbats testcase
2014-09-03 21:57:57 +02:00
Jonas Jenwald
4bda6ba1b8
Add basic support for ZapfDingbats
2014-09-03 21:54:04 +02:00
Tim van der Meij
2158fcc0f1
Merge pull request #5259 from Rob--W/handtool-unfocus
...
Handtool: Remove focus from previous node on click
2014-09-03 20:34:20 +02:00
Tim van der Meij
d9ec0e58e0
Merge pull request #5237 from Snuffleupagus/fix-findInput-RTL-loading-indicator
...
Fix the placement of the findInput loading indicator in RTL locales
2014-09-03 20:31:33 +02:00
Rob Wu
204d540af2
Handtool: Remove focus from previous node on click
...
"This commit fixes the issue that a focused element cannot lose
focus when the draggable element is clicked."
https://github.com/Rob--W/grab-to-pan.js/commit/11c368f97cebe19
Steps to reproduce/verify:
1. Enable the hand tool (e.g. by using the H shortcut)
2. Click on the Page number input.
3. Click or drag the PDF canvas.
4. Observe that the page number input is still focused.
Consequently, the hand tool cannot be disabled using the H shortcut.
2014-09-03 16:31:47 +02:00
Jonas Jenwald
be595d0721
Further amend GlyphMapForStandardFonts (issue 5244)
2014-09-01 10:51:22 +02:00
Rob Wu
07a4837763
CCITTFaxStream parser: resolve xref if needed
...
Fixes #5243
2014-08-31 11:03:24 +02:00
Jonas Jenwald
fb7489ffd0
Add getStats unit test
...
Since some Telemetry data depends on `getStats`, having a unit test should make it more diffucult to accidentally break this without noticing.
2014-08-30 22:12:34 +02:00
Rob Wu
b57d35034c
Remove TextDecoder feature tests
...
TextDecoder is not required by PDF.js any more, and the wiki entry has been deleted as well:
13ddaa9845...09aac34e58
2014-08-30 10:55:00 +02:00
Rob Wu
fe598d1a55
Update link-to-wiki generator
2014-08-30 10:51:50 +02:00
Tim van der Meij
8042a4b783
Merge pull request #5242 from yscumc/patch-1
...
Fix for minutes tz calculation in document properties
2014-08-29 19:40:12 +02:00
yscumc
4acb744f77
Update document_properties.js
...
Fix for minutes tz calculation
2014-08-28 16:22:57 -04:00
Yury Delendik
61eac43c9b
Merge pull request #5240 from Snuffleupagus/api-progressCallback-doc
...
In src/display/api.js, add documentation for the |progressCallback| parameter in |PDFJS.getDocument|
2014-08-28 08:03:10 -05:00
Jonas Jenwald
64d95bedaa
In src/display/api.js, add documentation for the |progressCallback| parameter in |PDFJS.getDocument|
2014-08-28 14:11:14 +02:00
Jonas Jenwald
4fcd502b1e
Merge pull request #5232 from Rob--W/crx-isolate-pageAction-logic
...
Chrome extension: Isolate pageAction logic
2014-08-26 12:38:52 +02:00
Jonas Jenwald
5c84dd319f
Fix the placement of the findInput loading indicator in RTL locales
...
Currently in RTL locales, the loading indicator is placed such that it is in the way when entring a search term. Hence this patch moves it to the other side of the input field to fix this.
2014-08-25 22:58:44 +02:00
Jonas Jenwald
3152085b0d
Remove a duplicate PDF file from the test suite
...
The files issue3115.pdf and issue2337.pdf are identical, the only difference being that the first one is an `eq` test and the second one a `load` test. Hence there is no reason to keep the `load` test, since it's just a subset of the `eq` test.
2014-08-24 16:23:25 +02:00
Jonas Jenwald
cc8710acbf
Workaround for TrueType fonts with exotic cmap tables (bug 1057544)
2014-08-23 11:27:41 +02:00
Chris Peterson
81d5bd86ea
Replace magic scale value 0 with UNKNOWN_SCALE
2014-08-23 00:14:44 -07:00
Chris Peterson
50a4510ab7
Auto zoom landscape documents to fit their height
2014-08-23 00:14:18 -07:00
Rob Wu
1055350425
Chrome extension: Isolate pageAction logic
...
Remove pageAction logic from extension router, and put it in a
separate file. The pageAction URL parsing logic has been simplified,
and all pageAction-related files have been moved to a separate directory.
2014-08-22 23:00:39 +02:00
Jonas Jenwald
5abe1cae6a
Fix Zoom box resizing when it's hidden when the viewer loads (issue 5224)
2014-08-21 17:57:57 +02:00
Yury Delendik
4834f1c289
Merge pull request #5219 from Snuffleupagus/sanitizeMetrics-avoid-intermediate-strings
...
Avoid creating intermediate strings in sanitizeMetrics
2014-08-21 08:05:44 -05:00
Nicholas Nethercote
cd61aad24f
Don't scale single-char text divs.
...
This change makes scrolling noticeably smoother on files with many
single-char text divs, such as the one in #1045 . The trade-off is that
the visual appearance of text selection in such documents is slightly
worse, because more text divs overlap.
This change also uses `scaleX(N)` instead of `scale(N, 1)`. This might
be marginally more efficient in terms of JS string concatenation.
2014-08-20 19:34:33 -07:00
Jonas Jenwald
ae896fc071
Avoid creating intermediate strings in sanitizeMetrics
...
This patch avoids creating many intermediate strings, when adding dummy width/lsb entries for glyphs where those are missing.
For the relevant PDF files in our test suite, the average number of intermediate strings are well over 1000.
2014-08-20 23:55:57 +02:00
Tim van der Meij
b4fb1e21e7
Merge pull request #5209 from CodingFabian/text-layer-transform-origin
...
Set transformOrigin for text layer in css.
2014-08-19 22:59:55 +02:00
Fabian Lange
1da38ec91e
no need to set textlayer properties which are overwritten in individual styles.
2014-08-19 22:47:39 +02:00