Yury Delendik
2fb9baf6f1
Changing Firefox Addon ID
...
.. to allow AMO publishing to the unlisted extensions for automatic signing.
2015-12-18 09:06:23 -06:00
Tony Jin
11f3deac56
Allow link rel to be customized. Defaults to 'noreferrer'
2015-12-17 10:36:53 -08:00
Brendan Dahl
a8d760d97f
Merge pull request #6766 from brendandahl/1.3
...
Bump versions to 1.3.
2015-12-16 15:14:00 -08:00
Tim van der Meij
df81b832bb
Remove unused variables
2015-12-16 23:52:16 +01:00
Brendan Dahl
0521c1a3be
Bump versions to 1.3.
2015-12-16 14:42:25 -08:00
Jonas Jenwald
f01911fcd9
Merge pull request #6764 from yurydelendik/rm-umd
...
Collapses UMD headers in bundled files.
2015-12-16 22:46:25 +01:00
Yury Delendik
2f704f5957
Collapses UMD headers in bundled files.
2015-12-16 07:42:54 -06:00
Jonas Jenwald
0a21c8c365
Merge pull request #6762 from Snuffleupagus/fix-Uint32ArrayView-exports
...
Only export `Uint32ArrayView` when it's actually defined, to prevent breaking e.g. the Firefox addon/built-in version
2015-12-16 11:24:41 +01:00
Jonas Jenwald
d4c026980e
Only export Uint32ArrayView
when it's actually defined, to prevent breaking e.g. the Firefox addon/built-in version
...
*This is a follow-up to PR 6683.*
2015-12-16 11:15:36 +01:00
Brendan Dahl
f1c64b6a2a
Merge pull request #6683 from yurydelendik/module-core
...
Adds UMD headers to core, display and shared files.
2015-12-15 17:10:21 -08:00
Tim van der Meij
a1aec826ea
Merge pull request #6758 from KamiHQ/fix-text-widget
...
Fix incorrect position of text widget
2015-12-16 00:29:39 +01:00
Xiliang Chen
8bf17f5df8
Fix incorrect position of text widget
2015-12-16 11:21:01 +13:00
Yury Delendik
b084dc09ee
Allows requirejs and node load fake worker files.
2015-12-15 13:24:39 -06:00
Yury Delendik
450edc95cc
UMD validation and generation tools.
2015-12-15 13:24:39 -06:00
Yury Delendik
6b60c8f4db
Adds UMD headers to core, display and shared files.
2015-12-15 13:24:39 -06:00
Tim van der Meij
1b5940edd2
Merge pull request #6714 from timvandermeij/annotation-web-to-src
...
[api-minor] Move annotation DOM manipulation logic to src/display/annotation_layer.js
2015-12-15 19:06:48 +01:00
Yury Delendik
7f34d40faf
Imports L10n.
2015-12-15 10:07:25 -06:00
Tim van der Meij
edce8daeac
Implement annotation layer rendering and updating in src/display/annotation_layer.js
2015-12-15 17:00:01 +01:00
Tim van der Meij
b1937e7670
Remove superfluous comments in the annotation layer code
2015-12-15 16:27:35 +01:00
Tim van der Meij
a6ba210c19
Merge pull request #6757 from timvandermeij/annotation-types
...
Implement constants for all annotation types
2015-12-15 15:52:55 +01:00
Tim van der Meij
8d36aad30a
Implement constants for all annotation types
...
Now we have a full list of all possible annotation types and the
numbering corresponds to the order in the specification. Not only is
this more consistent and complete, it also prevents having to add these
constants when a new annotation type is implemented.
Additionally fix an issue where a regular Widget annotation would not
have `data.annotationType` set. It was only set for a
TextWidgetAnnotation, but instead move it to the base Widget annotation
class to add it for all Widget annotations (since TextWidgetAnnotation
inherits from WidgetAnnotation it will have it too).
2015-12-15 15:23:55 +01:00
Tim van der Meij
f93a220736
Merge pull request #6684 from dsprenkels/issue-6296-radial-shading-size
...
shading-pattern: While drawing patterns, use transform to baseTransform first
2015-12-14 20:39:08 +01:00
Yury Delendik
f7ec866c39
Merge pull request #6747 from Snuffleupagus/issue-6742
...
Remove the superfluous `PDFJS.disableFontFace = false;` statement at the top of font_loader.js (issue 6742)
2015-12-12 12:53:56 -05:00
Yury Delendik
4485c79940
Merge pull request #6745 from Snuffleupagus/bug-1232071
...
Reset the `styleElement` when clearing out loaded fonts (bug 1232017)
2015-12-12 12:50:21 -05:00
Jonas Jenwald
12068490ed
Remove the superfluous PDFJS.disableFontFace = false;
statement at the top of font_loader.js (issue 6742)
...
Fixes 6742.
2015-12-12 12:39:56 +01:00
Jonas Jenwald
f0e4795302
Reset the styleElement
when clearing out loaded fonts (bug 1232017)
...
*This is a follow-up to PR 6571.*
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1232071 .
2015-12-12 11:33:43 +01:00
Tim van der Meij
4d6f3c85e0
Merge pull request #6743 from Snuffleupagus/travis-newer-node-version
...
Update the Node.js version used by Travis, to prevent deprecation warnings in the output
2015-12-10 21:45:37 +01:00
Tim van der Meij
c6e9be8b24
Merge pull request #6733 from Snuffleupagus/travis-lint-with-make
...
Let Travis lint using `node make lint`, instead of a hard-coded command
2015-12-10 21:40:10 +01:00
Brendan Dahl
91b27aae46
Merge pull request #6651 from yurydelendik/fix-chars-scaling
...
Fix chars scaling for standard fonts. (redo of #4908 )
2015-12-10 14:18:48 -05:00
Jonas Jenwald
81e86c4e3d
Update the Node.js version used by Travis, to prevent deprecation warnings in the output
2015-12-10 13:15:32 +01:00
Jonas Jenwald
d6c2ced9e6
Let Travis lint using node make lint
, instead of a hard-coded command
2015-12-10 10:06:32 +01:00
Tim van der Meij
7b144c02d3
Merge pull request #6739 from Snuffleupagus/PDFLinkService_getDestinationHash-prevent-resource-url-in-firefox
...
[Firefox] Prevent internal links from displaying "resource://pdf.js/web/" on hover, by tweaking the fallback case in `PDFLinkService_getDestinationHash`
2015-12-09 22:25:21 +01:00
Jonas Jenwald
d2c58a4ccc
[Firefox] Prevent internal links from displaying "resource://pdf.js/web/" on hover, by tweaking the fallback case in PDFLinkService_getDestinationHash
...
An example where this is happening is http://www.nyc.gov/html/dcp/pdf/zone/map8c.pdf , check the link just below "Effective Date(s) of Rezoning:" on the right middle of the page.
2015-12-09 10:07:39 +01:00
Tim van der Meij
bce3214105
Move link creation logic to src/display/annotation_layer.js
...
Additionally simplify the div creation logic (it needs to happen only
once, so it should not be in the for-loop) and remove/rename variables
for shorter code.
2015-12-08 23:56:17 +01:00
Tim van der Meij
a96602223f
Merge pull request #6736 from Snuffleupagus/adjustWidths
...
Use `adjustWidths` for TrueType fonts if we handle them as OpenType (issue 5027, issue 5084, issue 6556, bug 1204903)
2015-12-08 14:01:35 +01:00
Jonas Jenwald
ee0d522187
Use adjustWidths
for TrueType fonts if we handle them as OpenType (issue 5027, issue 5084, issue 6556, bug 1204903)
...
In `Font_checkAndRepair` we can decide that a font isn't TrueType, and instead parse it as CFF. In that case it's quite possible that the `fontMatrix` will be changed, and without calling `adjustWidths` we're failing to update the glyph widths correctly.
Fixes 5027.
Fixes 5084.
Fixes 6556.
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1204903 .
2015-12-08 00:49:22 +01:00
Jonas Jenwald
084bb8682f
Merge pull request #6723 from yurydelendik/smask-transfer
...
Adds transfer function support for SMask.
2015-12-05 22:41:56 +01:00
Yury Delendik
5beb9a2e25
Merge pull request #6727 from yurydelendik/issue6726
...
Replaces test for #6720 to fix botio-linux slow script.
2015-12-05 13:43:51 -06:00
Yury Delendik
1bbe8f3fee
Replaces test for #6720 to fix botio-linux slow script.
2015-12-05 12:33:25 -06:00
Yury Delendik
171f59c935
Merge pull request #6725 from Snuffleupagus/IdentityToUnicodeMap_charCodeOf
...
Fix the `charCodeOf` method in `IdentityToUnicodeMap` in order to prevent text selection from breaking
2015-12-05 06:47:05 -06:00
Jonas Jenwald
4810b7b8fc
Fix the charCodeOf
method in IdentityToUnicodeMap
in order to prevent text selection from breaking
...
After PR 6590, `font.spaceWidth` is now called in more cases than before (in `PartialEvaluator_getTextContent`), which exposed an underlying issue with `IdentityToUnicodeMap_charCodeOf` throwing an error.
This breaks text-selection in some PDF files found in the wild, hence this patch replaces the `error` with an actual function instead (modelled after `IdentityCMap_charCodeOf`).
2015-12-05 13:15:55 +01:00
Yury Delendik
15c9969abe
Adds transfer function support for SMask.
2015-12-04 12:52:45 -06:00
Jonas Jenwald
e2aca385c6
Merge pull request #6720 from yurydelendik/smask-state
...
Fixes canvas state after smask group ends.
2015-12-03 22:19:37 +01:00
Yury Delendik
d4843ebf6d
Fixes canvas state after smask group ends.
2015-12-03 14:34:12 -06:00
Tim van der Meij
e180d01255
Merge pull request #6715 from brendandahl/remove-bad-glyph-ids
...
Remove glyph id's outside the range of valid glyphs.
2015-12-03 20:59:03 +01:00
Brendan Dahl
87762afec4
Remove glyph id's outside the range of valid glyphs.
...
OTS does not like invalid glyph ids in a camp table.
2015-12-03 11:53:06 -08:00
Tim van der Meij
2dc3ee38c0
Move most rendering logic to src/display/annotation_layer.js
2015-12-03 00:20:18 +01:00
Tim van der Meij
38567ac3a3
Rename initContainer(item)
to getContainer(data)
...
Naming it this way makes more sense when compared to the core
annoatation code. That code also uses `data` for the annotation
properties.
2015-12-02 23:35:21 +01:00
Tim van der Meij
91274d6d2d
Rename annotation_helper.js to annotation_layer.js
2015-12-02 23:30:28 +01:00
Yury Delendik
e93512f1eb
Merge pull request #6712 from timvandermeij/text-layer-position
...
Use default line height for the text layer
2015-12-02 16:05:50 -06:00