From e03a56bb78ca027ef883282d94cfa10bc26003c5 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Fri, 21 Aug 2026 22:39:27 +0100 Subject: [PATCH] Update SocketClient to include padding parameter in API requests - Modified the API request parameters in the `SocketClient` class to include a `padding` option set to `false` for both PDF and image type requests, enhancing control over response formatting. --- src/socket/socketclient.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/socket/socketclient.js b/src/socket/socketclient.js index 4b99cca..f8228e6 100644 --- a/src/socket/socketclient.js +++ b/src/socket/socketclient.js @@ -553,7 +553,7 @@ export class SocketClient { object: templateData.object, }, { - params: { type: "pdf" }, + params: { type: "pdf", padding: false }, responseType: "arraybuffer", headers: this.getApiHeaders(), }, @@ -578,7 +578,7 @@ export class SocketClient { width: templateData.width, }, { - params: { type }, + params: { type, padding: false }, responseType: "arraybuffer", headers: this.getApiHeaders(), },