tnx-shared 5.3.386 → 5.3.388

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.
@@ -10283,12 +10283,26 @@
10283
10283
  fileName: fileName,
10284
10284
  fileInstanceId: fileInstanceId,
10285
10285
  fileId: fileInstanceId,
10286
+ fileVersionId: fileVersionInstanceId,
10286
10287
  fileVersionInstanceId: fileVersionInstanceId,
10287
10288
  outputType: this.convertModelType.pdf,
10288
10289
  toBase64: true
10289
10290
  };
10290
10291
  return this.defaultPost(url, model);
10291
10292
  };
10293
+ DownloadLinkService.prototype.convertToPdfBase64 = function (fileName, fileInstanceId, fileVersionInstanceId) {
10294
+ var url = this.serviceUri + "/ConvertDocumentToPdfBase64";
10295
+ var model = {
10296
+ fileName: fileName,
10297
+ fileInstanceId: fileInstanceId,
10298
+ fileVersionInstanceId: fileVersionInstanceId,
10299
+ fileId: fileInstanceId,
10300
+ fileVersionId: fileVersionInstanceId,
10301
+ outputType: this.convertModelType.pdf,
10302
+ toBase64: true
10303
+ };
10304
+ return this.defaultPost(url, model);
10305
+ };
10292
10306
  /**
10293
10307
  * Lấy danh sách file trong một thư mục
10294
10308
  * @param serviceCode : mã dịch vụ
@@ -50106,12 +50120,12 @@
50106
50120
  };
50107
50121
  FileViewerComponent.prototype.print = function () {
50108
50122
  var _this = this;
50109
- this._downloadLinkService.convertToPdf(this.data.name, this.data.fileId, this.data.fileVersionId)
50123
+ this._downloadLinkService.convertToPdfBase64(this.data.name, this.data.fileId, this.data.fileVersionId)
50110
50124
  .then(function (rs) {
50111
- if (!rs.success || !rs.data || !rs.data.contentBase64) {
50125
+ if (!rs.success || !rs.data) {
50112
50126
  return;
50113
50127
  }
50114
- _this._fileExplorerService.print(rs.data.contentBase64);
50128
+ _this._fileExplorerService.print(rs.data);
50115
50129
  });
50116
50130
  };
50117
50131
  FileViewerComponent.prototype.download = function () {