tnx-shared 5.3.386 → 5.3.387

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10289,6 +10289,17 @@
10289
10289
  };
10290
10290
  return this.defaultPost(url, model);
10291
10291
  };
10292
+ DownloadLinkService.prototype.convertToPdfBase64 = function (fileName, fileInstanceId, fileVersionInstanceId) {
10293
+ var url = this.serviceUri + "/ConvertDocumentToPdfBase64";
10294
+ var model = {
10295
+ fileName: fileName,
10296
+ fileInstanceId: fileInstanceId,
10297
+ fileVersionInstanceId: fileVersionInstanceId,
10298
+ outputType: this.convertModelType.pdf,
10299
+ toBase64: true
10300
+ };
10301
+ return this.defaultPost(url, model);
10302
+ };
10292
10303
  /**
10293
10304
  * Lấy danh sách file trong một thư mục
10294
10305
  * @param serviceCode : mã dịch vụ
@@ -50106,12 +50117,12 @@
50106
50117
  };
50107
50118
  FileViewerComponent.prototype.print = function () {
50108
50119
  var _this = this;
50109
- this._downloadLinkService.convertToPdf(this.data.name, this.data.fileId, this.data.fileVersionId)
50120
+ this._downloadLinkService.convertToPdfBase64(this.data.name, this.data.fileId, this.data.fileVersionId)
50110
50121
  .then(function (rs) {
50111
- if (!rs.success || !rs.data || !rs.data.contentBase64) {
50122
+ if (!rs.success || !rs.data) {
50112
50123
  return;
50113
50124
  }
50114
- _this._fileExplorerService.print(rs.data.contentBase64);
50125
+ _this._fileExplorerService.print(rs.data);
50115
50126
  });
50116
50127
  };
50117
50128
  FileViewerComponent.prototype.download = function () {