tnx-shared 5.3.269 → 5.3.270
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.
- package/bundles/tnx-shared.umd.js +13 -0
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/esm2015/services/templateinstance.service.js +13 -1
- package/fesm2015/tnx-shared.js +12 -0
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/templateinstance.service.d.ts +1 -0
- package/services/templateinstance.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -10261,6 +10261,19 @@
|
|
|
10261
10261
|
}
|
|
10262
10262
|
});
|
|
10263
10263
|
};
|
|
10264
|
+
TemplateInstanceService.prototype.fillTemplateByCodeAndPreviewPdf = function (templateCode, data) {
|
|
10265
|
+
var _this = this;
|
|
10266
|
+
var url = this.serviceUri + "/fillWordByTemplateCode/" + templateCode + "?isPrint=true";
|
|
10267
|
+
return this._httpClient
|
|
10268
|
+
.post(url, data)
|
|
10269
|
+
.toPromise().then(function (res) {
|
|
10270
|
+
if (res.data) {
|
|
10271
|
+
var file = _this.b64toBlob(res.data, 'application/pdf');
|
|
10272
|
+
var fileURL = URL.createObjectURL(file);
|
|
10273
|
+
window.open(fileURL);
|
|
10274
|
+
}
|
|
10275
|
+
});
|
|
10276
|
+
};
|
|
10264
10277
|
/**
|
|
10265
10278
|
* Word
|
|
10266
10279
|
* @param templateCode
|