Doc Gen API generating new PDF that will only open in Preview and Safari but not Chrome or Adobe
After the newly generated PDF is created from my DOCX template and JSON data, the file will throw and error if trying to open in Chrome that says:
"Error. Failed to load PDF document." as well as "Adobe Acrobat Reader could not open 'test.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)." if trying to open in Adobe Reader.
However, when opening in Safari or the native Mac Preview app, the file will open.
We are using the Document Generation API (https://documentcloud.adobe.com/document-services/index.html#post-documentGeneration) to pass the template file and JSON data. I have tried using our own DOCX file as well as the template DOCX that is given on the Playgound site. They generate with 201 status code.
Please help!
