# Download a paper (/docs/sdks/papers/download)



Download the original file you [uploaded](/docs/sdks/papers/upload).

<Tabs groupId="language" items="[&#x22;JavaScript&#x22;]">
  <Tab value="JavaScript">
    ```ts
    const file = await paperful.papers.download("00000000-0000-0000-0000-000000000000");
    ```
  </Tab>
</Tabs>

The file is returned as a `File`, with its name and type set.

## Save to disk [#save-to-disk]

<Tabs groupId="language" items="[&#x22;JavaScript&#x22;]">
  <Tab value="JavaScript">
    ```ts
    import { writeFile } from "node:fs/promises";

    const file = await paperful.papers.download("00000000-0000-0000-0000-000000000000");

    await writeFile(file.name, Buffer.from(await file.arrayBuffer()));
    ```
  </Tab>
</Tabs>

If the paper doesn't exist, a [`NotFound`](/docs/sdks/errors) error is thrown.
