How to send pdf as response to other URLS using re...
# suitescript
d
How to send pdf as response to other URLS using restlet
b
You have two general options for restlets
You can make sure your pdf is base 64 encoded and then return xml or json where the encoded pdf string is a string element somewhere in the json or xml
Or you can just pretend the pdf is plain text and return the pdf string (or encoded pdf string)
d
When I tried to print base64 decoded PDF string ..it says cannot load document
b
i personally would only expect encoded strings to be usable