Copy link to clipboard
Copied
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:
I found the problem - so this thread is resolved -- thank u
Copy link to clipboard
Copied
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.)
Copy link to clipboard
Copied
Sure - the variable finalPdf is 100% a valid pdf file and I have attached the pdf file: here is the code:
Copy link to clipboard
Copied
I found the problem - so this thread is resolved -- thank u
Copy link to clipboard
Copied
Hello, It appears you are able to solve your problem, can you please share your fix?
Copy link to clipboard
Copied
I actually used something else - never got this to work unfortunately
Copy link to clipboard
Copied
Can you please share what did you use?
Copy link to clipboard
Copied
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