dynamsoft.webtwain.config.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. //
  2. // Dynamsoft JavaScript Library for Basic Initiation of Dynamic Web TWAIN
  3. // More info on DWT: http://www.dynamsoft.com/Products/WebTWAIN_Overview.aspx
  4. //
  5. // Copyright 2021, Dynamsoft Corporation
  6. // Author: Dynamsoft Team
  7. // Version: 17.1.1
  8. //
  9. /// <reference path="dynamsoft.webtwain.initiate.js" />
  10. var Dynamsoft = Dynamsoft || { DWT: {} };
  11. ///
  12. Dynamsoft.DWT.AutoLoad = true;
  13. ///
  14. Dynamsoft.DWT.Containers = [{ContainerId:'dwtcontrolContainer', Width:270, Height:350}];
  15. /////////////////////////////////////////////////////////////////////////////////////
  16. // WARNING: The productKey in this file is protected by copyright law //
  17. // and international treaty provisions. Unauthorized reproduction or //
  18. // distribution of this productKey, or any portion of it, may result in severe //
  19. // criminal and civil penalties, and will be prosecuted to the maximum //
  20. // extent possible under the law. Further, you may not reverse engineer, //
  21. // decompile, disassemble, or modify the productKey . //
  22. /////////////////////////////////////////////////////////////////////////////////////
  23. /// If you need to use multiple keys on the same server, you can combine keys and write like this
  24. /// Dynamsoft.DWT.ProductKey = 'key1;key2;key3';
  25. Dynamsoft.DWT.ProductKey = 't00996QAAALIA3OwPMSUho+zgGvwRAQ+EuxN/nu9mdbbtEnSoyLHSaYyaaYpCJ6yhG9uGC0OVTSPC1DQciFzynPrHMjvwmKSgfiu6MLk13WoSvHM1zUx1o8nMlagmMooW8AFI0jC2';
  26. ///
  27. // Dynamsoft.DWT.ResourcesPath = 'Resources';
  28. ///
  29. Dynamsoft.DWT.IfAddMD5InUploadHeader = false;
  30. ///
  31. Dynamsoft.DWT.IfConfineMaskWithinTheViewer = false;
  32. ///
  33. /*Dynamsoft.DWT.CustomizableDisplayInfo = {
  34. errorMessages: {
  35. // launch
  36. ERR_MODULE_NOT_INSTALLED: 'Error: The Dynamic Web TWAIN module is not installed.',
  37. ERR_BROWSER_NOT_SUPPORT: 'Error: This browser is currently not supported.',
  38. ERR_CreateID_MustNotInContainers: 'Error: Duplicate ID detected for creating Dynamic Web TWAIN objects, please check and modify.',
  39. ERR_CreateID_NotContainer: 'Error: The ID of the DIV for creating the new DWT object is invalid.',
  40. ERR_DWT_NOT_DOWNLOADED: 'Error: Failed to download the Dynamic Web TWAIN module.',
  41. // image view
  42. limitReachedForZoomIn: "Error: You have reached the limit for zooming in",
  43. limitReachedForZoomOut: "Error: You have reached the limit for zooming out",
  44. // image editor
  45. insufficientParas: 'Error: Not enough parameters.',
  46. invalidAngle: 'Error: The angle you entered is invalid.',
  47. invalidHeightOrWidth: "Error: The height or width you entered is invalid.",
  48. imageNotChanged: "Error: You have not changed the current image."
  49. },
  50. // launch
  51. generalMessages: {
  52. checkingDWTVersion: 'Checking WebTwain version ...',
  53. updatingDService: 'Dynamsoft Service is updating ...',
  54. downloadingDWTModule: 'Downloading the Dynamic Web TWAIN module.',
  55. refreshNeeded: 'Please REFRESH your browser.',
  56. downloadNeeded: 'Please download and install the Dynamic Web TWAIN.',
  57. DWTmoduleLoaded: 'The Dynamic Web TWAIN module is loaded.'
  58. },
  59. customProgressText: {
  60. // html5 event
  61. upload: 'uploading...',
  62. download: 'Downloading...',
  63. load: 'Loading...',
  64. decode: 'Decoding...',
  65. decodeTIFF: 'Decoding tiff...',
  66. decodePDF: 'Decoding pdf...',
  67. encode: 'Encoding...',
  68. encodeTIFF: 'Encoding tiff...',
  69. encodePDF: 'Encoding pdf...',
  70. // image control
  71. canvasLoading: 'Loading ...'
  72. },
  73. // image editor
  74. buttons: {
  75. titles: {
  76. 'previous': 'Previous Image',
  77. 'next': 'Next Image',
  78. 'print': 'Print Image',
  79. 'scan': 'Acquire new Image(s)',
  80. 'load': 'Load local Image(s)',
  81. 'rotateleft': 'Rotate Left',
  82. 'rotate': 'Rotate',
  83. 'rotateright': 'Rotate Right',
  84. 'deskew': 'Deskew',
  85. 'crop': 'Crop Selected Area',
  86. 'cut': 'Cut Selected Area',
  87. 'changeimagesize': 'Change Image Size',
  88. 'flip': 'Flip Image',
  89. 'mirror': 'Mirror Image',
  90. 'zoomin': 'Zoom In',
  91. 'originalsize': 'Show Original Size',
  92. 'zoomout': 'Zoom Out',
  93. 'stretch': 'Stretch Mode',
  94. 'fit': 'Fit Window',
  95. 'fitw': 'Fit Horizontally',
  96. 'fith': 'Fit Vertically',
  97. 'hand': 'Hand Mode',
  98. 'rectselect': 'Select Mode',
  99. 'zoom': 'Click to Zoom In',
  100. 'restore': 'Restore Orginal Image',
  101. 'save': 'Save Changes',
  102. 'close': 'Close the Editor',
  103. 'removeall': 'Remove All Images',
  104. 'removeselected': 'Remove All Selected Images'
  105. }
  106. },
  107. dialogText: {
  108. dlgRotateAnyAngle: ['Angle :', 'Interpolation:', 'Keep size', ' OK ', 'Cancel'],
  109. dlgChangeImageSize: ['New Height :', 'New Width :', 'Interpolation method:', ' OK ', 'Cancel'],
  110. saveChangedImage: ['You have changed the image, do you want to keep the change(s)?', ' Yes ', ' No '],
  111. selectSource: ['Select Source:', 'Select', 'Cancel', 'There is no source available!']
  112. }
  113. };*/
  114. /// All callbacks are defined in the dynamsoft.webtwain.install.js file, you can customize them.
  115. // Dynamsoft.DWT.RegisterEvent('OnWebTwainReady', function(){
  116. // // webtwain has been inited
  117. // });