Answered
PDF Compression using Rest API
I have been attempting to compress PDFs using the rest api POST call - my issue is that no matter how I format the InputFile0, form-data field - the subsequent GET api call is saying that my file is corrupted however I am 100% confident that I am passing a valid PDF file - I have been attempting to compare results using postman on the same file, which works, but setting this field programmatically there is something I am missing: I have tried all the formats in the FileReader object namely:
readAsBinaryString,
readAsDataURL,
readAsText,
readAsArrayBuffer
None of them resolve the error - how is anyone else programmaticaly setting InputFile0 such the the server does not complain about a corrupted file ?
