I'm attempting to print a Bas64 image via the Clover REST Pay Print methods. I'm invoking the image printing via a Clover Flex.
I have connected a Star Printer as a Receipt Printer, which takes 3 Inch Paper.
But always the print comes out to the size of 2 inches. This works fine with the attached printer in the Flex device but when invoked to the Star Printer, it leaves a 1-inch gap on the right side.
How to fix this?
curl --location --request POST 'https://sandbox.dev.clover.com/connect/v1/device/print/image' \ --header 'X-Clover-Device-Id: { {deviceid}}' \ --header 'X-POS-ID: { {clientId}}' \ --header 'Authorization: Bearer { {token}}' \ --header 'Content-Type: application/json' \ --data-raw '{ "printdeviceId": "{ {printerid}}", "image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEABQUFBQVFBcZGRcfIh4iHy4rJycrLkYyNjI2MkZqQk5CQk5Cal5yXVZdcl6phXZ2hanDpJukw+zT0+z///////8BFBQUFBUUFxkZFx8iHiIfLisnJysuRjI2MjYyRmpCTkJCTkJqXnJdVl1yXqmFdnaFqcOkm6TD7NPT7P/////////CABEIAlgCWAMBIgACEQEDEQH/xAAaAAEAAwEBAQAAAAAAAAAAAAAABAUGAwIB/9oACAEBAAAAAIoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+3/T59z3haWPnpSQy+6+me5gABJu/iNSvV918/M/5d77z7iU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