What are you using to call your API and get pdf?
Utility - HTTP or Web API services?
Here is slightly modified action for Utility - HTTP that returns binary:
https://gist.githubusercontent.com/aikudinov/1f06b8e794064f08d84e4628e8ce8885/raw/f5d180e6cff4f73a0021e194e94fecb97707c177/gistfile1.txtI'm not sure if Web API can receive binary properly. Last time we needed that Web API was not released yet and we used that action above + I read later here somewhere that it wont work with Web API, but things might have changed. I would need find something to test on to check that.
p.s. Similar
discussionp.p.s. You don't have to actually get stream to binary data item and then write it - just something I had at hand already working.
You can just save it directly to a file in VBO code stage, but sometimes binary can be useful too - like you can extract files from zip stream without saving anything to a disc etc.
------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------