I’m working with an API that returns a JSON object from the the function below:
await remoteFetchAsync(url, getLabelOptions)
.then((resp) => resp.json())
.then(function(data) {
pdfstring = data.label;
})
.then()
.catch(function(e) {
output.markdown("ERROR!");
output.markdown(e.message);
});
Considering the pdfstring is my base64 encoded pdf, how can I convert to pdf and save as an attachment?
