Question4Replies2945Views Susher Member since 2018 10 posts Mphasis Posted: 2 years agoLast activity: 2 years 3 months ago Closed Solved How send pdf file as Part of REST Service ResponseI have a pdf file, need to send it as response in Rest Service. How to create response structure in pega ?***Edited by Moderator Marissa to update platform capability tags*** Data Integration ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 2 years agoSridharNagarhalli PEGA replied to SusherHi This will help you on how to integrate REST service into PEGA https://www.pegaxchange.com/2016/10/16/pega-7-connect-rest/. However, it all depends on "Content-Type" attribute in response headers which decides how the response needs to be rendered. Thanks Sridhar Posted: 2 years agoSusher Mphasis replied to SridharNagarhalli There is only following options available for content-type application/xml application/json text/plain text/html text/xml Which one to choose for pdf. Is there any pdn article for returning pdf in Rest Service. I need to send the generated letter to Angular UI.. Posted: 2 years agoSusher Mphasis replied to SridharNagarhalliHi Sridhar, I changed Content-Type to Application/PDF . Now popup is coming for PDF file but unable to set filename in the popup window. How to set the filename ? I used postman for sending request to Pega. Please see the screenshot attached. Accepted Solution Posted: 2 years agoSridharNagarhalli PEGA replied to SusherJust save the file as "abc.pdf". It should work.