Skip to content

How to save a pdf file using this tool?  #6

@sinewave440hz

Description

@sinewave440hz

Hi, I have a get request that returns a pdf, how do I get this to save to a file? I've got as far as:

let opts = {
    requestName: request.name || request.url,
    fileExtension: 'pdf',
    mode: 'writeFile', // Change this to any function of the fs library of node to use it.
    uniqueIdentifier: pm.iterationData.get("ID"),
    responseData: pm.response.stream
};

I'm not quite sure what to do now, this just hangs and writes an incomplete pdf file. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions