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:
Could you share the code you are using, and possibly the PDF as well? (Note, Adobe is about to go on holiday break so we may be slow to respond.)
Sure - the variable finalPdf is 100% a valid pdf file and I have attached the pdf file: here is the code:
I found the problem - so this thread is resolved -- thank u
Hello, It appears you are able to solve your problem, can you please share your fix?
I actually used something else - never got this to work unfortunately
Can you please share what did you use?
We are using jspdf library to build our pdfs, it has a compression switch where it will compress the pdfs it generates - works just as well as the adobe compression demo for our files so mission accomplished