Save PDF response body as local file using Postman collection [**Write Response to File**] DOSEN'T work

Hi!
I need to save a PDF response as a local file and for that I used [Write Response to File] and it works fine for those two Dummy files (Dummy Request 1 and Dummy Request 2) comming with the collection. But for my request it creates a pdf file:


but the file is blank when you open it.

My response body is a invoice which looks like this:

And The opts for the server:
let dataToFile = {
requestName: request.name || request.url,
fileExtension: ‘pdf’,
mode: ‘writeFile’, // Change this to any function of the fs library of node to use it.
uniqueIdentifier: false,
responseData: pm.response.text()
};
pm.sendRequest({
url: ‘http://localhost:3000/write’,
method: ‘POST’,
header: ‘Content-Type:application/json’,
body: {
mode: ‘raw’,
raw: JSON.stringify(dataToFile)
}
}, function(err, res) {
console.log(res);
});

Just to mention if I change header: ‘Content-Type:application/json’, to ‘Content-Type:application/pdf’ it dosen’t works att all.

Thank you very much in advance!