@@ -6054,7 +6054,7 @@ export class PdfApi {
6054
6054
* @param marginTop Page margin top
6055
6055
* @param storage The document storage.
6056
6056
*/
6057
- public async getMhtInStorageToPdf (srcPath: string, height: number, width: number, marginLeft: number, marginBottom: number, marginRight: number, marginTop: number, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
6057
+ public async getMhtInStorageToPdf (srcPath: string, height? : number, width? : number, marginLeft? : number, marginBottom? : number, marginRight? : number, marginTop? : number, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
6058
6058
const localVarPath = this.basePath + '/pdf/create/mht';
6059
6059
let localVarQueryParameters: any = {};
6060
6060
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
@@ -6065,36 +6065,6 @@ export class PdfApi {
6065
6065
throw new Error('Required parameter srcPath was null or undefined when calling getMhtInStorageToPdf.');
6066
6066
}
6067
6067
6068
- // verify required parameter 'height' is not null or undefined
6069
- if (height === null || height === undefined) {
6070
- throw new Error('Required parameter height was null or undefined when calling getMhtInStorageToPdf.');
6071
- }
6072
-
6073
- // verify required parameter 'width' is not null or undefined
6074
- if (width === null || width === undefined) {
6075
- throw new Error('Required parameter width was null or undefined when calling getMhtInStorageToPdf.');
6076
- }
6077
-
6078
- // verify required parameter 'marginLeft' is not null or undefined
6079
- if (marginLeft === null || marginLeft === undefined) {
6080
- throw new Error('Required parameter marginLeft was null or undefined when calling getMhtInStorageToPdf.');
6081
- }
6082
-
6083
- // verify required parameter 'marginBottom' is not null or undefined
6084
- if (marginBottom === null || marginBottom === undefined) {
6085
- throw new Error('Required parameter marginBottom was null or undefined when calling getMhtInStorageToPdf.');
6086
- }
6087
-
6088
- // verify required parameter 'marginRight' is not null or undefined
6089
- if (marginRight === null || marginRight === undefined) {
6090
- throw new Error('Required parameter marginRight was null or undefined when calling getMhtInStorageToPdf.');
6091
- }
6092
-
6093
- // verify required parameter 'marginTop' is not null or undefined
6094
- if (marginTop === null || marginTop === undefined) {
6095
- throw new Error('Required parameter marginTop was null or undefined when calling getMhtInStorageToPdf.');
6096
- }
6097
-
6098
6068
if (srcPath !== undefined && null !== srcPath) {
6099
6069
localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
6100
6070
}
@@ -19451,7 +19421,7 @@ export class PdfApi {
19451
19421
* @param dstFolder The destination document folder.
19452
19422
* @param storage The document storage.
19453
19423
*/
19454
- public async putMhtInStorageToPdf (name: string, srcPath: string, height: number, width: number, marginLeft: number, marginBottom: number, marginRight: number, marginTop: number, dstFolder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
19424
+ public async putMhtInStorageToPdf (name: string, srcPath: string, height? : number, width? : number, marginLeft? : number, marginBottom? : number, marginRight? : number, marginTop? : number, dstFolder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
19455
19425
const localVarPath = this.basePath + '/pdf/{name}/create/mht'
19456
19426
.replace('{' + 'name' + '}', encodeURIComponent(String(name)).replace('%2F', '/'));
19457
19427
let localVarQueryParameters: any = {};
@@ -19468,36 +19438,6 @@ export class PdfApi {
19468
19438
throw new Error('Required parameter srcPath was null or undefined when calling putMhtInStorageToPdf.');
19469
19439
}
19470
19440
19471
- // verify required parameter 'height' is not null or undefined
19472
- if (height === null || height === undefined) {
19473
- throw new Error('Required parameter height was null or undefined when calling putMhtInStorageToPdf.');
19474
- }
19475
-
19476
- // verify required parameter 'width' is not null or undefined
19477
- if (width === null || width === undefined) {
19478
- throw new Error('Required parameter width was null or undefined when calling putMhtInStorageToPdf.');
19479
- }
19480
-
19481
- // verify required parameter 'marginLeft' is not null or undefined
19482
- if (marginLeft === null || marginLeft === undefined) {
19483
- throw new Error('Required parameter marginLeft was null or undefined when calling putMhtInStorageToPdf.');
19484
- }
19485
-
19486
- // verify required parameter 'marginBottom' is not null or undefined
19487
- if (marginBottom === null || marginBottom === undefined) {
19488
- throw new Error('Required parameter marginBottom was null or undefined when calling putMhtInStorageToPdf.');
19489
- }
19490
-
19491
- // verify required parameter 'marginRight' is not null or undefined
19492
- if (marginRight === null || marginRight === undefined) {
19493
- throw new Error('Required parameter marginRight was null or undefined when calling putMhtInStorageToPdf.');
19494
- }
19495
-
19496
- // verify required parameter 'marginTop' is not null or undefined
19497
- if (marginTop === null || marginTop === undefined) {
19498
- throw new Error('Required parameter marginTop was null or undefined when calling putMhtInStorageToPdf.');
19499
- }
19500
-
19501
19441
if (srcPath !== undefined && null !== srcPath) {
19502
19442
localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
19503
19443
}
0 commit comments