Commit Graph

  • bb193dc501 For consistency with other viewer state, remove and deprecate setting Scroll/Spread modes in the BaseViewer constructor Jonas Jenwald 2018-06-29 15:48:45 +02:00
  • 8b85ae4181 Re-factor updating of Scroll/Spread modes, and place all the code in BaseViewer with overrides (as necessary) in the extending classes Jonas Jenwald 2018-06-29 15:28:38 +02:00
  • a7ac27e385 Replace setScrollMode/setSpreadMode methods with getters/setters Jonas Jenwald 2018-06-29 15:07:42 +02:00
  • 9515f579c6 Change the scrollMode/spreadMode to "private" properties on BaseViewer instances Jonas Jenwald 2018-06-29 14:14:11 +02:00
  • a9a93bd923 Allow the scrollModeOnLoad/spreadModeOnLoad Preferences to override ViewHistory settings Jonas Jenwald 2018-06-29 13:16:00 +02:00
  • baf9c98bc7 Add scrollModeOnLoad/spreadModeOnLoad default values to AppOptions Jonas Jenwald 2018-06-29 13:07:37 +02:00
  • e522b2d87e Remove the unused PDFViewerApplication.documentFingerprint property Jonas Jenwald 2018-06-29 13:02:23 +02:00
  • 99f8f2c275
    Merge pull request #9853 from Snuffleupagus/re-render-after-cancel Tim van der Meij 2018-06-29 23:25:43 +02:00
  • abda2b289e
    Merge pull request #9852 from RonLek/master Tim van der Meij 2018-06-29 23:12:03 +02:00
  • efb8f54fa1 Error Handling for Downloaded Files RonLek 2018-06-29 21:52:10 +05:30
  • 6fa2c779b5
    Merge pull request #9838 from Snuffleupagus/invalid-path-OPS Tim van der Meij 2018-06-28 23:15:25 +02:00
  • bf0aca86d7 Fix re-rendering, using the same canvas, when rendering was previously cancelled (PR 8519 follow-up) Jonas Jenwald 2018-06-28 22:38:09 +02:00
  • 5e40f04153
    Merge pull request #9849 from Snuffleupagus/rm-cloneObj Tim van der Meij 2018-06-27 23:00:27 +02:00
  • 3c622ef048 Replace the cloneObj helper function, in the viewer, with native Object.assign (PR 9795 follow-up) Jonas Jenwald 2018-06-27 20:39:39 +02:00
  • 40d577d7dd
    Merge pull request #9841 from Snuffleupagus/initial-position-misc-cleanup Tim van der Meij 2018-06-26 23:31:45 +02:00
  • 14b69a4c1c
    Merge pull request #9729 from Snuffleupagus/gulp-image_decoders Tim van der Meij 2018-06-26 23:27:32 +02:00
  • 95a4fa25b9 Don't wait arbitrary long for all pages to be resolved before attempting to re-apply the initial position on load (PR 6318 follow-up) Jonas Jenwald 2018-06-26 14:08:04 +02:00
  • 3691f9cc78 Simplify the handling of the defaultZoomValue preference in PDFViewerApplication.load Jonas Jenwald 2018-06-26 14:08:00 +02:00
  • 5bbbbf152e Stop storing/using the 'exists' property of ViewHistory database entries Jonas Jenwald 2018-06-26 14:07:56 +02:00
  • 253aae15fc Ensure that all entries above the current cacheSize is removed when initializing a ViewHistory instance Jonas Jenwald 2018-06-26 14:07:52 +02:00
  • 66ffdc4c5b
    Merge pull request #9839 from Snuffleupagus/page-stats-tests Tim van der Meij 2018-06-25 23:08:58 +02:00
  • 74e9999044 Add unit-tests for PDFPageProxy.stats (PR 9245 follow-up) Jonas Jenwald 2018-06-25 13:19:29 +02:00
  • 7f21e38787 Error, rather than warn, once a number of invalid path operators are encountered in EvaluatorPreprocessor.read (bug 1443140) Jonas Jenwald 2018-06-24 09:53:32 +02:00
  • 2907827d31
    Replace NotImplementedException with unreachable Tim van der Meij 2018-06-23 21:20:53 +02:00
  • e8b5088370
    Merge pull request #9832 from Snuffleupagus/scrollMode-fixes Tim van der Meij 2018-06-23 21:09:55 +02:00
  • a6830fd414
    Merge pull request #9835 from Snuffleupagus/api-loadingParams-cleanup Tim van der Meij 2018-06-23 16:46:31 +02:00
  • c8384061cf Ensure that the locale viewer option is never defined in the (various) extension builds (PR 9493 follow-up) Jonas Jenwald 2018-06-23 13:01:43 +02:00
  • 275834ae66 Clean-up, and add JSDocs to, the PDFDocumentProxy.loadingParams method (PR 9830 follow-up) Jonas Jenwald 2018-06-23 12:33:36 +02:00
  • bfbe2b411c Simplify the _setScale call when changing Scroll modes Jonas Jenwald 2018-06-23 10:43:07 +02:00
  • d3cb5e7117 Don't attempt to modify the DOM and/or trigger rendering when changing Scroll/Spread modes without a PDF document being loaded Jonas Jenwald 2018-06-23 10:30:22 +02:00
  • 05f682cd4b [Regression] Ensure that pre-rendering of the next/previous page works correctly in Presentation Mode, when horizontal scrolling was enabled Jonas Jenwald 2018-06-21 21:45:03 +02:00
  • 6a086fa0b9 Refactor setScrollMode/setSpreadMode, in the viewer classes, such that they are no-ops in PDFSinglePageViewer instances Jonas Jenwald 2018-06-21 20:54:57 +02:00
  • 8bd1244298 Move _updateScrollModeClasses from BaseViewer to PDFViewer Jonas Jenwald 2018-06-21 20:30:58 +02:00
  • da52dff04b Add validation of the argument in the BaseViewer.{setScrollMode, setSpreadMode} methods Jonas Jenwald 2018-06-21 19:53:13 +02:00
  • 9b0ed6f821 Remove all pages from the DOM at once, rather than using a loop, in PDFViewer._regroupSpreads Jonas Jenwald 2018-06-21 18:15:04 +02:00
  • 36111a1f40 [Regression] Remove instances of Element.classList.toggle() with *two* parameters, since browser support is limited Jonas Jenwald 2018-06-21 17:55:59 +02:00
  • 34594a5b02
    Merge pull request #9830 from EugeneSqr/9824 Tim van der Meij 2018-06-23 02:21:06 +02:00
  • 98ea39f9d0
    Merge pull request #9827 from Snuffleupagus/misc-corrupt-pdf-fixes Tim van der Meij 2018-06-21 22:35:00 +02:00
  • 331ac8ae74 removed safari compatibility check eugenesqr 2018-06-21 09:12:30 +03:00
  • a278c5a8dc
    Merge pull request #9795 from timvandermeij/object-assign Brendan Dahl 2018-06-20 10:50:40 -07:00
  • 56e3648b65 Add basic validation of the 'trailer' dictionary candidates in XRef.indexObjects (issue 9418) Jonas Jenwald 2018-06-19 11:31:31 +02:00
  • 346810e02a Add basic validation of the 'Root' dictionary in XRef.parse and try to recover when possible Jonas Jenwald 2018-06-19 11:04:30 +02:00
  • e84813e7cc Prevent hard errors if fetching the Encrypt dictionary fails in XRef.parse Jonas Jenwald 2018-06-19 10:16:23 +02:00
  • 30ad62a86a Use the correct startPos when repeating the search for 'endobj' operators in XRef.indexObjects (PR 9288 follow-up) Jonas Jenwald 2018-06-19 10:00:14 +02:00
  • 6bbcafcd26 Let Lexer.getNumber treat a single decimal point as zero (issue 9252) Jonas Jenwald 2018-06-19 09:37:56 +02:00
  • df4799a12a Ensure that line-breaks are *only* skipped after operators in Lexer.getNumber (PR 8359 follow-up) Jonas Jenwald 2018-06-19 09:12:24 +02:00
  • 3b07147d98
    Merge pull request #9821 from Snuffleupagus/onOpenWithURL-originalUrl Tim van der Meij 2018-06-17 20:27:16 +02:00
  • 3e4a159a45 Set the correct document title when opening a new file in the GENERIC default viewer Jonas Jenwald 2018-06-17 13:44:35 +02:00
  • 84920f39b2 Change the casing of the originalURL parameter, to originalUrl, in the onOpenWithURL method Jonas Jenwald 2018-06-17 13:25:22 +02:00
  • 5984c24415 Add a basic JpegImage example using the standalone image decoders Jonas Jenwald 2018-05-16 13:49:33 +02:00
  • 303537bcb1 Add a gulp image_decoders command to allow packaging/distributing the image decoders (i.e. jpg.js, jpx.js, jbig2.js) separately from the main PDF.js library Jonas Jenwald 2018-05-16 13:49:26 +02:00
  • bfc88ead66 Expose a Jbig2Image.parse method, by re-instating the parseJbig2 function Jonas Jenwald 2018-05-16 13:49:12 +02:00
  • 682672db8e Change the signature of the JpegImage constructor, to allow passing in various options directly Jonas Jenwald 2018-05-16 13:49:01 +02:00
  • 620da6f4df
    Merge pull request #9802 from Snuffleupagus/ColorSpace-PDFImage-Uint8ClampedArray Tim van der Meij 2018-06-16 17:55:10 +02:00
  • 280f20bf3c
    Merge pull request #9809 from Snuffleupagus/getPathGenerator-ignoreErrors Tim van der Meij 2018-06-16 16:37:52 +02:00
  • 5dacc8155c
    Merge pull request #9819 from Snuffleupagus/viewerContainer-offset-small-window Tim van der Meij 2018-06-16 00:19:41 +02:00
  • 7892122201
    Merge pull request #9595 from Rob--W/crx-ftp-file Brendan Dahl 2018-06-15 14:48:19 -07:00
  • 5198b6d0dc Fix regression affecting the horizontal viewerContainer offset for small window widths (PR 9816 follow-up) Jonas Jenwald 2018-06-15 20:07:51 +02:00
  • 790e21242a
    Merge pull request #9816 from Snuffleupagus/presentationMode-page-offset-regression Tim van der Meij 2018-06-14 23:22:57 +02:00
  • 73843865b8
    Merge pull request #9815 from Snuffleupagus/rm-disableFullscreen-IE-embedded Tim van der Meij 2018-06-14 23:17:57 +02:00
  • 39fc1c72fc Fix regression causing the pages to be offset horizontally in Presentation Mode (PR 8993 follow-up) Jonas Jenwald 2018-06-14 16:09:22 +02:00
  • 349b7d5e9c Remove the disableFullscreen hack for embedded IE 11 (issue 9585) Jonas Jenwald 2018-06-14 11:51:25 +02:00
  • b590519ea2
    Merge pull request #9801 from yungRoz/replace-deprecated-buffer-constructor Tim van der Meij 2018-06-13 23:03:51 +02:00
  • 0958006713 Send UnsupportedFeature notification when errors are ignored in FontFaceObject.getPathGenerator Jonas Jenwald 2018-06-13 11:02:10 +02:00
  • bf0db0fb72 Pass the ignoreErrors API option to the FontFaceObject constructor, and utilize it in getPathGenerator to ignore missing glyphs Jonas Jenwald 2018-06-13 11:02:06 +02:00
  • fe288bb872 Refactor the FontFaceObject.getPathGenerator method Jonas Jenwald 2018-06-13 11:02:02 +02:00
  • 778981ec89 Catch, and propagate, errors in the requestAnimationFrame branch of InternalRenderTask._scheduleNext Jonas Jenwald 2018-06-13 11:01:58 +02:00
  • d4ff541b78 Enforce the use, in non-production/test-only mode, of Uint8ClampedArray in all relevant methods in ColorSpace and PDFImage Jonas Jenwald 2018-06-11 17:25:54 +02:00
  • 4b69bb7fe9 Add a TESTING build option, to enable using non-production/test-only code-paths Jonas Jenwald 2018-06-11 17:25:50 +02:00
  • f01e54eae1 Improve the warning messages printed by `PartialEvaluator.{getOperatorList, getTextContent} when errors are being ignored Jonas Jenwald 2018-06-11 17:25:46 +02:00
  • 731f2e6dfc Remove manual clamping/rounding from ColorSpace and PDFImage, by having their methods use Uint8ClampedArrays Jonas Jenwald 2018-06-11 17:25:40 +02:00
  • 55199aa281 Remove the unused bpc parameter from, and update the signature of, the resizeRgbImage function in src/core/colorspace.js Jonas Jenwald 2018-06-11 17:25:36 +02:00
  • d1637056b3 Use shorthand method signatures in src/core/colorspace.js Jonas Jenwald 2018-06-11 17:25:33 +02:00
  • 32367c5968 Make the getBytes/peekBytes methods of Stream/DecodeStream/ChunkedStream able to return Uint8ClampedArrays Jonas Jenwald 2018-06-11 17:25:30 +02:00
  • 09359efca0 Replace deprecated constructor with youngroz 2018-06-11 20:41:56 -07:00
  • 2030d1718f
    Merge pull request #9796 from Snuffleupagus/disable-webViewerFileInputChange-PresentationMode Tim van der Meij 2018-06-12 00:14:42 +02:00
  • 3ac638fad3
    Merge pull request #9689 from RafaPolit/master Brendan Dahl 2018-06-11 15:40:30 -06:00
  • ba623c77d2 Disable (drag-and-drop) file opening if Presentation Mode is active (PR 9794 follow-up) Jonas Jenwald 2018-06-11 10:48:36 +02:00
  • af8e88d00b
    Replace Util.extendObj by Object.assign Tim van der Meij 2018-06-10 19:59:03 +02:00
  • 0e0fa489dd
    Merge pull request #9793 from timvandermeij/refactoring Tim van der Meij 2018-06-10 16:14:17 +02:00
  • 98cabb388a
    Merge pull request #9794 from timvandermeij/drag-and-drop Tim van der Meij 2018-06-10 16:04:54 +02:00
  • 8e95506116
    Implement drag-and-drop support in the viewer for local files Dimitris Kountanis 2018-06-10 15:39:06 +02:00
  • 903bad1906
    Remove Util.appendToArray and Util.prependToArray Tim van der Meij 2018-06-09 20:51:15 +02:00
  • db874b6680
    Merge pull request #9660 from brendandahl/headless Tim van der Meij 2018-06-09 15:14:42 +02:00
  • 3b63d57d15
    Merge pull request #9792 from timvandermeij/translations Tim van der Meij 2018-06-09 14:40:02 +02:00
  • 32a44a054f
    Import translations Tim van der Meij 2018-06-09 14:32:45 +02:00
  • 86422e67cc
    Merge pull request #9781 from Snuffleupagus/api-misc-cleanup Tim van der Meij 2018-06-09 14:15:02 +02:00
  • 07d610615c Move, and modernize, Util.loadScript from src/shared/util.js to src/display/dom_utils.js Jonas Jenwald 2018-06-07 13:52:40 +02:00
  • 547f119be6 Simplify the error handling slightly in the src/display/node_stream.js file Jonas Jenwald 2018-06-05 20:30:26 +02:00
  • 2fdaa3d54c Update the postMessageTransfers comment in createDocumentHandler in the src/core/worker.js file Jonas Jenwald 2018-06-05 20:30:23 +02:00
  • 871bf5c68b Remove the, now obsolete, handling of the CMapReaderFactory parameter in getDocument Jonas Jenwald 2018-06-05 20:30:14 +02:00
  • c8e2163bbc Remove incorrect/unnecessary validation of the verbosity parameter in the PDFWorker constructor (PR 9480 follow-up) Jonas Jenwald 2018-06-05 20:30:11 +02:00
  • b263b702e8 Rename PDFPageProxy.pageInfo to PDFPageProxy._pageInfo to indicate that the property should be considered "private" Jonas Jenwald 2018-06-05 20:30:06 +02:00
  • 4f4b50e01e Rename PDFDocumentProxy.pdfInfo to PDFDocumentProxy._pdfInfo to indicate that the property should be considered "private" Jonas Jenwald 2018-06-05 20:30:00 +02:00
  • e89afa5899 Stop sending the PDFManagerReady message from the Worker, since it's unused in the API Jonas Jenwald 2018-06-05 20:29:56 +02:00
  • eef53347fe Ensure that the correct data is sent, with the test message, from the worker if typed arrays aren't properly supported Jonas Jenwald 2018-06-05 20:29:52 +02:00
  • dc6e1b4176 Use Uint8ClampedArray for the image data returned by JpegDecode, in src/display/api.js Jonas Jenwald 2018-06-05 20:29:47 +02:00
  • 47a9d38280 Add more validation in PDFWorker.fromPort Jonas Jenwald 2018-06-05 20:29:42 +02:00
  • 3c5c8d2a0b Remove the typed array check when calling LoopbackPort in PDFWorker._setupFakeWorker Jonas Jenwald 2018-06-05 20:29:37 +02:00
  • ea29ec83e1 Fix webpack exclude path on windows. v1.10.100 Brendan Dahl 2018-05-29 17:38:03 -07:00