Do you want to display the PDF in the browser window?
If so, you have to use Suitelet, not restlet.
s
shubs
11/29/2017, 10:23 PM
That’s what we learned that we have to send the content, and have it generate PDF in Salesforce.
i
igorp
11/29/2017, 10:28 PM
In that case, the restlet has to send the base64 content of the file back to SFDC.
So, once you render the pdf, get it's value and use response.write to send it back.