@@ -6054,7 +6054,7 @@ export class PdfApi {
60546054 * @param marginTop Page margin top
60556055 * @param storage The document storage.
60566056 */
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; }> {
60586058 const localVarPath = this.basePath + '/pdf/create/mht';
60596059 let localVarQueryParameters: any = {};
60606060 let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
@@ -6065,36 +6065,6 @@ export class PdfApi {
60656065 throw new Error('Required parameter srcPath was null or undefined when calling getMhtInStorageToPdf.');
60666066 }
60676067
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-
60986068 if (srcPath !== undefined && null !== srcPath) {
60996069 localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
61006070 }
@@ -19451,7 +19421,7 @@ export class PdfApi {
1945119421 * @param dstFolder The destination document folder.
1945219422 * @param storage The document storage.
1945319423 */
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; }> {
1945519425 const localVarPath = this.basePath + '/pdf/{name}/create/mht'
1945619426 .replace('{' + 'name' + '}', encodeURIComponent(String(name)).replace('%2F', '/'));
1945719427 let localVarQueryParameters: any = {};
@@ -19468,36 +19438,6 @@ export class PdfApi {
1946819438 throw new Error('Required parameter srcPath was null or undefined when calling putMhtInStorageToPdf.');
1946919439 }
1947019440
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-
1950119441 if (srcPath !== undefined && null !== srcPath) {
1950219442 localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
1950319443 }
0 commit comments