Jonas Jenwald
85cf90643f
[api-minor] Add support for PageLabels in the API
2016-01-19 22:49:04 +01:00
Jonas Jenwald
0030a82dc3
[api-minor] Add support for URLs in the document outline
...
Re: issue 5089.
(Note that since there are other outline features that we currently don't support, e.g. bold/italic text and custom colours, I thus think we can keep the referenced issue open.)
2016-01-19 21:36:27 +01:00
Tim van der Meij
30b8f41003
Merge pull request #6820 from Snuffleupagus/showText-shadingPattern
...
Apply Patterns, if necessary, when rendering text
2016-01-08 14:02:56 +01:00
Brendan Dahl
4a215f0892
Merge pull request #6825 from yurydelendik/pdfjsumd
...
Adds UMD header to pdf.js and pdf.worker.js files.
2016-01-07 15:07:58 -08:00
Jonas Jenwald
97c10e9c08
Strip null
(\x00) characters from the URLs in LinkAnnotations (issue 6832)
...
Apparently some PDF files can have annotations with `URI` entries ending with `null` characters, thus breaking the links.
To handle this edge-case of bad PDFs, this patch moves the already existing utility function from `ui_utils.js` into `util.js`, in order to fix those URLs.
Fixes 6832.
2016-01-04 21:55:20 +01:00
Tim van der Meij
6ef7120a04
Implement support for Highlight annotations
2016-01-01 15:31:46 +01:00
Yury Delendik
f340dd5cd5
Adds pdfjs/main_loader module to better mirror pdfjs-dist/build/pdf.
2015-12-30 13:28:57 -06:00
Tim van der Meij
34918a6666
Implement support for Squiggly annotations
2015-12-30 19:37:04 +01:00
Jonas Jenwald
d956177482
Merge pull request #6819 from timvandermeij/strikeout-annotation
...
Implement support for StrikeOut annotations
2015-12-30 14:44:50 +01:00
Yury Delendik
cbbb9bb82d
Adds UMD header to pdf.js and pdf.worker.js files.
2015-12-29 18:15:14 -06:00
Tim van der Meij
e8db825512
Merge pull request #6771 from yurydelendik/requirejs
...
Removes hardcoded module loading order
2015-12-30 00:37:32 +01:00
Jonas Jenwald
1d1f175826
Apply Patterns, if necessary, when rendering text
...
Currently we're not applying Patterns for text, but only for graphics.
This patch is unfortunately not a complete solution, but rather a step on the way, since there are still some PDF files where the Patterns look more like a solid colour, rather than the intended gradient.
I've been unable to fix these issues completely, and I've not managed to determine if the remaining issues are caused either by the pattern code, the canvas code, or perhaps both.
However, given that even this simple patch improves the current situation quite a bit, I figured that it couldn't hurt to submit it as-is.
- Fixes 5804.
- Fixes 6130.
- Improves 3988 a lot, since the text is now visible. However, it looks like the text is *one* solid colour, instead of the correct gradient.
- Improves 5432, since the text is no longer gray. (This file also suffers from the same problem as the previous one.)
2015-12-29 20:02:40 +01:00
Yury Delendik
2b2c521213
Hack to avoid intermidiate Chrome failures during tests.
...
Remove when https://code.google.com/p/chromium/issues/detail?id=572225 is fixed.
2015-12-29 09:20:53 -06:00
Yury Delendik
fc3282db56
Adds RequireJS to worker.
2015-12-29 09:20:52 -06:00
Yury Delendik
85e95d34ed
Use RequireJS in the viewer, examples and tests.
2015-12-29 09:20:52 -06:00
Tim van der Meij
c5f4b9750e
Implement support for StrikeOut annotations
2015-12-29 15:09:28 +01:00
Jonas Jenwald
b32cdf5836
Merge pull request #6813 from timvandermeij/underline-annotation
...
Implement support for Underline annotations
2015-12-28 23:48:31 +01:00
Jonas Jenwald
85589483d6
Merge pull request #6807 from timvandermeij/popup-annotation-hidden
...
Ensure that hidden popups do not use any space
2015-12-28 22:58:41 +01:00
Tim van der Meij
ae329afc03
Ensure that hidden popups do not use any space
2015-12-28 18:54:10 +01:00
Tim van der Meij
edf8ccc1d8
Merge pull request #6814 from Snuffleupagus/beginAnnotations-baseTransform
...
Ensure that the `baseTransform` is applied when rendering annotations
2015-12-28 18:32:50 +01:00
Jonas Jenwald
2f2ea6160b
Ensure that the baseTransform
is applied when rendering annotations
...
Fixes 3350.
Fixes 5946.
Fixes 6334.
Fixes 6722.
Probably fixes 3826 (since the PDF files are no longer available, I cannot confirm it).
2015-12-28 16:02:38 +01:00
Tim van der Meij
cd28dd34fe
Implement support for Underline annotations
2015-12-28 00:33:41 +01:00
Tim van der Meij
26379ddae2
Rename and reorder link annotation CSS
2015-12-27 15:51:58 +01:00
Jonas Jenwald
3c7088dc44
Do not modify data.rect
in AnnotationElement_createContainer
, since that will corrupt the annotation position on subsequent calls
...
Fixes 6804; this regressed in PR 6714.
2015-12-27 12:46:20 +01:00
Tim van der Meij
7d43971f54
Implement support for Popup annotations
...
Most code for Popup annotations is already present for Text annotations.
This patch extracts the popup creation logic from the Text annotation
code so it can be reused for Popup annotations.
Not only does this add support for Popup annotations, the Text
annotation code is also considerably easier. If a `Popup` entry is
available for a Text annotation, it will not be more than an image. The
popup will be handled by the Popup annotation. However, it is also
possible for Text annotations to not have a separate Popup annotation,
in which case the Text annotation handles the popup creation itself.
2015-12-25 13:17:21 +01:00
Tim van der Meij
05b9d3730a
Merge pull request #6785 from yurydelendik/frameworks
...
Adds/modifies examples for node.js and webpack.
2015-12-21 22:44:58 +01:00
Yury Delendik
79c2f69c32
Adds/modifies examples for node.js and webpack.
2015-12-21 13:46:50 -06:00
Tim van der Meij
5b66ad626d
Refactor annotation display layer code to use classes
2015-12-19 19:31:37 +01:00
Tony Jin
f9e2091c5a
Fixing externalLinkTarget. isExternalLinkTargetSet was set to
...
wrong sharedUtil method.
2015-12-18 11:27:21 -08:00
Yury Delendik
42beb0c27b
Merge pull request #6767 from tonyjin/strip-link-referrer
...
Strip referrer from link annotation.
2015-12-18 12:27:15 -06:00
Tony Jin
11f3deac56
Allow link rel to be customized. Defaults to 'noreferrer'
2015-12-17 10:36:53 -08:00
Tim van der Meij
df81b832bb
Remove unused variables
2015-12-16 23:52:16 +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
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
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
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
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
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
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
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
Yury Delendik
15c9969abe
Adds transfer function support for SMask.
2015-12-04 12:52:45 -06:00
Yury Delendik
d4843ebf6d
Fixes canvas state after smask group ends.
2015-12-03 14:34:12 -06: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