# Receving response and saving in pdf format but the pdf is showing cant able to open

**URL:** <https://community.postman.com/t/receving-response-and-saving-in-pdf-format-but-the-pdf-is-showing-cant-able-to-open/16744>\
**Category:** Help Hub\
**Tags:** response, pdf\
**Created:** [October 14, 2020, 8:33am UTC](https://community.postman.com/t/receving-response-and-saving-in-pdf-format-but-the-pdf-is-showing-cant-able-to-open/16744 "2020-10-14T08:33:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [October 14, 2020, 11:03am UTC](https://community.postman.com/t/receving-response-and-saving-in-pdf-format-but-the-pdf-is-showing-cant-able-to-open/16744/4 "2020-10-14T11:03:48Z")

</div>

I might be wrong but I don’t believe it’s going to do that, the download and save option would be just creating a file based on that text response. It doesn’t really done a PDF type conversion.

A similar question was asked before and the thread show a could of way to do this - my method was to use Newman as a library with the node “fs” module to capture that response body and save that as a PDF.

> [@Endpoint downloads PDF. How to do this via Collection Runner or Newman?](https://community.postman.com/t/endpoint-downloads-pdf-how-to-do-this-via-collection-runner-or-newman/13405/7):
>
> Hey @russellg, I know it’s basic but would this help if you’re running it with Newman as a library? const newman = require('newman'), fs = require('fs'); newman.run({ collection: '\<Collection File\>' }).on('request', (err, args) =\> { fs.writeFileSync(`./${args.item.name}.pdf`, args.response.stream, 'binary'); }) I was just using this Dummy request that returned a PDF and it seemed to work:

Might not be what you’re after but you would be able to do what you’re trying to do with the Postman app.

---

_[View the full topic](https://community.postman.com/t/receving-response-and-saving-in-pdf-format-but-the-pdf-is-showing-cant-able-to-open/16744)._
