Yury Delendik
0e2d50f8e6
Merge pull request #7235 from yurydelendik/version1.5
...
Version 1.5
9 years ago
Yury Delendik
c5f2cd6dd4
Version 1.5
9 years ago
Jonas Jenwald
4aac324558
Merge pull request #7209 from yurydelendik/getElementById
...
Moves all document.getElementById lookups into viewer.js
9 years ago
Yury Delendik
b6c74f2056
Moves all document.getElementById lookups into viewer.js
9 years ago
Yury Delendik
d5c000850a
Merge pull request #7233 from Snuffleupagus/issue-7229
...
Adjust incorrect first obj number of "free" xref entry in `XRef_readXRefTable` (issue 7229)
9 years ago
Jonas Jenwald
293901d7e5
Add a (linked) test-case for issue 3248
9 years ago
Jonas Jenwald
e281ef15db
Adjust incorrect first obj number of "free" xref entry in `XRef_readXRefTable` (issue 7229)
...
Fixes 7229.
9 years ago
Jonas Jenwald
2001953871
Merge pull request #7219 from timvandermeij/password-prompt-class
...
Convert the password prompt to a class
9 years ago
Tim van der Meij
2b7137ba0a
Convert the password prompt to a class
...
Furthermore we introduce two new methods named `setCallback` and
`setReason` so external code does not change the properties of the class
directly. Finally we update various names of properties and methods to
be more self-explanatory.
9 years ago
Jonas Jenwald
990150ce61
Update l10n files
9 years ago
Yury Delendik
3228c9445c
Merge pull request #7210 from Snuffleupagus/extract-PDFImage.resize
...
Split the two paths in `PDFImage.resize` into separate helper functions, placed in colorspace.js and image.js
9 years ago
Jonas Jenwald
19e0599f74
Split the two paths in `PDFImage.resize` into separate helper functions, placed in colorspace.js and image.js
...
Re: issue 6777.
9 years ago
Yury Delendik
0428fdf3ca
Merge pull request #7211 from Snuffleupagus/crypto-tests-NEED_PASSWORD
...
Add a couple of `CipherTransformFactory` unit-tests for blank passwords, and move the `isDict` unit-tests to the correct file
9 years ago
Jonas Jenwald
b4a17323b6
Move `isDict` unit-tests from util_spec.js to primitives_spec.js
...
This patch moves the unit-test to the correct file, since the `isDict` function was moved PR 6683.
9 years ago
Jonas Jenwald
4523ae0b91
Add a couple of `CipherTransformFactory` unit-tests to check that blank passwords are correctly rejected
9 years ago
Tim van der Meij
a093d755b7
Merge pull request #7207 from timvandermeij/hand-tool-class
...
Convert the hand tool to a class
9 years ago
Tim van der Meij
b0aca31de8
Convert the hand tool to a class
9 years ago
Jonas Jenwald
7f90f5bfed
Merge pull request #7206 from Snuffleupagus/viewer-expose-non-classes-on-PDFViewerApplication
...
Expose a few non-classes on `PDFViewerApplication`
9 years ago
Jonas Jenwald
9dfda2b908
Expose a few non-classes on `PDFViewerApplication`
...
With the recent PR 7172, which made the viewer modular, there's now a couple of modules that are no longer easily accessible (e.g. through the console).
This can make testing/debugging more difficult, and means that e.g. https://github.com/mozilla/pdf.js/wiki/Debugging-PDF.js#enabling no longer works in the generic viewer.
For now, as a simple solution, this patch just exposes those non-classes on `PDFViewerApplication` to ensure that they are available, and to avoid polluting the `window` scope.
9 years ago
Tim van der Meij
452c031af5
Merge pull request #7116 from Snuffleupagus/refactor-LinkAnnotation-tests
...
Refactor `LinkAnnotation` slightly, improve handling of the `GoToR` action, and add unit-tests
9 years ago
Tim van der Meij
ff65c8021f
Merge pull request #7190 from Snuffleupagus/sidebarviewchanged-event
...
Dispatch a `sidebarviewchanged` event in `PDFSidebar` when the view changes
9 years ago
Ankit Aggarwal
6ceda3f290
web/viewer.js: Persist the state of sidebar
...
Persist the state of content sidebar while browsing away from viewer and
initializing the same on returning back to the viewer. The state is saved
in persistent store preferences and used upon viewer initialization.
Fixes #6935
9 years ago
Jonas Jenwald
5657d082c7
Dispatch a `sidebarviewchanged` event in `PDFSidebar` when the view changes
...
We cannot piggy-back on the `updateviewarea` event in order to update the stored sidebar state, since there're a number of cases where opening/switching the sidebar view won't fire a `updateviewarea` event.
Note that `updateviewarea` only fires when the position changes in the *viewer*, which means that it won't fire if e.g. the viewer is narrow, such that the sidebar overlays the document transparently; or when switching views, without the document position also changing.
This patch also moves the handling of `forceOpen` parameter in `PDFSidebar_switchView`, to prevent triggering back-to-back rendering and dispatching of events.
9 years ago
Jonas Jenwald
171f908b89
Add a couple of `LinkAnnotation` unit-tests
...
We currently don't have *any* unit-tests for `LinkAnnotation`s, so it seemed a good idea to add a few. These tests are taken from various actual PDF files.
9 years ago
Jonas Jenwald
f3f825cc71
Various improvements for `GoToR` actions
...
- Add support for the 'NewWindow' property.
- Ensure that destinations are applied to the *remote* document, instead of the current one.
- Handle the `F` entry being a standard string, instead of a dictionary.
9 years ago
Jonas Jenwald
b63ef7a8b6
Refactor `LinkAnnotation` slightly to add `data.url`/`data.dest` at the end
...
This patch also makes sure that all URLs are converted to the correct encoding.
9 years ago
Tim van der Meij
4a601ffc28
Merge pull request #7197 from prakashpalanisamy/remove-combineurl-test
...
Remove `combineUrl` and replace it with `new URL`. Issue #7183 , for reference.
9 years ago
Prakash Palanisamy
a25c29d98d
Remove `combineUrl` and replace it with `new URL`.
9 years ago
Jonas Jenwald
5c17df9f07
Merge pull request #7201 from Snuffleupagus/issue-7200
...
Ensure that the `params` parameter of the `PredictorStream` is a dictionary (issue 7200)
9 years ago
Jonas Jenwald
079b563e2d
Ensure that the `params` parameter of the `PredictorStream` is a dictionary (issue 7200)
...
Fixes 7200.
9 years ago
Yury Delendik
e9dbb233aa
Merge pull request #7191 from Snuffleupagus/export-DefaultAnnotationLayerFactory
...
Export the `DefaultAnnotationLayerFactory` to prevent the viewer components from breaking (PR 7172 followup)
9 years ago
Jonas Jenwald
c98f25145f
Export the `DefaultAnnotationLayerFactory` to prevent the viewer components from breaking (PR 7172 followup)
9 years ago
Yury Delendik
6282ec24d1
Merge pull request #7172 from yurydelendik/umd-web
...
Introduces UMD headers to the web/ folder.
9 years ago
Yury Delendik
50fe8e7c75
Removes PDFView global and pagerender event support.
9 years ago
Yury Delendik
4165cedc9f
Replace pdfjsLib with module that represents pdf.js.
9 years ago
Yury Delendik
006e8fb59d
Introduces UMD headers to the web/ folder.
9 years ago
Yury Delendik
fa2f80d0fd
Merge pull request #7189 from yurydelendik/webpack-browserify-love
...
Removing "entry-loader" dependency from webpack.
9 years ago
Yury Delendik
ae415f9e80
Removing "entry-loader" dependency from webpack.
9 years ago
Yury Delendik
b834b6899c
Merge pull request #7185 from iloire/issue-7177-support-almondjs
...
Support almond.js #7177
9 years ago
Jonas Jenwald
127e6d7343
Merge pull request #7184 from yurydelendik/pad-mesh
...
[Bug 1260585] Stops bleeding of pattern edges for mesh.
9 years ago
Ivan Loire
1dfc49152a
Support almond.js #7177
9 years ago
Yury Delendik
398e6acbc5
Stops bleeding of pattern edges for mesh.
9 years ago
Jonas Jenwald
be6754a1a0
Merge pull request #7176 from yurydelendik/smask-resume
...
Allow SMask be resumed after restore() and better transform after SMask
9 years ago
Yury Delendik
d76db416f4
Adds more SMask tests.
9 years ago
Yury Delendik
63f62a0e53
Finishing SMask at the end of operators list.
9 years ago
Yury Delendik
1485c1d1da
Suspending/resuming SMask operation during setGState/restore.
9 years ago
Yury Delendik
b2828858ed
Merge pull request #7178 from yurydelendik/rm-describe-test-hack
...
Removes hijack describe() hack from unit tests.
9 years ago
Yury Delendik
879340d741
Removes hijack describe() hack from unit tests.
9 years ago
Yury Delendik
44c63bca28
Merge pull request #7175 from Snuffleupagus/issue-6905-font_spec
...
Use `beforeAll`/`afterAll` in font_spec.js (issue 6905)
9 years ago
Yury Delendik
070f2d32ad
Merge pull request #7171 from Snuffleupagus/remove-new-Name/Cmd
...
Remove the remaining usages of `new {Name,Cmd}` in favor of `{Name,Cmd}.get`
9 years ago